/*
Theme Name: Carrots One Page
Theme URI: https://example.com/
Author: Carrots
Description: One-page custom theme for your existing HTML/CSS/JS.
Version: 1.0.0
Text Domain: carrots-onepage
*/

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img,
video {
    max-width: 100%;
    display: block;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(11, 15, 26, 0.85);
    /* Dark Navy with opacity */
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtler border */
}

/* Specific override for navbar container to allow wider spread */
.navbar .container {
    max-width: 100%;
    padding: 0 10rem;
    /* "Closer to left" but with safe padding */
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    /* Needed for absolute centering of links */
    justify-content: space-between;
    /* Fallback */
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    /* Removed absolute centering to push to right via flex space-between */
}

.nav-socials {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 5 3rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-socials a {
    color: var(--color-text-muted);
    font-size: 1.25rem;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
}

.nav-socials a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    /* Fill header height so child % works */
}

.logo-img {
    height: 60%;
    /* Relative sizing, will follow header height */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    transition: var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

.nav-links .btn-primary {
    color: white;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.25);
    /* Orange glow */
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(255, 122, 0, 0.05);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
    background-color: var(--color-bg);
    /* Pure Dark Navy base */
    /* Add a subtle vignette */
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.7);
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    /* Dot Matrix Pattern */
    background-image: radial-gradient(rgba(42, 47, 69, 0.4) 1px, transparent 1px);
    background-size: 40px 40px;

    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);

    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.region-badge {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    /* Lime Green for differentiation check? Or Primary? User said Accent for CTA/Movements. Lime fits "Tech" vibe. */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(166, 255, 0, 0.3);
    padding: 0.5em 1em;
    border-radius: var(--radius-full);
    background: rgba(166, 255, 0, 0.05);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    /* Fluid: 48px -> 88px */
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: 0.3s;
}

/* Responsiveness */
/* Responsiveness */
@media (max-width: 900px) {

    /* Adjust Hero Title earlier */
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        /* Side Drawer Styles */
        display: flex;
        /* Always display but hide via transform */
        flex-direction: column;
        justify-content: center;
        /* Center items vertically */
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        /* Reset left from desktop */
        bottom: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(11, 15, 26, 0.98);
        /* High opacity dark background */
        backdrop-filter: blur(15px);
        padding: 2rem;
        transform: translateX(100%);
        /* Hide off-screen right */
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: none;
        z-index: 2000;
        /* Ensure it's above everything including navbar */
        gap: 2rem;
    }

    .nav-links.active {
        transform: translateX(0);
        /* Slide in */
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    }

    .nav-container {
        justify-content: space-between;
        gap: 0;
    }

    .navbar .container {
        padding: 0 1.5rem;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 2001;
        /* Ensure button is above the drawer */
        position: relative;
    }

    /* Adjust socials in drawer */
    .nav-socials {
        margin: 1rem 0;
        border-left: none;
        padding-left: 0;
        justify-content: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.5rem;
        width: 100%;
        gap: 2rem;
    }
}


/* Typography Utilities with Fluid Scaling */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    /* Scales from 32px to 48px */
    font-weight: 700;
    /* 700-800 as requested */
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    /* Scales from 20px to 28px */
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.6;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    /* Slightly fluid body text */
}

.lead-text {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 500;
    color: white;
    margin-bottom: 1.5rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4rem);
    /* Massive liquid scaling for stats */
    font-weight: 800;
    /* Extra bold for numbers */
    color: var(--color-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.vm-card {
    background: var(--color-bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.vm-card h3 {
    color: var(--color-accent);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .services-grid {
        gap: 0.75rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .card-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .service-card ul {
        font-size: 0.5rem;
        padding-left: 1rem;
        line-height: 1.4;
    }
}

.service-card {
    background: var(--color-bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 0, 0.3);
    background: rgba(255, 107, 0, 0.05);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--color-text-muted);
}

.service-card ul li {
    margin-bottom: 0.5rem;
}

/* Process Flow */
.process-flow {
    text-align: center;
    margin-top: 4rem;
}

.process-flow h3 {
    margin-bottom: 3rem;
    font-size: 2rem;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}

.step-line {
    height: 2px;
    background: rgba(255, 107, 0, 0.3);
    flex-grow: 1;
    max-width: 150px;
    min-width: 50px;
    margin-top: -30px;
    /* Align with center of circles */
}

/* Responsiveness Updates */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }

    .step-line {
        width: 2px;
        height: 50px;
        margin-top: 0;
        max-width: 2px;
    }
}

/* Products Section */
.product-block {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
}

.product-block.reverse {
    grid-template-columns: 1fr 1.5fr;
    direction: rtl;
    /* Hack for visual reverse, reset text direction in children */
}

img.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.reel-card:hover .video-thumb,
.project-item:hover .video-thumb,
.video-card:hover .video-thumb {
    transform: scale(1.06);
}

.product-block.reverse>* {
    direction: ltr;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list li::before {
    content: "✓";
    color: var(--color-primary);
    font-weight: bold;
}

.video-showcase,
.reels-grid {
    display: flex;
    gap: 1.5rem;
}

.video-card {
    flex: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.video-card.wide {
    aspect-ratio: 21/9;
}

.reel-card {
    flex: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 9/16;
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
}

.reel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 107, 0, 0.4);
}

/* Play Icon Overlay for Reels (Optional) */
.reel-card::after {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    color: white;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.reel-card:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-secondary), #1A233B);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    cursor: pointer;
}

