.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--primary-black); /* The 25% Black requirement */
    padding-top: 80px; /* Fixes the overlap with navbar */
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Makes the video subtle against the black bg */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(10,10,10,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.purple-text {
    color: var(--accent-purple); /* The 5% Purple shade */
    text-shadow: 0 0 20px rgba(160, 32, 240, 0.5);
}

.hero-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 40px;
}

/* Glowing Play Button */
.play-btn {
    width: 80px;
    height: 80px;
    background: transparent;
    border: 2px solid var(--accent-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    margin: 0 auto 15px;
    box-shadow: 0 0 10px var(--accent-purple);
}

.play-icon {
    width: 0; height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid white;
    margin-left: 5px;
}

.play-btn:hover {
    background: var(--accent-purple);
    box-shadow: 0 0 30px var(--accent-purple), 0 0 60px var(--accent-purple);
    transform: scale(1.1);
}

.play-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: bold;
}

/* Video Modal Reveal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 2000;
    display: none; /* Hidden */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

#expanded-video {
    width: 80%;
    border: 2px solid var(--accent-purple);
}

.close-video {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    #expanded-video { width: 95%; }
}

/* after hero section (past client logo) */

/* Clients Section (70% White) */
.clients-section {
    background-color: var(--primary-white);
    padding: 20px 0;
    text-align: center;
    overflow: hidden;
}

.clients-header {
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-black);
    margin-bottom: 15px;
}

.purple-accent {
    color: var(--accent-purple);
}

.section-subtitle {
    font-family: 'Space Mono', monospace;
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* The Black Logo Capsules (25% Black) */
.logo-slider {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.logo-track {
    display: flex;
    width: calc(250px * 10); /* Adjust based on logo count */
    animation: scroll 30s linear infinite;
}

.logo-card {
    width: 200px;
    height: 100px;
    background: var(--primary-black);
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.logo-card img {
    max-width: 70%;
    max-height: 50%;
    filter: brightness(0) invert(1); /* Makes logos white to pop on black card */
}

/* Hover Effect - The 5% Purple Glow */
.logo-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(160, 32, 240, 0.2);
    cursor: pointer;
}

/* Animation Keyframes */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); }
}

/* Pause animation on hover for better UX */
.logo-slider:hover .logo-track {
    animation-play-state: paused;
}
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .logo-card {
        width: 150px;
        height: 80px;
    }
    .logo-track {
        animation: scroll 20s linear infinite; /* Faster scroll on mobile */
    }
}

