/* =========================================
   1. GLOBAL STYLES & VARIABLES (FIXED)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-blue: #180e3e;
    --dark: #1a1a1a;
    --white: #ffffff;
    --gray: #666;
    --light-bg: #f9f9f9;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    overflow-x: hidden; /* Prevents horizontal scroll on the root */
    width: 100%;
}

section, header { scroll-margin-top: 80px; }

body {
    font-family: 'Poppins', sans-serif;
    
    /* 👇 THE CRITICAL MOBILE SCROLL FIX 👇 */
    width: 100%;
    overflow-x: hidden; 
    overflow-y: auto;   /* Forces vertical scrollbar to always work */
    height: auto;       
    min-height: 100vh;
    position: relative; /* Helps content stack correctly */
    
    color: var(--dark);
    background-color: #fff;
    padding-top: 0;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* =========================================
   2. HEADER & NAVIGATION (UNIVERSAL LEFT/RIGHT FIX)
   ========================================= */
.header-wrapper {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    
    /* ✅ NEW: Smooth transition for hiding/showing */
    transition: transform 0.4s ease-in-out; 
}

/* ✅ NEW: Class to slide the navbar up out of view */
.header-wrapper.nav-hidden {
    transform: translateY(-100%);
}

.top-bar {
    background: var(--primary-blue); color: var(--white);
    padding: 8px 0; font-size: 13px;
}
.top-link {
    color: white !important; text-decoration: none;
    transition: opacity 0.3s; display: inline-flex;
    align-items: center; gap: 5px;
}
@media (max-width: 768px) { .top-bar { display: none; } }

/* --- 1. NAV BAR STRUCTURE --- */
nav { 
    width: 100%; 
    height: 90px; 
    padding: 0; 
    background: transparent;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

nav .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 30px !important;
}

/* --- 3. LOGO FIX --- */
.logo-img { 
    height: 60px; 
    width: auto; 
    display: block; 
    transform: scale(1.1);       
    transform-origin: left center; 
    margin-right: auto !important; 
    margin-left: 0 !important;
    padding-right: 20px; 
}

/* --- 4. MENU LINKS --- */
.nav-links { 
    display: flex !important; 
    align-items: center;
    list-style: none; 
    margin: 0; padding: 0; 
    gap: 30px; 
    margin-left: auto !important; 
}

.nav-links > li > a { 
    text-decoration: none; font-weight: 500; font-size: 16px;
    transition: 0.3s; color: var(--dark); 
    white-space: nowrap; 
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--primary-blue); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.mobile-toggle span { width: 25px; height: 3px; background: var(--dark); border-radius: 2px; }


/* Dropdown Styles (Unchanged) */
.dropdown-item { position: relative; padding-bottom: 10px; margin-bottom: -10px; }
.arrow { font-size: 10px; margin-left: 3px; vertical-align: middle; transition: transform 0.3s; }
.dropdown-item:hover .arrow { transform: rotate(180deg); }
.dropdown-content {
    display: none; position: absolute; background-color: white;
    min-width: 220px; box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 8px; z-index: 10000; top: 100%; left: 0;
    padding: 10px 0; margin-top: 10px; list-style: none;
    border-top: 3px solid var(--primary-blue);
}
.dropdown-item:hover .dropdown-content { display: block; animation: fadeInDropdown 0.3s ease; }
.dropdown-content li { margin: 0; display: block; }
.dropdown-content li a {
    color: #333 !important; padding: 12px 20px; text-decoration: none;
    display: block; font-size: 14px; transition: all 0.2s;
    border-left: 3px solid transparent;
}
.dropdown-content li a:hover {
    background-color: #f9f9f9; color: var(--primary-blue) !important;
    border-left: 3px solid var(--primary-blue); padding-left: 25px;
}
@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .dropdown-item { width: 100%; text-align: center; padding: 0; margin: 0; }
    .dropdown-content { display: none; position: static; box-shadow: none; width: 100%; background: #f4f6f9; border-top: none; padding-left: 0; }
    .dropdown-item:hover .dropdown-content { display: block; }
    .dropdown-content li a { padding: 10px; font-size: 14px; color: #555 !important; }
}

/* =========================================
   3. HERO SECTION (SLIDER)
   ========================================= */
.hero {
    position: relative; height: 100vh; overflow: hidden;
    display: flex; align-items: center; text-align: center;
    color: var(--white); padding-top: 150px;
}
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }

.btn-primary { 
    background: var(--primary-blue); color: white; padding: 15px 35px; 
    border-radius: 30px; text-decoration: none; font-weight: 600; 
    transition: 0.3s; border: none; display: inline-block;
}
.btn-primary:hover { transform: translateY(-3px); background: #4a54d1; }

/* =========================================
   4. AI SPECIAL SECTION (DARK THEME)
   ========================================= */
.ai-special-section {
    background: #0f1014; /* Dark Background */
    color: white; padding: 100px 0;
    position: relative; overflow: hidden;
}

.ai-header { text-align: center; max-width: 800px; margin: 0 auto 60px; }
.ai-badge {
    display: inline-block; border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px; border-radius: 50px; font-size: 12px;
    letter-spacing: 2px; margin-bottom: 20px; color: #aaa;
}
.ai-title {
    font-family: 'Playfair Display', serif; font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
}
.gradient-text {
    background: linear-gradient(90deg, #5c67f2, #b05cf2);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ai-text p { color: #ccc; line-height: 1.8; margin-bottom: 20px; font-size: 16px; }
.ai-text .lead-text { color: white; font-size: 20px; font-weight: 500; }

.ai-stats-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ai-stat-card {
    background: rgba(255, 255, 255, 0.05); padding: 30px;
    border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}
.ai-stat-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.08); }
.ai-stat-card h3 { font-size: 40px; font-weight: 700; margin-bottom: 5px; color: white; }
.ai-stat-card p { color: #888; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }

.ai-stat-card.highlight {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(92, 103, 242, 0.2), rgba(176, 92, 242, 0.2));
    border-color: rgba(92, 103, 242, 0.5); text-align: center;
}
.ai-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(92, 103, 242, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 0; pointer-events: none;
}
@media (max-width: 992px) {
    .ai-grid { grid-template-columns: 1fr; }
    .ai-stats-wrapper { max-width: 500px; margin: 0 auto; }
}

/* =========================================
   5. ABOUT SECTION (NEW CLEAN LAYOUT)
   ========================================= */
.about-section { padding: 100px 0; background: white; text-align: center; }
.about-header-centered { max-width: 800px; margin: 0 auto 50px; }
.section-title {
    font-size: 48px; font-family: 'Playfair Display', serif;
    margin: 15px 0 25px; line-height: 1.2;
}
.lead-text { font-size: 18px; color: var(--gray); line-height: 1.8; }

/* Service Pills */
.services-tags-wrapper {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 15px; max-width: 900px; margin: 0 auto 80px;
}
.service-pill {
    padding: 12px 30px; background: #f4f5ff; color: var(--dark);
    border-radius: 50px; font-weight: 500; font-size: 15px;
    border: 1px solid transparent; transition: all 0.3s ease; cursor: default;
}
.service-pill:hover {
    background: var(--primary-blue); color: white;
    transform: translateY(-5px); box-shadow: 0 10px 20px rgba(92, 103, 242, 0.2);
}
.service-pill.highlight { border-color: var(--primary-blue); color: var(--primary-blue); background: white; }

/* Process Flow */
.process-wrapper { background: #f9f9f9; padding: 60px 40px; border-radius: 20px; }
.process-title { font-size: 24px; margin-bottom: 40px; color: var(--dark); text-transform: uppercase; letter-spacing: 2px; }
.process-grid {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px;
}
.process-step {
    flex: 1; min-width: 150px; background: white; padding: 30px 20px;
    border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.process-step:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.step-number {
    font-size: 40px; font-weight: 700; color: rgba(92, 103, 242, 0.1);
    margin-bottom: 10px; line-height: 1;
}
.process-step h4 { font-size: 18px; margin-bottom: 5px; color: var(--primary-blue); }
.process-step p { font-size: 13px; color: #777; margin: 0; }
.process-arrow { font-size: 30px; color: #ddd; font-weight: 300; }

@media (max-width: 768px) {
    .process-grid { flex-direction: column; }
    .process-arrow { transform: rotate(90deg); margin: 10px 0; }
    .section-title { font-size: 32px; }
}

/* =========================================
   6. FOUNDER SECTION (FIXED)
   ========================================= */
.founder-section {
    background: linear-gradient(to bottom, #f9f9f9, #eff1ff);
    padding: 80px 0; text-align: center;
}

.founder-card { max-width: 600px; margin: 0 auto; }

.founder-img-box { 
    position: relative; 
    width: 160px; 
    height: 160px; 
    margin: 0 auto 20px; 
    /* Placeholder color if image fails to load */
    background-color: #ddd; 
    border-radius: 50%;
}

.founder-img {
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    object-fit: cover;        /* Forces image to be a perfect circle */
    object-position: top center; /* Centers the face */
    border: 5px solid white; 
    position: relative; 
    z-index: 2;               /* Keeps image ON TOP of the spinner */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* The Spinning Dashed Ring */
.circle-spin {
    position: absolute; 
    top: -8px; left: -8px; right: -8px; bottom: -8px; /* Made slightly bigger */
    border-radius: 50%; 
    border: 2px dashed var(--primary-blue);
    animation: spin 10s linear infinite; 
    z-index: 1; /* Sits BEHIND the image */
}

@keyframes spin { 100% { transform: rotate(360deg); } }
/* =========================================
   7. SERVICES SECTION (TEXT CARD STYLE)
   ========================================= */
#services {
    background-color: #f9f9f9; /* Light Gray Background like image */
    padding-bottom: 100px;
}

.services-header {
    background: linear-gradient(rgba(17, 17, 17, 0.8), rgba(17, 17, 17, 0.8)), 
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
    text-align: center;
    color: white;
    margin-bottom: -60px;
    padding-bottom: 150px;
}

.services-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    position: relative; z-index: 2;
}

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

/* --- NEW CARD STYLE (Like TheStarsMedia) --- */
.service-card-text {
    background: white;
    padding: 40px 30px;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03); /* Very subtle shadow */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left Align */
    text-align: left;
    height: 100%;
}

.service-card-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.service-card-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.service-card-text p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes button to bottom */
}

/* Yellow "Learn More" Text */
.learn-more-text {
    color: #ffce3e; /* Golden Yellow color from image */
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}

.learn-more-text:hover {
    color: #e6b800; /* Darker yellow on hover */
    text-decoration: underline;
}

/* --- MODAL STYLES --- */
.service-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); z-index: 10000;
    display: none; justify-content: center; align-items: center;
    padding: 20px; opacity: 0; transition: opacity 0.3s ease;
}

.service-modal.active { display: flex; opacity: 1; }

.modal-content {
    background: white; width: 100%; max-width: 700px; padding: 50px;
    border-radius: 12px; position: relative; transform: translateY(30px);
    transition: transform 0.3s ease; max-height: 90vh; overflow-y: auto;
}

.service-modal.active .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute; top: 20px; right: 20px; font-size: 30px;
    cursor: pointer; color: #888; transition: 0.3s; line-height: 1;
}
.close-modal:hover { color: #d63031; }

.modal-title {
    font-family: 'Playfair Display', serif; font-size: 32px;
    color: var(--primary-blue); margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0; padding-bottom: 15px;
}

.modal-body p { font-size: 16px; line-height: 1.8; color: #555; margin-bottom: 20px; }
.modal-points { background: #f9f9f9; padding: 20px 30px; border-radius: 8px; border-left: 4px solid var(--primary-blue); }
.modal-points li { margin-bottom: 10px; color: #444; font-weight: 500; }

/* Responsive */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 30px 20px; }
}

/* =========================================
   11. CONTACT & FOOTER
   ========================================= */

/* --- CENTERED CONTACT FORM (No Image) --- */
.contact-wrapper-centered {
    max-width: 800px;
    margin: 0 auto 80px; /* Centers horizontal */
    background: rgb(66, 46, 118);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(45, 24, 93, 0.05);
    border: 1px solid #eee;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #361c5f;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    background: #f9f9f9;
    transition: 0.3s;
    outline: none;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--primary-blue);
    background: rgb(37, 36, 108);
    box-shadow: 0 0 0 4px rgba(24, 14, 62, 0.05);
}

/* Mobile Fix for Form */
@media (max-width: 768px) {
    .contact-wrapper-centered {
        padding: 30px 20px;
    }
    .form-group {
        grid-template-columns: 1fr; /* Stack inputs on phone */
    }
}


/* --- FOOTER STYLES --- */
.footer-section { 
    background: #1a1a1a; 
    color: white; 
    padding: 70px 0 20px; 
    margin-top: 50px; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
    margin-bottom: 50px; 
}

.footer-col h3 { 
    font-family: 'Playfair Display', serif; 
    font-size: 22px; 
    margin-bottom: 20px; 
    color: white; 
}

/* Quick Links */
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }

.footer-links a { 
    text-decoration: none; 
    color: #ccc; 
    transition: 0.3s; 
}

/* FIX: Changed hover color to Bright Purple (Visible on dark bg) */
.footer-links a:hover { 
    color: #6a4cff; 
    padding-left: 5px; 
}

/* Contact List */
.footer-contact { list-style: none; color: #ccc; }
.footer-contact li { 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

/* Clickable Phone & Email Styling */
.footer-contact a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}

/* FIX: Changed hover color to Bright Purple (Visible on dark bg) */
.footer-contact a:hover {
    color: #6a4cff; 
    border-bottom: 1px solid #6a4cff;
    padding-left: 5px;
}

/* Social Media Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px; height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* Instagram Gradient Hover Effect */
.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(220, 39, 67, 0.4);
}
/* YouTube Hover (Red) */
.social-icon.youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.4);
}

