
    /* --- RESET & VARIABLES --- */
    :root {
      --bg-color: #ffffff;
      --bg-secondary: #f5f5f7;
      --text-main: #1d1d1f;
      --text-secondary: #86868b;
      --accent-blue: #0071e3;
      --accent-blue-hover: #0077ed;
      --nav-height: 60px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: var(--bg-color);
      color: var(--text-main);
      -webkit-font-smoothing: antialiased;
      line-height: 1.5;
    }

    html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    
    }



    /* --- NAVIGATION (Transparent & Auto-Hiding) --- */
    nav {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      width: 90%;
      max-width: 980px;
      height: 50px;
      
      /* Fully Transparent with Blur */
      background: rgba(255, 255, 255, 0.1); 
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      
      border-radius: 40px;
      border: 1px solid rgba(255,255,255,0.2);
      
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      z-index: 9999;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Class to hide nav */
    nav.hidden-nav {
        opacity: 0;
        transform: translate(-50%, -20px);
        pointer-events: none;
    }

    .nav-logo-group {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
    }

    .nav-logo {
      height: 28px;
      width: auto;
      border-radius: 6px;
    }
    
    .nav-brand {
        font-weight: 600;
        font-size: 1.1rem;
        color: #fff; /* White text for Hero contrast */
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    .nav-links {
      display: flex;
      gap: 30px;
    }

    nav a.link {
      text-decoration: none;
      color: rgba(255,255,255,0.9); /* Lighter text for transparent nav */
      font-size: 0.85rem;
      font-weight: 500;
      transition: color 0.2s;
      text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

    nav a.link:hover {
      color: #fff;
      text-decoration: underline;
    }

    @media (max-width: 768px) {
        nav { top: 10px; width: 95%; padding: 0 15px; }
        .nav-links { display: none; }
        .nav-logo-group { flex-grow: 1; justify-content: center; }
    }

    /* --- HERO SECTION --- */
    .hero {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;   /* important */
    margin: 0;         /* important */
    padding: 0;        /* important */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    }

    .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    }

    
    .hero-desktop { display: block; }
    .hero-mobile { display: none; }

    .hero-overlay {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        /* Gradient ensures text at bottom is readable */
        background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.6));
        z-index: 1;
    }

    .hero-content {
      position: relative;
      z-index: 2;
      text-align: center;
      color: white;
      padding: 0 20px;
      animation: fadeUp 1s ease-out;
      max-width: 800px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
        font-weight: 600;
        margin-bottom: 16px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .hero-content p {
        font-size: 1.5rem;
        opacity: 0.95;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    /* Mobile Specific Hero Adjustments */
    @media (max-width: 768px) {
        .hero-desktop { display: none; }
        .hero-mobile { display: block; }
        
        .hero {
            /* Move content to bottom on mobile */
            align-items: flex-end; 
            padding-bottom: 140px; /* Space from bottom to avoid covering by browser UI */
        }
        
        .hero-content h1 { font-size: 2.5rem; }
        .hero-content p { font-size: 1.2rem; }
    }

    @keyframes fadeUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* --- COMMON SECTIONS --- */
    section {
      padding: 100px 20px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .section-header {
        text-align: center;
        margin-bottom: 50px;
    }
    
    .section-header h2 {
        font-size: 2.8rem;
        font-weight: 600;
        letter-spacing: -0.02em;
        margin-bottom: 10px;
        color: var(--text-main);
    }
    
    .section-header p {
        font-size: 1.2rem;
        color: var(--text-secondary);
        max-width: 700px;
        margin: 0 auto;
    }

    /* --- ABOUT (Grid) --- */
    .about-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .card-apple {
        background: var(--bg-secondary);
        padding: 40px 30px;
        border-radius: 24px;
        transition: transform 0.3s ease;
        text-align: center;
    }
    .card-apple:hover { transform: scale(1.02); }

    .card-apple h3 { font-size: 1.5rem; margin-bottom: 12px; font-weight: 600; }
    .card-apple p { color: var(--text-secondary); font-size: 1.05rem; }

    /* --- SOLUTIONS (Carousel with Arrows) --- */
    .solutions-section {
        background: var(--bg-secondary);
        max-width: 100%;
        position: relative;
    }
    
    .carousel-wrapper {
        position: relative;
        max-width: 100%;
        margin: 0 auto;
        /* Space for arrows on desktop */
        padding: 0 40px; 
    }

    .carousel-container {
      display: flex;
      gap: 20px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      padding-bottom: 40px;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      position: relative;
    }
    .carousel-container::-webkit-scrollbar { display: none; }

    .carousel-item {
        flex: 0 0 320px; /* Desktop width */
        height: 480px;
        background-color: white;
        border-radius: 20px;
        overflow: hidden;
        scroll-snap-align: center;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        transition: transform 0.3s;
        display: flex;
        flex-direction: column;
    }

    @media (max-width: 768px) {
        .carousel-item { 
            /* Reverting to a fuller card view for mobile */
            flex: 0 0 90vw; 
            height: 450px; 
        }
        /* Revert wrapper padding to 0, allowing 5vw margin on either side due to 90vw width */
        .carousel-wrapper { 
            padding: 0; 
        }
        /* Adjust container padding to ensure the first/last item is centered and has the 5vw margin */
        .carousel-container {
             /* Add 5vw padding to the container to ensure centering on the first/last item */
            padding: 0 5vw 40px 5vw;
        }
    }

    .carousel-img { width: 100%; height: 55%; object-fit: cover; }
    .carousel-text { 
        padding: 25px; 
        flex: 1;
        display: flex; 
        flex-direction: column; 
        justify-content: start; /* Align text to top of box */
    }
    .carousel-text h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; color: var(--text-main); }
    .carousel-text p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }

    /* Navigation Arrows */
    .nav-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: white;
        border: 1px solid rgba(0,0,0,0.1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: all 0.2s;
        color: #1d1d1f;
    }
    .nav-arrow:hover { background: #f5f5f7; transform: translateY(-50%) scale(1.1); }
    .arrow-left { left: -10px; }
    .arrow-right { right: -10px; }
    
    .nav-arrow.hidden { display: none !important; }
    @media (max-width: 768px) { .nav-arrow { display: none; } } 

    /* NEW: Carousel Dots Styling */
    .carousel-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 20px;
    }
    
    .dot {
        height: 8px;
        width: 8px;
        background-color: var(--text-secondary); /* Grey dot */
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
        opacity: 0.5;
    }
    
    .dot.active-dot {
        width: 30px; /* Stretched line effect */
        background-color: var(--accent-blue); /* Accent color for active dot */
        opacity: 1;
    }

    /* Hide dots on desktop/large screens */
    @media (min-width: 769px) {
        .carousel-dots {
            display: none;
        }
    }


    /* --- APP SECTION --- */
    .app-section { text-align: center; padding-bottom: 60px; }
    
    .app-showcase {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 60px 0;
        perspective: 1000px;
        position: relative;
    }
    
    .phone-mockup {
        width: 240px;
        height: auto;
        border-radius: 30px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.2);
        transition: all 0.5s ease;
    }
    /* Desktop 3D Bloom + Hover Animation */
    @media (min-width: 768px) {

    /* Base state (collapsed) */
    .phone-mockup {
        transform: scale(0.8);
        opacity: 0;
        transition: transform 0.8s cubic-bezier(0.22,1,0.36,1),
                    opacity 0.6s ease;
    }

    /* 🌸 Bloomed state (when in view) */
    .app-section.in-view .phone-mockup:nth-child(1) {
        transform: translateX(60px) scale(0.9);
        z-index: 1;
        opacity: 0.9;
    }

    .app-section.in-view .phone-mockup:nth-child(2) {
        transform: scale(1.1);
        z-index: 3;
        opacity: 1;
    }

    .app-section.in-view .phone-mockup:nth-child(3) {
        transform: translateX(-60px) scale(0.9);
        z-index: 1;
        opacity: 0.9;
    }

    /* ✨ Hover effect (ONLY when already bloomed) */
    .app-section.in-view .app-showcase:hover .phone-mockup:nth-child(1) {
        transform: translateX(-20px) rotate(-8deg) scale(0.95);
        opacity: 1;
    }

    .app-section.in-view .app-showcase:hover .phone-mockup:nth-child(2) {
        transform: scale(1.15);
    }

    .app-section.in-view .app-showcase:hover .phone-mockup:nth-child(3) {
        transform: translateX(20px) rotate(8deg) scale(0.95);
        opacity: 1;
    }
    }
    /* Mobile Static Row Logic (Like reference image) */
    @media (max-width: 767px) {
        .app-showcase {
            flex-direction: row;
            gap: 8px; /* Tight gap */
            padding: 0 10px;
            overflow: hidden; /* Ensure no scroll */
            align-items: center;
            height: auto;
        }
        
        .phone-mockup {
            /* Show 3 phones side by side */
            width: 32%; 
            height: auto;
            border-radius: 12px; /* Smaller radius for small screens */
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            /* Reset all transforms/positions from desktop */
            position: static;
            transform: none !important; 
            opacity: 1 !important;
            z-index: 1 !important;
        }
    }


    /* --- CONTACT (Compact & Optimized) --- */
    .contact-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 60px; /* Reduced top padding */
        padding-bottom: 60px;
    }
    
    .contact-card {
        background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 100%);
        border: 1px solid rgba(0,0,0,0.05);
        border-radius: 20px;
        padding: 30px; /* Reduced padding */
        width: 100%;
        max-width: 450px; /* Narrower width */
        text-align: center;
        box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    }
    
    .contact-card h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .contact-row {
        margin-top: 15px; /* Tighter gap */
        padding-top: 15px;
        border-top: 1px solid rgba(0,0,0,0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .contact-row h3 {
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #999;
        margin: 0;
    }
    
    .contact-row a, .contact-row span {
        font-size: 0.95rem;
        color: var(--accent-blue);
        text-decoration: none;
        font-weight: 500;
    }

    /* --- CTA Section --- */
    .cta-buttons {
        display: flex;
        gap: 15px;
        justify-content: center;
        margin-top: 30px;
        flex-wrap: wrap;
    }
    .btn {
        display: inline-block;
        padding: 12px 28px;
        border-radius: 980px;
        font-size: 1rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s;
    }
    .btn-primary { background-color: var(--accent-blue); color: white; }
    .btn-primary:hover { background-color: var(--accent-blue-hover); }
    .btn-secondary { background-color: white; color: var(--accent-blue); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

    /* --- FOOTER --- */
    footer {
        background: var(--bg-secondary);
        padding: 30px 20px;
        border-top: 1px solid #e5e5e5;
        font-size: 11px;
        color: #86868b;
    }
    .footer-content {
        max-width: 980px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .footer-links { display: flex; gap: 15px; }
    .footer-links a { color: #515154; text-decoration: none; }

    /* --- Made in TN Badge (Floating Glass Effect) --- */
    .made-in-tn-badge {
        position: fixed;
        bottom: 30px; 
        right: 30px; 
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--text-main);
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(0, 0, 0, 0.1);
        padding: 10px 18px;
        border-radius: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        z-index: 999;
        cursor: default;
        
        /* Visibility Control: Initial state (Hidden) */
        opacity: 0; 
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* State when the badge should be visible */
    .made-in-tn-badge.visible-badge {
        opacity: 0.65;
        transform: translateY(0);
    }

    .made-in-tn-badge:hover.visible-badge {
        transform: translateY(-5px); 
    }

    /* New class to completely hide the badge when footer is visible/on small screens */
    .made-in-tn-badge.hide-badge {
        opacity: 0 !important;
        transform: translateY(20px) !important;
        pointer-events: none;
    }


    .made-in-tn-badge .heart-icon {
        color: #ff3b30; 
        margin: 0 4px;
        font-size: 1rem;
        vertical-align: middle;
    }

    @media (max-width: 768px) {
        .made-in-tn-badge {
            bottom: 20px;
            right: 20px;
            font-size: 0.75rem;
            padding: 8px 15px;
        }
    }