/* --- Hero Section --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: visible;
    background-color: #000000;
}

#hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Taller for parallax */
    background: linear-gradient(rgba(26, 28, 30, 0.7), rgba(26, 28, 30, 0.8)),
        url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCAwaDEwMHYxMDBIMHoiIGZpbGw9IiMzMzMiLz48cGF0aCBkPSJNMCAxMDBMMTAwIDBIMHYxMDB6IiBmaWxsPSIjNDQ0IiBmaWxsLW9wYWNpdHk9IjAuMSIvPjwvc3ZnPg==');
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: translateY(0);
    will-change: transform;
}

/* Particle Canvas for Hero, Services and Why Us sections */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

#hero-particles-canvas {
    z-index: 0;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.hero-logo {
    max-width: 280px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 10px rgba(59, 128, 191, 0.2));
    animation: fadeInUp 0.8s ease-out;
}

.hero-content * {
    pointer-events: auto;
}

#truck-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

/* 3D Model Loading Overlay */
.truck-loading {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 128, 191, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.truck-loading.visible {
    opacity: 1;
    visibility: visible;
}

.truck-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(59, 128, 191, 0.3);
    border-top-color: var(--accent-blue, #3b80bf);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.loading-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue, #3b80bf), #5aa0e0);
    border-radius: 3px;
    transition: width 0.2s ease;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 25px;
    text-shadow: 0 10px 30px rgba(70 70 70 / 0.29), 0 0 20px rgba(59 127 191 / 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.4rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(59, 128, 191, 0.2);
    animation: fadeInUp 1.2s ease-out;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 25px;
    animation: fadeInUp 1.4s ease-out;
}

/* Creative text positioning - overlay on sides */
.hero-text-overlay {
    position: absolute;
    z-index: 5;
    pointer-events: none;
}

.hero-text-overlay.left {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.hero-text-overlay.right {
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.hero-text-overlay h2 {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

/* --- About Section --- */
#about {
    background-color: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 25px;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* --- Services Section --- */
#services {
    background-color: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* --- Projects Section --- */
#projects {
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

#projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/contact-bg.png') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

#projects .container {
    position: relative;
    z-index: 1;
}

.projects-list {
    margin-top: 50px;
    border-left: 2px solid var(--border-color);
    padding-left: 40px;
}

.project-item {
    margin-bottom: 50px;
    position: relative;
}

.project-item::before {
    content: '';
    position: absolute;
    left: -49px;
    top: 6px;
    width: 16px;
    height: 16px;
    background-color: var(--bg-dark);
    border: 3px solid var(--accent-blue);
    border-radius: 50%;
    transition: var(--transition);
}

.project-item:hover::before {
    background-color: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue);
}

.project-item h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.project-client {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 12px;
    display: inline-block;
    background: rgba(59, 128, 191, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.project-item p {
    color: var(--text-gray);
    font-size: 1.05rem;
}

/* --- Why Us Section --- */
#why-us {
    background-color: var(--bg-darker);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

/* --- Contact Section --- */
#contact {
    background-color: var(--bg-dark);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    margin-bottom: 25px;
    font-size: 2rem;
}

.info-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    color: var(--accent-blue);
    font-size: 1.5rem;
    background: rgba(59, 128, 191, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* --- Footer --- */
footer {
    background-color: #0b0c0d;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.footer-links {
    margin-top: 30px;
}

.footer-links a {
    color: var(--text-gray);
    margin: 0 15px;
    font-size: 0.85rem;
    position: relative;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-text-overlay {
        display: none;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-darker);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-logo {
        max-width: 200px;
        margin-bottom: 15px;
    }

    .hero-text-overlay {
        display: none;
    }

    .scroll-down {
        bottom: 20px;
    }

    .scroll-down-text {
        font-size: 0.75rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