/* Facebook Hover (Blue) */
.social-icon.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.4);
}

/* Pinterest Hover (Brand Red) */
.social-icon.pinterest:hover {
    background: #E60023;
    border-color: #E60023;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(230, 0, 35, 0.4);
}

.footer-bottom { 
    border-top: 1px solid #333; 
    padding-top: 20px; 
    text-align: center; 
    color: #777; 
    font-size: 14px; 
}
/* =========================================
   13. RESPONSIVE BREAKPOINTS (FIXED & OPTIMIZED)
   ========================================= */

/* --- TABLET LANDSCAPE & SMALL LAPTOPS (Max 1024px) --- */
@media (max-width: 1024px) {
    .container { padding: 0 30px; }

    /* Grids to 2 Columns */
    .services-grid, 
    .why-grid, 
    .team-grid, 
    .footer-grid, 
    .approach-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }

    /* Process Grid needs 3 columns here */
    .process-grid-custom { 
        grid-template-columns: repeat(3, 1fr); 
    }
    
    /* Hide the dashed line in Process */
    .process-grid-custom::before { display: none; }
    
    /* Contact wrapper stacks */
    .contact-wrapper { grid-template-columns: 1fr; }
}

/* --- MOBILE LANDSCAPE & TABLET PORTRAIT (Max 768px) --- */
@media (max-width: 768px) {
    
    /* 1. FORCE SCROLLING (Fixes "Stuck" Page) */
    body {
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch;
        position: static;
        width: 100%;
    }

    /* 2. HEADER & NAV FIXES */
    .top-bar { display: none; } 
    .mobile-toggle { display: flex; z-index: 10001; } 
    nav { 
        height: 60px !important; /* Forces the bar to be much shorter */
    }

    nav .container {
        padding: 0 20px !important; /* Tightens the horizontal space */
    }

    .logo-img { 
        height: 35px !important; /* Shrinks the logo size */
        transform: scale(1) !important; /* Removes the 1.1 scale that adds bulk */
        padding-right: 0 !important;
    }

    /* Existing mobile toggle code remains below this */
    .mobile-toggle { display: flex; z-index: 10001; }
    
    .nav-links { 
        display: none !important; 
        position: fixed; 
        top: 0; left: 0; 
        width: 100%; height: 100vh;
        background: white; 
        flex-direction: column; 
        justify-content: center;
        align-items: center;
        padding: 20px; 
        z-index: 10000;
    }
    
    .nav-links.active { display: flex !important; }
    .nav-links li { margin: 20px 0; font-size: 20px; }

    /* 3. HERO HEIGHT & TEXT FIX (Crucial Update) */
    .hero { 
        height: 70vh;       /* Reduced from 100vh */
        min-height: 500px;  /* Prevents getting too small */
        padding-top: 100px; /* Centers text better */
    }
    .hero h1 { font-size: 32px; line-height: 1.2; }
    .hero p { font-size: 16px; padding: 0 10px; }

    /* 4. STACK ALL GRIDS TO 1 COLUMN */
    .services-grid, 
    .why-grid, 
    .team-grid, 
    .footer-grid, 
    .process-grid-custom, 
    .approach-grid { 
        grid-template-columns: 1fr; 
    }

    /* 5. SECTION SPECIFIC ADJUSTMENTS */
    .approach-card { flex-direction: column; text-align: left; }
    .why-card { padding: 30px 20px; }
    .process-card { margin-bottom: 20px; }
    
    /* 6. TYPOGRAPHY FIXES */
    .section-title { font-size: 32px; }
    .ai-title { font-size: 32px; }
    .ai-grid { grid-template-columns: 1fr; }
    .ai-stats-wrapper { grid-template-columns: 1fr; }
    .ai-stat-card.highlight { grid-column: auto; }

    /* 7. MODAL FIXES */
    .modal-content { padding: 30px 20px; width: 95%; }
}