.video-placeholder:hover .play-icon {
    transform: scale(1.2);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.play-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    transition: var(--transition-base);
}

/* Projects Grid */
.projects-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.project-item {
    aspect-ratio: 9/16;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 107, 0, 0.4);
}

.project-item {
    position: relative;
    cursor: pointer;
}

/* Play Icon for Projects (Same as Reels) */
.project-item::after {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    color: white;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.project-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.center-cta {
    text-align: center;
}

@media (max-width: 900px) {

    .product-block,
    .product-block.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2rem;
        margin-bottom: 6rem;
    }


    .video-showcase {
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .projects-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .projects-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* Clients Wall - Swiper */
.clients-slider {
    width: 100%;
    padding: 2rem 0;
    overflow: hidden;
    /* Fade masks at edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.swiper-wrapper {
    transition-timing-function: linear !important;
    -webkit-transition-timing-function: linear !important;
}

.client-logo {
    /* Swiper slide sizing handled via JS/Classes, but we keep base styles */
    height: clamp(50px, 6vw, 90px);
    /* Fluid height */
    width: 100%;
    /* Aspect ratio mainly controlled by img */
    background: var(--color-bg-secondary);
    border: 3px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-weight: 600;
    transition: var(--transition-base);
    padding: 0.0rem;
}


.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    filter: none;
    transition: var(--transition-base);
}

.client-logo:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.client-logo:hover img {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
}


.client-logo:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(255, 107, 0, 0.05);
    transform: scale(1.05);
}

/* Why Us - Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    padding: 2rem;
    border-left: 2px solid var(--color-primary);
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.05), transparent);
}

/* Image Asset Styling */
.thumb-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumb,
.project-item:hover .video-thumb {
    transform: scale(1.05);
}

.thumb-container .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

/* Founders Premium Section - Custom Design */
.founders-grid {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    padding: 4rem 0;
    max-width: 1100px;
    margin: 0 auto;
}

