﻿/* Section Base */
section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    section.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Section Backgrounds */
.services, #services,
.portfolio, #portfolio {
    background-color: #f5f6f8;
}

section:not(.hero):not(.stats):not(.contact-hero):not(.portfolio):nth-of-type(even) {
    background-color: #f5f6f8;
}

section:not(.hero):not(.stats):not(.contact-hero):not(.portfolio):nth-of-type(odd) {
    background-color: transparent;
}

main > section:not(.hero):not(.stats):not(.contact-hero):not(.portfolio):nth-of-type(even) {
    background-color: #f5f6f8;
}

main > section:not(.hero):not(.stats):not(.contact-hero):not(.portfolio):nth-of-type(odd) {
    background-color: transparent;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

    .section-title h2 {
        font-size: 2.6rem;
        color: var(--secondary);
        margin-bottom: 12px;
        position: relative;
        display: inline-block;
        font-weight: 700;
    }

        .section-title h2::after {
            display: none;
        }

    .section-title p {
        color: var(--gray);
        max-width: 700px;
        margin: 0 auto;
        font-size: 1.05rem;
        line-height: 1.7;
    }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: transparent;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 999 !important;
    max-width: 900px;
    padding: 0 20px;
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    display: block !important;
    color: white !important;
    animation: fadeInUp 1.2s ease forwards 0.5s;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: white;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

    .scroll-indicator i {
        font-size: 1.5rem;
        color: rgba(255, 255, 255, 0.8);
    }

/* About Section */
#about {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

    .about-text h3 {
        font-size: 2rem;
        margin-bottom: 25px;
        color: var(--secondary);
        font-weight: 600;
    }

.about-features {
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

    .about-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, var(--primary), var(--accent));
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: 1;
    }

    .about-image:hover::before {
        opacity: 0.1;
    }

    .about-image:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .about-image img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.8s ease;
    }

    .about-image:hover img {
        transform: scale(1.05);
    }

/* Services Section */
#services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Portfolio Section */
.portfolio {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    .portfolio-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .portfolio-item img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        display: block;
        transition: transform 0.8s ease;
    }

    .portfolio-item:hover img {
        transform: scale(1.1);
    }

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: white;
    padding: 40px 25px 25px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.portfolio-overlay p {
    opacity: 0.9;
    margin-bottom: 15px;
}

.portfolio-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

    .portfolio-link i {
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

    .portfolio-link:hover i {
        transform: translateX(5px);
    }

/* Contact Section */
#contact {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
}

.contact {
    background-color: var(--light);
}

.contact-content {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--secondary);
    font-weight: 600;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

    .contact-detail i {
        margin-right: 20px;
        width: 24px;
        text-align: center;
        color: var(--accent);
        font-size: 1.2rem;
        margin-top: 5px;
    }

    .contact-detail p {
        line-height: 1.7;
    }

.social-links {
    display: flex;
    gap: 15px;
}

    .social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background-color: white;
        border-radius: 50%;
        color: var(--primary);
        text-decoration: none;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

        .social-links a:hover {
            background-color: var(--primary);
            color: white;
            transform: translateY(-5px);
        }

/* Partners Section */
.partners {
    background-color: white;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.partner-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 40px 35px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

    .partner-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s ease;
    }

    .partner-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(0, 86, 179, 0.12);
        border-color: transparent;
    }

    .partner-card:hover::before {
        transform: scaleX(1);
    }

.partner-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 28px;
}

.partner-logo-wrap {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.partner-logo {
    max-width: 180px;
    max-height: 70px;
    object-fit: contain;
}

.partner-card h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 12px;
}

.partner-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Client Logos */
.client-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.client-logo-item {
    width: 220px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    transition: opacity 900ms cubic-bezier(.2,.9,.2,1), transform 900ms cubic-bezier(.2,.9,.2,1);
    will-change: opacity, transform;
    outline: none;
}

    .client-logo-item.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .client-logo-item img.client-logo {
        max-width: 200px;
        max-height: 110px;
        object-fit: contain;
        filter: grayscale(100%);
        transition: filter 400ms ease, transform 400ms ease, opacity 400ms ease;
        transform-origin: center center;
    }

    .client-logo-item:hover img.client-logo,
    .client-logo-item:focus-within img.client-logo,
    .client-logo-item.visible:hover img.client-logo,
    .client-logo-item.visible:focus-within img.client-logo {
        filter: none;
        transform: scale(1.08);
    }

    .client-logo-item.visible img.client-logo {
        filter: grayscale(100%);
    }