/* --- SMALL MOBILE PHONES (Max 480px) --- */
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    
    .hero h1 { font-size: 28px; }
    .btn-primary { padding: 12px 25px; font-size: 14px; }
    
    .marquee-item { font-size: 18px; padding: 0 10px; }
    .marquee-section { padding: 20px 0; }
    
    .footer-section { text-align: center; }
    .footer-contact li { justify-content: center; }
    .social-icon { margin: 0 5px; }
}
/* =========================================
   8. SCROLL ANIMATIONS (VISIBILITY FIX)
   ========================================= */
.scroll-reveal { 
    opacity: 0; 
    transform: translateY(30px);
    transition: all 1s ease;
}

/* JS adds this class */
.scroll-reveal.visible { 
    opacity: 1; 
    transform: translateY(0);
}

/* =========================================
   WHY CHOOSE US SECTION
   ========================================= */
.why-choose-section {
    padding: 100px 0;
    background: #f9f9f9;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    background: white;
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(92, 103, 242, 0.15); /* Soft Blue Shadow */
    border-color: var(--primary-blue);
}

.why-icon {
    font-size: 45px;
    margin-bottom: 20px;
    background: #f4f5ff;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.why-card:hover .why-icon {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1) rotate(10deg);
}

.why-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

/* --- RESPONSIVE & MOBILE FIXES --- */