.founder-card {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    /* Reset old styles */
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

/* On mobile, stack them */
@media (max-width: 900px) {
    .founder-card {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }

    .founder-card.reverse {
        flex-direction: column-reverse;
        /* Same for both on mobile */
    }

    .founder-info {
        text-align: left;
        padding: 0 1rem;
    }
}

/* Info Side */
.founder-info {
    flex: 1;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.founder-card.reverse .founder-info {
    animation-delay: 0.2s;
}

.founder-card h3 {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    color: white;
    letter-spacing: 1px;
    background: none;
    -webkit-text-fill-color: initial;
    transition: var(--transition-base);
}

.founder-card:hover h3 {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateX(10px);
}

/* Underline effect */
.founder-card h3::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: var(--color-accent);
    margin-top: 5px;
    transition: width 0.4s ease;
}

.founder-card:hover h3::after {
    width: 100%;
}

.founder-role {
    display: block;
    background: none;
    border: none;
    padding: 0;

    font-size: 1.25rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.founder-bio {
    color: #ccc;
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Social List */
.founder-socials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    width: fit-content;
}

.social-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.social-item i {
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.social-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

.social-item .ri-tiktok-fill {
    color: white;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.social-item .ri-instagram-line {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(220, 39, 67, 0.3));
}

.social-item .ri-facebook-circle-fill {
    color: #1877F2;
    filter: drop-shadow(0 0 5px rgba(24, 119, 242, 0.5));
}


/* Image Side */
.founder-image-wrapper {
    flex: 1;
    position: relative;
    max-width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.founder-card:hover .founder-image-wrapper {
    transform: scale(1.02);
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    position: relative;

    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: none;
    border-radius: 0;
    margin: 0;
    min-width: 0;

    /* Reveal Animation */
    opacity: 0;
    transform: scale(0.9);
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.founder-card.reverse .founder-img {
    animation-delay: 0.3s;
}

/* Specific Border Radius based on Image */
/* Ali (First Card - Image Right) */
.founder-card:not(.reverse) .founder-img {
    border-radius: 80px 0 0 0;
}

/* Hossam (Second Card - Image Left) */
.founder-card.reverse .founder-img {
    border-radius: 0 80px 0 0;
}

/* Dashed Border Decoration */
.dashed-border {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 3px dashed var(--color-primary);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards, spinSlow 30s linear infinite;
    /* Optional: make it spin slowly or pulse */
}

/* Fix Dashed Border matching Image Radius */
.founder-card:not(.reverse) .dashed-border {
    border-radius: 90px 0 0 0;
    border-color: #ff6b00;
    left: -25px;
    top: -25px;
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.2);
}

.founder-card.reverse .dashed-border {
    border-radius: 0 90px 0 0;
    border-color: #a6ff00;
    right: -25px;
    top: -25px;
    box-shadow: 0 0 30px rgba(166, 255, 0, 0.2);
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(3deg);
    }

    /* Subtle shifting */
}

/* Alternate swing for dashed border */
.founder-card:hover .dashed-border {
    animation: pulseBorder 2s infinite alternate;
}

@keyframes pulseBorder {
    from {
        opacity: 0.6;
        transform: scale(1);
    }

    to {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .founders-grid {
        gap: 5rem;
        padding-top: 0;
    }

    .founder-info {
        text-align: left;
        /* Keep left alignment as per request/image */
        width: 100%;
    }

    /* Ali Card: Info(1), Image(2) -> Want Image Top -> Reverse Column */
    .founder-card {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }

    /* Hossam Card: Image(1), Info(2) -> Want Image Top -> Normal Column */
    .founder-card.reverse {
        flex-direction: column;
    }

    .founder-image-wrapper {
        height: 280px;
        width: 280px;
        max-width: 100%;
        margin: 0 auto;
    }

    .founder-card h3 {
        font-size: 2rem;
    }

    /* Auto-animate underline on mobile load explicitly */
    .founder-card h3::after {
        width: 0;
        animation: expandLine 1s ease-out 0.5s forwards;
    }

    @keyframes expandLine {
        to {
            width: 100%;
        }
    }
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Scrolling Text Bar */
.scrolling-text-bar {
    width: 110vw;
    /* Make wider than screen to handle rotation without gaps */
    margin: 6rem -5vw;
    /* Center it with negative margin due to width > 100% */
    background: var(--color-primary);
    transform: rotate(-3deg);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.scrolling-text-track {
    display: flex;
    white-space: nowrap;
    width: fit-content;
    will-change: transform;
}

.scrolling-text-content {
    display: flex;
    animation: scrollText 60s linear infinite;
}

.scrolling-text-content span {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
    margin-right: 4rem;
    /* Spacing between repeats */
    font-family: var(--font-heading);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes scrollTextReverse {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

.scrolling-text-bar.secondary {
    background: white;
    margin-top: -2rem;
    /* Tighter stack */
    z-index: 4;
    transform: rotate(-3deg);
    border-color: var(--color-primary);
}

.scrolling-text-bar.secondary .scrolling-text-content {
    animation-name: scrollTextReverse;
}

.scrolling-text-bar.secondary span {
    color: var(--color-primary);
    /* Orange text on White */
    text-shadow: none;
}

@media (max-width: 768px) {
    .scrolling-text-content span {
        font-size: 1.5rem;
        margin-right: 2rem;
    }

    .scrolling-text-bar {
        padding: 0.5rem 0;
        margin: 3rem -5vw;
    }

    .scrolling-text-bar.secondary {
        margin-top: -1rem;
    }
}

.contact-form {
    background: var(--color-bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Contact Section Specific */
#contact {
    background: linear-gradient(to top, var(--color-bg-secondary), var(--color-bg));
    /* Blue to Navy */
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}