/* style.css */

:root {
    --orange: #FF6700;
    --light-accent: #F3F9FE;
    --grey-accent: #D3D3D3;
    --dark-bg: #110f1a;
    --webgl-bg: #1A001A; /* Deep Purple */
    --text-light: #F0F0F0;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}


/* ====================================================== */
/* ==         FINAL, CORRECTED HERO SECTION CSS        == */
/* ====================================================== */

.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-background-gradient {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(
        circle at 70% 30%,
        rgba(255, 103, 0, 0.15),
        rgba(26, 0, 26, 0.1) 40%,
        rgba(17, 15, 26, 0) 70%
    );
    z-index: 0;
}

.hero-webgl {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    outline: none;
}

.hero-content {
    grid-column: 1 / 2;
    text-align: left;
}

.hero-headline {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-light);
}

.hero-headline span {
    display: block;
}

.hero-cta-container {
    display: flex;
    gap: 1.25rem;
    margin-top: 3.5rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .hero-section {
        align-items: flex-start;
        padding-top: 15vh;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 1.5rem;
    }
    .hero-content {
        align-items: center;
        text-align: center;
    }
    .hero-cta-container {
        justify-content: center;
    }
}

.hero-btn {
    position: relative;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    overflow: hidden;
    transition: color 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-btn.primary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-btn.primary::before {
    background-color: var(--orange);
    transform: translateY(101%);
}

.hero-btn.primary:hover {
    color: white;
}

.hero-btn.primary:hover::before {
    transform: translateY(0);
}

.hero-btn.secondary {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-bg);
    border: 1px solid transparent;
}

.hero-btn.secondary::before {
    background-color: transparent;
    border: 1px solid var(--orange);
    border-radius: 50px;
    transform: scale(0);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-btn.secondary:hover {
    color: var(--orange);
    background-color: transparent;
}

.hero-btn.secondary:hover::before {
    transform: scale(1);
    opacity: 1;
}


/* --- UPGRADED "AIRMADE" LIQUID GLASS POPUP CARD --- */
.webgl-popup-card {
    /* The CSS variable for our dynamic gradient */
    --card-gradient-color: #FF6700;

    position: absolute;
    z-index: 3;

    /* The AIRMADE gradient, using our variable */
    background: linear-gradient(
        180deg,
        rgba(var(--card-gradient-color), 0.4) 0%,
        rgba(var(--card-gradient-color), 0.0) 35%
    ),
    rgba(20, 20, 25, 0.4); /* Base color */

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    width: 320px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);

    /* The Liquid Glass Effect */
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);

    /* Layout for the content */
    display: flex;
    flex-direction: column;

    /* Animation */
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px) scale(0.98);
    transform-origin: top left;
    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1), transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.webgl-popup-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Card Content Styling */
.webgl-popup-card .card-header {
    margin-bottom: 16px;
}
.webgl-popup-card h3 {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.5px;
}
.webgl-popup-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(240, 240, 240, 0.7);
    flex-grow: 1; /* Pushes footer down */
}

/* The "Stats" Footer */
.webgl-popup-card .card-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}
.webgl-popup-card .stat {
    text-align: left;
}
.webgl-popup-card .stat h4 {
    margin: 0 0 4px 0;
    font-weight: 400;
    font-size: 0.75rem;
    color: rgba(240, 240, 240, 0.5);
    text-transform: uppercase;
}
.webgl-popup-card .stat span {
    font-weight: 600;
    color: #fff;
}


/* ================================================= */
/* ==      ADD THIS MEDIA QUERY FOR MOBILE        == */
/* ================================================= */
@media (max-width: 900px) {
    .webgl-popup-card {
        width: 280px; /* Make card narrower */
        padding: 20px; /* Reduce padding */
    }
    .webgl-popup-card h3 {
        font-size: 1.1rem; /* Smaller title */
    }
    .webgl-popup-card p {
        font-size: 0.85rem; /* Smaller paragraph text */
        line-height: 1.5;
    }
    .webgl-popup-card .card-footer {
        margin-top: 16px;
        padding-top: 12px;
    }
}






/* --- General Section Styling --- */
.about-section, .services-section {
    background-color: #f4f4f6; /* The off-white background */
    color: #111827;
    padding: 8rem 2rem;
}

.section-heading {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 600;
}

/* ================================== */
/* == "WHO WE ARE" (ABOUT) SECTION == */
/* ================================== */
.about-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr; /* Creative two-column layout */
    gap: 4rem;
    align-items: flex-start;
}