/* Tablet: 2 Columns */
@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape & Portrait: Smaller Icons & Text */
@media (max-width: 768px) {
    .why-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 30px !important;
        margin-bottom: 15px !important;
    }

    .why-card {
        padding: 25px 15px !important;
    }

    .why-card h4 {
        font-size: 16px !important;
    }
    
}

/* Small Mobile: 1 Column */
@media (max-width: 500px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   WORK PROCESS SECTION (Dynamic Effects)
   ========================================= */
.process-section {
    padding: 100px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.process-grid-custom {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 Columns for Desktop */
    gap: 20px;
    align-items: stretch;
}

.process-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px 20px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 1;
}

/* Hover Lift Effect */
.process-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(92, 103, 242, 0.2);
    border-color: var(--primary-blue);
}

/* Big Background Number Style */
.step-bg {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 80px;
    font-weight: 900;
    color: #f0f0f0;
    z-index: -1;
    transition: all 0.4s ease;
    line-height: 1;
    font-family: sans-serif;
}

.process-card:hover .step-bg {
    color: rgba(92, 103, 242, 0.1); /* Turns faint blue on hover */
    transform: scale(1.2) rotate(-10deg);
}

/* Icon Box */
.process-card .icon-box {
    font-size: 35px;
    margin-bottom: 15px;
    display: inline-block;
    transition: transform 0.4s ease;
}