/* Iara Services Section (70% White) */
.iara-services-section {
    background-color: var(--primary-white);
    padding: 100px 5%;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.services-intro {
    max-width: 800px;
}

.services-subtitle {
    color: var(--accent-purple);
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.services-heading {
    font-size: 3rem;
    color: var(--primary-black);
    margin-bottom: 20px;
}

.services-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
}

/* The Layout Grid */
.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Accordion Styling (The 25% Black) */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: #f9f9f9;
    border-left: 4px solid transparent;
    padding: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.accordion-item.active {
    background: var(--primary-black);
    border-left: 4px solid var(--accent-purple);
    transform: translateX(15px);
    box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
    box-shadow: 0 10px 20px rgba(160, 32, 240, 0.2);
}

.accordion-header {
    font-family: 'Audiowide', cursive;
    font-size: 1.4rem;
    color: var(--primary-black);
    transition: 0.3s;
}

.accordion-item.active .accordion-header {
    color: var(--primary-white);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding-top: 0;
}

.accordion-item.active .accordion-body {
    max-height: 200px;
    padding-top: 15px;
}

.accordion-body p {
    color: #888;
    line-height: 1.6;
    font-family: 'Space Mono', monospace;
}

/* The Visual Showcase (Right Side) */
.services-video {
    position: sticky;
    top: 120px;
    height: 450px;
    background: var(--primary-black);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(160, 32, 240, 0.2);
    border: 1px solid rgba(160, 32, 240, 0.3);
}

.video-placeholder {
    color: var(--accent-purple);
    font-family: 'Space Mono';
    text-align: center;
}

/* Hover Effect for non-active items */
.accordion-item:not(.active):hover {
    background: #eeeeee;
}

@media (max-width: 992px) {
    .services-content { grid-template-columns: 1fr; }
    .services-video { height: 300px; order: -1; position: relative; top: 0; }
}
.iara-impact-section {
    background-color: var(--primary-black);
    padding: 120px 0;
    color: var(--primary-white);
    position: relative;
    overflow: hidden;
}

.impact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.impact-subtitle {
    color: var(--accent-purple);
    font-family: 'Space Mono', monospace;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.impact-heading {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.purple-glow {
    color: var(--accent-purple);
    text-shadow: 0 0 15px rgba(160, 32, 240, 0.4);
}

.impact-description {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 40px;
    font-family: 'Space Mono', monospace;
}

/* Stats Grid Styling */
.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-align: center;
    transition: 0.4s;
}

.stat-card:hover {
    border-color: var(--accent-purple);
    background: rgba(160, 32, 240, 0.05);
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3rem;
    font-family: 'Audiowide', cursive;
    color: var(--primary-white);
    margin-bottom: 10px;
}

.stat-number span {
    color: var(--accent-purple);
}

.stat-desc {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.highlight-card {
    border-color: var(--accent-purple);
}

/* Responsive */
@media (max-width: 992px) {
    .impact-grid { grid-template-columns: 1fr; gap: 50px; }
    .impact-heading { font-size: 2.5rem; }
}
/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--primary-white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle background animation */
.tech-lines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.tech-lines span {
    position: absolute;
    width: 1px; height: 100%;
    background: rgba(160, 32, 240, 0.05); /* Very subtle purple */
    animation: moveLines 15s linear infinite;
}
.tech-lines span:nth-child(1) { left: 20%; animation-delay: 0s; }
.tech-lines span:nth-child(2) { left: 50%; animation-delay: -5s; }
.tech-lines span:nth-child(3) { left: 80%; animation-delay: -10s; }

@keyframes moveLines {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.text-center { text-align: center; position: relative; z-index: 2; }

.testimonial-header { max-width: 800px; margin: 0 auto 70px; }

.testimonial-subtitle {
    color: var(--accent-purple);
    font-family: 'Space Mono', monospace;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 15px;
}

.testimonial-heading {
    font-size: 3rem;
    color: var(--primary-black);
    margin-bottom: 25px;
}

.testimonial-body {
    font-family: 'Space Mono', monospace;
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Video Grid Layout */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

/* The Aesthetic Tech Frame (25% Black look) */
.video-frame {
    position: relative;
    padding: 15px;
    background: var(--primary-black); /* The black border effect */
    border-radius: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* The actual video container */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Corner Accents for tech look */
.frame-corner {
    position: absolute;
    width: 20px; height: 20px;
    border: 2px solid var(--accent-purple);
    transition: 0.4s;
    opacity: 0.5;
}
.frame-corner.top-left { top: -5px; left: -5px; border-right: none; border-bottom: none; }
.frame-corner.bottom-right { bottom: -5px; right: -5px; border-left: none; border-top: none; }

/* Hover Effects (The "Cool" Factor) */
.video-frame:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(160, 32, 240, 0.2); /* Purple glow */
}

.video-frame:hover .frame-corner {
    opacity: 1;
    width: 30px; height: 30px; /* Corners expand */
}

/* Responsive */
@media (max-width: 992px) {
    .testimonial-heading { font-size: 2.2rem; }
    .video-grid { grid-template-columns: 1fr; max-width: 600px; }
}
/* --- Secret Sauce Section --- */
.secret-sauce-section {
    background-color: var(--primary-black);
    padding: 120px 0;
    color: var(--primary-white);
}

.sauce-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.sauce-subtitle {
    font-family: 'Space Mono', monospace;
    color: var(--accent-purple);
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.sauce-heading {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.sauce-description {
    font-family: 'Space Mono', monospace;
    color: #888;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Grid Layout */
.sauce-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sauce-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    padding: 50px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.card-icon {
    font-family: 'Audiowide', cursive;
    font-size: 3rem;
    color: rgba(160, 32, 240, 0.2);
    margin-bottom: 20px;
    transition: 0.4s;
}

.sauce-card h3 {
    font-family: 'Audiowide', cursive;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-white);
}

.sauce-card p {
    font-family: 'Space Mono', monospace;
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* The Secret Sauce Animation: The Glow */
.card-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(600px circle at var(--x) var(--y), rgba(160, 32, 240, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.sauce-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-10px);
}

.sauce-card:hover .card-glow {
    opacity: 1;
}

.sauce-card:hover .card-icon {
    color: var(--accent-purple);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .sauce-grid { grid-template-columns: 1fr; }
    .sauce-heading { font-size: 2.5rem; }
}