.about-right {
    max-width: 600px; /* Constrain text width for readability */
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.about-btn {
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}
/* Cool underline effect */
.about-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.about-btn:hover::after {
    transform: scaleX(1);
}



/* ================================== */
/* == REWRITTEN "WHAT WE DO" (SERVICES) SECTION == */
/* ================================== */
.services-section {
    background-color: #f4f4f6;
    color: #111827;
    padding: 8rem 2rem;
}

.services-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.services-right {
    width: 100%;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    border-top: 1px solid #d1d5db;
}

.service-item {
    border-bottom: 1px solid #d1d5db;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    cursor: pointer;
    width: 100%;
}

.service-number {
    background-color: #111827;
    color: #f4f4f6;
    height: 36px;
    width: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.service-name {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}

.service-arrow {
    font-size: 1.75rem;
    color: #111827;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- The Dropdown Content --- */
.service-content {
    max-height: 0; /* Hidden by default */
    opacity: 0;
    overflow: hidden;
    padding-left: calc(36px + 1.5rem); /* Align with service name */
    transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.4s ease-out,
                padding-bottom 0.5s ease;
}

.service-content p {
    margin: 0;
    max-width: 60ch; /* Optimal line length for readability */
    line-height: 1.6;
    color: #374151;
}

/* --- ACTIVE (OPEN) STATE --- */
.service-item.active .service-number {
    background-color: var(--orange); /* Highlight with brand color */
}

.service-item.active .service-arrow {
    transform: rotate(90deg); /* Rotate arrow to indicate open state */
}

.service-item.active .service-content {
    max-height: 200px; /* Reveal the content */
    opacity: 1;
    padding-bottom: 2rem; /* Add space when open */
}

/* --- Buttons at the bottom (no changes needed) --- */
.services-cta-container {
    margin-top: 3rem;
    display: flex;
    justify-content: flex-end; /* Right-aligns the content */
    gap: 1rem;
    align-items: center;
}

.services-btn {
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.services-btn.primary {
    background-color: var(--orange);
    color: white;
}
.services-btn.primary:hover {
    filter: brightness(110%);
    transform: translateY(-3px);
}


/* --- RESPONSIVE STYLES (no changes needed) --- */
@media (max-width: 768px) {
    .services-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .section-heading {
        margin-bottom: 1rem;
    }
    .service-name {
        font-size: 1.5rem;
    }
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .about-wrapper, .services-wrapper {
        grid-template-columns: 1fr; /* Stack the columns */
        gap: 2rem;
    }

    .section-heading {
        margin-bottom: 1rem;
    }

    .service-name {
        font-size: 1.5rem;
    }
}




/* projects.css (CSS for the project section without a modal) */

.projects-section {
    padding: 8rem 2rem;
    background-color: #ffffff;
    color: #111827;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-header {
    text-align: center;
    margin-bottom: 4rem;
}
.projects-header .section-heading {
    margin: 0;
    font-size: 2.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
}

/* The card is now an 'a' tag */
.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-image-wrapper {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3.5;
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}
.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.project-card:hover .project-image-wrapper img {
    transform: scale(1.05);
}
.project-card:hover .project-image-wrapper {
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.2);
}

.project-info {
    padding: 1rem 0.5rem;
}
.project-info h3 {
    font-size: 1.25rem;
    margin: 0;
    transition: color 0.3s ease;
}
.project-info p {
    color: #6b7280;
    margin-top: 0.25rem;
}
.project-card:hover .project-info h3 {
    color: var(--orange);
}

.projects-footer {
    text-align: center;
    margin-top: 4rem;
}
.show-more-btn {
    background-color: var(--orange);
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.show-more-btn:hover {
    filter: brightness(110%);
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}





/* ================================== */
/* == FINAL "TRUSTED BY" SECTION == */
/* ================================== */
.trusted-by-section {
    padding: 8rem 0; /* No horizontal padding on the section itself */
    background-color: #f4f4f6;
    color: #111827;
}

.trusted-by-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.trusted-by-container .section-heading {
    margin-bottom: 4rem;
    padding: 0 2rem; /* Add padding here to keep text centered */
}

/* The scroller container */
.logo-scroller {
    overflow: hidden;
    /* This creates the fade-out effect on the edges for a seamless look */
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.logo-list {
    display: flex;
    gap: 2.5rem;
    padding: 1rem 0;
    width: max-content; /* Allow the list to be as wide as its content */
    /* The animation magic! */
    animation: scroll 40s linear infinite;
}

/* Pause animation on hover for better UX */
.logo-scroller:hover .logo-list {
    animation-play-state: paused;
}

/* The orange rectangle card */
.logo-card {
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 2px solid var(--orange);
    border-radius: 16px;
    background-color: white;
    box-shadow: 0 4px 10px -5px rgba(0,0,0,0.05);
}

.logo-card img {
    max-width: 100%;
    max-height: 100%;
    /* To create a uniform, professional look */
    filter: grayscale(100%) opacity(70%);
    transition: filter 0.3s ease;
}

/* Bring logo to full color on hover */
.logo-item:hover .logo-card img {
    filter: grayscale(0%) opacity(100%);
}

/* The CSS animation keyframes */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {

        transform: translateX(calc(-50% - 1.25rem)); /* Half the width + half the gap */
    }
}