.process-card:hover .icon-box {
    transform: scale(1.3) rotate(10deg);
}

.process-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.process-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1100px) {
    .process-grid-custom {
        grid-template-columns: repeat(3, 1fr); /* 3 cols on tablet */
    }
}

@media (max-width: 768px) {
    .process-grid-custom {
        grid-template-columns: 1fr; /* 1 col on mobile */
        max-width: 400px;
        margin: 0 auto;
    }
    .process-card {
        margin-bottom: 15px;
    }
    body {
        overflow-y: scroll !important; /* Forces scroll even if browser disagrees */
        -webkit-overflow-scrolling: touch; /* Makes scrolling smooth on iPhone */
        position: static; /* Prevents body from getting stuck */
    }

    .hero {
        /* 1. Reduce height from 100vh to 70-80vh */
        min-height: 75vh; 
        height: auto; 

        /* 2. Add padding to create "breathing room" without excessive height */
        padding: 80px 20px; 
        
        /* 3. Ensure content stays centered vertically */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    /* Shrink the text slightly so it doesn't take up 5+ lines */
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
}


/* =========================================
   MARQUEE ANIMATION (Fixed Trigger)
   ========================================= */
.marquee-section {
    padding: 80px 0;
    background: #fff;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
}

.marquee-wrapper {
    width: 110%; 
    transform: rotate(-3deg); 
    display: flex;
    flex-direction: column;
}

.marquee-row {
    width: 100%;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    position: relative;
    padding: 10px 0;
    
    /* INITIAL STATE: Hidden & Pushed to sides */
    opacity: 0;
    transition: all 3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Row 1 starts to the LEFT */
.row-top {
    background-color: #6a4cff;
    color: white;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(106, 76, 255, 0.3);
    transform: translateX(-100%); 
}

/* Row 2 starts to the RIGHT */
.row-bottom {
    background-color: #3b2a8a;
    color: white;
    z-index: 1;
    margin-top: -5px;
    transform: translateX(100%);
}

/* --- TRIGGER STATE --- */
/* When the SECTION gets the class 'active-animation', the rows slide in */
.marquee-section.active-animation .row-top {
    opacity: 1;
    transform: translateX(0);
}

.marquee-section.active-animation .row-bottom {
    opacity: 1;
    transform: translateX(0);
}


/* --- INFINITE SCROLL --- */
.marquee-item {
    font-size: 40px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.divider { color: rgba(255, 255, 255, 0.3); margin-left: 30px; font-weight: 300; }

.marquee-track { display: flex; }
.scroll-left { animation: scroll-left 25s linear infinite; }
.scroll-right { animation: scroll-right 25s linear infinite; }

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}


/* =========================================
   14. SITE PRELOADER (OPTIMIZATION)
   ========================================= */
#preloader {
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: #ffffff; 
    z-index: 99999; /* Stays on top of everything */
    display: flex; 
    justify-content: center; 
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* The Spinner Animation */
.spinner {
    width: 50px; height: 50px;
    border: 5px solid rgba(24, 14, 62, 0.1); /* Light Blue Track */
    border-top: 5px solid #6a4cff; /* Purple Spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

/* Class added by JS to hide the loader */
.loaded { 
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none; /* Allows clicking through */
}

/* =========================================
   FIX FOR SOCIAL IMAGES
   ========================================= */
.social-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    /* Optional: If you want them to be WHITE like the others, uncomment the line below */
    /* filter: brightness(0) invert(1); */
}
/* =========================================
   VIDEO PORTFOLIO & MODAL STYLES
   ========================================= */
/* 1. The Grid (Fixes the "Too Big" issue) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px)); /* Restricts width */
    gap: 30px;
    justify-content: center; /* Centers the cards */
}

/* 2. The Card Styling */
.video-card {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.video-card:hover { transform: translateY(-5px); }

/* 3. The Play Button Overlay */
.thumb-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9; /* Forces a standard rectangle */
}
.play-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.video-card:hover .play-overlay { background: rgba(0,0,0,0.5); }
.play-button {
    width: 60px; height: 60px;
    background: var(--primary-blue, #007bff);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    padding-left: 5px; /* visually centers the triangle */
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* 4. The Popup Video Player (Fixes the "Not Playing" issue) */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 10000; 
    align-items: center; justify-content: center;
}
.modal-content { position: relative; width: 90%; max-width: 800px; }
.iframe-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.iframe-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.close-btn { position: absolute; top: -40px; right: 0; color: #fff; font-size: 40px; cursor: pointer; }

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px; /* Positioned on the left like your screenshot */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: white;
}

/* Subtle pulse animation to draw attention */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive adjustment for small phones */
@media (max-width: 600px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 30px;
    }
}

/* Container to align both cards side-by-side */
.founders-flex-container {
    display: flex;
    justify-content: center;
    gap: 50px; /* Space between the two founders */
    flex-wrap: wrap; /* Allows stacking on mobile */
    margin-top: 40px;
}

/* Individual Card Adjustments */
.founder-card {
    flex: 1;
    max-width: 450px; /* Prevents cards from getting too wide */
    text-align: center;
}

/* Ensure images are consistent */
.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Mobile Responsive adjustment */
@media (max-width: 768px) {
    .founders-flex-container {
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }
    
    .founder-card {
        max-width: 100%;
    }
}

/* --- NEW COLOR THEME: ELECTRIC MIDNIGHT --- */
.ai-special-section {
    /* Deeper midnight blue/black base */
    background: #233681; 
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    color: white;
}

/* 1. Perspective Scene */
.ai-3d-scene {
    perspective: 1200px;
}

.ai-stats-pivot {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    transform: rotateY(-20deg) rotateX(10deg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.ai-3d-scene:hover .ai-stats-pivot {
    transform: rotateY(-5deg) rotateX(5deg) scale(1.05);
}

/* 2. Glassmorphism Cards - Updated for Bioluminescence */
.stat-glass-card {
    /* Very slight tint of blue in the glass */
    background: rgba(10, 15, 30, 0.4); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    /* Border glows slightly cyan */
    border: 1px solid rgba(0, 255, 242, 0.15); 
    padding: 40px 20px;
    border-radius: 24px;
    text-align: center;
    /* Deeper, more saturated shadow */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6); 
    transform: translateZ(30px);
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.stat-glass-card:hover {
    border: 1px solid rgba(0, 255, 242, 0.5);
    box-shadow: 0 0 30px rgba(0, 255, 242, 0.2);
}

.highlight-card {
    grid-column: span 2;
    /* Violet to Cyan internal glow */
    background: linear-gradient(135deg, rgba(110, 0, 255, 0.15), rgba(0, 255, 242, 0.05));
    border: 1px solid rgba(110, 0, 255, 0.4);
    transform: translateZ(60px);
}

.stat-glass-card h3 {
    font-size: 42px;
    /* Vivid Electric Gradient */
    background: linear-gradient(to bottom, #00fff2, #6e00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    font-weight: 800;
}

/* 3. Floating Animated Blobs - Saturated AI Colors */
.ai-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    z-index: 0;
    filter: blur(80px);
    animation: blobFloat 12s infinite alternate ease-in-out;
    opacity: 0.6;
}

/* Cyan Glow */
.blob-1 { 
    top: -15%; 
    left: -10%; 
    background: radial-gradient(circle, rgba(0, 255, 242, 0.12) 0%, transparent 70%); 
}

/* Violet Glow */
.blob-2 { 
    bottom: -15%; 
    right: -10%; 
    background: radial-gradient(circle, rgba(110, 0, 255, 0.15) 0%, transparent 70%); 
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -40px) scale(1.1); }
}

/* 4. Small UI Details */
.ai-badge {
    background: rgba(179, 241, 238, 0.08);
    color: #00fff2;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 242, 0.3);
    text-transform: uppercase;
}

.feat-item {
    margin-top: 15px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a0a8c0;
}

.feat-item span {
    color: #00fff2; /* Icons match the theme */
}

/* Mobile Fix */
@media (max-width: 768px) {
    .ai-stats-pivot {
        transform: none !important;
        grid-template-columns: 1fr;
    }
    .highlight-card { grid-column: auto; }
}