/* Custom styles for Atlancia Worldwide */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Add this to your existing CSS */

/* Ensure proper viewport height */
html,
body {
    height: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Fix for content being cut off */
body {
    position: relative;
    min-height: 100vh;
}

/* Adjust navbar to prevent content overlap */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    padding: 1rem 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Add this to ensure content doesn't get hidden behind navbar */
    margin-bottom: 0;
}

/* Add padding to main content to account for fixed navbar */
.main-content {
    padding-top: 80px;
    /* Adjust based on navbar height */
}

/* Ensure hero section is fully visible */
.hero-section {
    padding-top: 8rem;
    /* Account for fixed navbar */
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Make sure content doesn't get cut off on mobile */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 7rem;
        padding-bottom: 3rem;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }
}

/* Ensure all sections are visible */
.section {
    padding: 4rem 0;
    min-height: auto;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
}


/* Fix for content being cut off on smaller screens */
@media (max-width: 480px) {
    .hero-section {
        padding-top: 6rem;
        padding-bottom: 2rem;
    }

    .section {
        padding: 2rem 0;
    }
}

/* Ensure proper scrolling */
html {
    scroll-behavior: smooth;
    overflow-y: auto;
}

/* Prevent content from being hidden behind fixed elements */
body {
    padding-top: 0;
    margin-top: 0;
}

/* Add this to your HTML structure - wrap all content after navbar in a div with class "main-content" */

/* Light Mode Variables */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-accent: #2563eb;
    --border-primary: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --container-padding: 1rem;
    --section-padding: 4rem 0;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-accent: #60a5fa;
    --border-primary: #374151;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Apply variables to elements */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Responsive Container Padding */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
}

/* Section Spacing */
.section {
    padding: var(--section-padding);
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 0;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
}

p {
    line-height: 1.6;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

/* Background classes with theme support */
.bg-white {
    background-color: var(--bg-primary) !important;
}

.bg-gray-50 {
    background-color: var(--bg-secondary) !important;
}

.bg-gray-100 {
    background-color: var(--bg-tertiary) !important;
}

.text-gray-900 {
    color: var(--text-primary) !important;
}

.text-gray-700 {
    color: var(--text-primary) !important;
}

.text-gray-600 {
    color: var(--text-secondary) !important;
}

.border-gray-200 {
    border-color: var(--border-primary) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.shadow-xl {
    box-shadow: var(--shadow-xl) !important;
}

/* Logo sizing for different devices */
.logo-container img {
    height: 125px;
    width: auto;
    max-width: 180px;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

/* Large Desktop */
@media (min-width: 1400px) {
    .logo-container img {
        height: 140px;
        max-width: 200px;
    }
}

/* Desktop */
@media (min-width: 1200px) and (max-width: 1399px) {
    .logo-container img {
        height: 125px;
        max-width: 180px;
    }
}

/* Medium Desktop/Large Tablet */
@media (min-width: 992px) and (max-width: 1199px) {
    .logo-container img {
        height: 125px;
        max-width: 160px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .logo-container img {
        height: 125px;
        max-width: 140px;
    }

    .logo-container span {
        font-size: 1.1rem;
    }
}

/* Mobile Landscape */
@media (min-width: 576px) and (max-width: 767px) {
    .logo-container img {
        height: 105px;
        max-width: 120px;
    }

    .logo-container span {
        font-size: 1rem;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    .logo-container img {
        height: 110px;
        max-width: 110px;
    }

    .logo-container span {
        font-size: 0.95rem;
    }
}

/* Small Mobile */
@media (max-width: 414px) {
    .logo-container img {
        height: 125px;
        max-width: 100px;
    }

    .logo-container span {
        font-size: 0.9rem;
    }
}

/* Very Small Mobile */
@media (max-width: 360px) {
    .logo-container img {
        height: 105px;
        max-width: 100px;
    }

    .logo-container span {
        font-size: 0.85rem;
    }
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    padding: 1rem 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

[data-theme="dark"] .navbar.scrolled {
    background-color: rgba(17, 24, 39, 0.98) !important;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-container span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
    position: relative;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    border-radius: 0.375rem;
}

.nav-link:hover {
    color: var(--text-accent);
}

.nav-link.active {
    color: var(--text-accent);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.whatsapp-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    border: 2px solid var(--text-accent);
    color: var(--text-accent);
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    font-weight: 500;
    font-size: 0.9rem;
}

.whatsapp-btn:hover {
    background-color: var(--text-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.book-call-btn {
    padding: 0.625rem 1.5rem;
    background-color: var(--text-accent);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.book-call-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 60;
}

.mobile-menu-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-accent);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    z-index: 55;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6rem 1.5rem 2rem;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mobile-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-primary);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: var(--bg-secondary);
    color: var(--text-accent);
    transform: translateX(5px);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-primary);
    border-radius: 1rem;
}

/* Theme Toggle Button */
.theme-toggle-container {
    position: fixed;
    bottom: 100px;
    /* Positioned above WhatsApp button */
    right: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-secondary);
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle-container {
    background-color: var(--bg-tertiary);
}

.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-primary);
}

.theme-toggle:hover {
    background-color: var(--bg-tertiary);
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

/* Responsive Theme Toggle */
@media (max-width: 768px) {
    .theme-toggle-container {
        bottom: 100px;
        /* Maintain same distance from WhatsApp button */
        right: 20px;
        background-color: var(--bg-primary);
        border: 1px solid var(--border-primary);
        padding: 6px;
        border-radius: 50%;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .theme-toggle i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .theme-toggle-container {
        bottom: 100px;
        /* Maintain same distance from WhatsApp button */
        right: 20px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        align-items: center;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        padding: 0;
        margin: 0;
    }

    .theme-toggle i {
        font-size: 1rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background-color: #128C7E;
}

.whatsapp-floating i {
    font-size: 24px;
}

/* Responsive adjustments for buttons */
@media (max-width: 768px) {
    .whatsapp-floating {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-floating i {
        font-size: 22px;
    }

    .theme-toggle-container {
        bottom: 85px;
        /* Adjusted for smaller WhatsApp button */
    }
}

@media (max-width: 480px) {
    .whatsapp-floating {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-floating i {
        font-size: 20px;
    }

    .theme-toggle-container {
        bottom: 80px;
        /* Adjusted for smaller WhatsApp button */
        right: 15px;
    }
}

/* Grid Layouts */
.grid {
    display: grid;
}

.gap-8 {
    gap: 2rem;
}

@media (max-width: 768px) {
    .gap-8 {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gap-8 {
        gap: 1rem;
    }
}

/* Card Layouts */
.card,
.case-study-card,
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

/* Buttons */
.btn,
button,
a.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, color 0.3s ease;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animated {
    opacity: 1 !important;
    transform: none !important;
}

/* Hover Effects */
.card,
.case-study-card,
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.btn,
button,
a.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}

/* Filter Buttons */
.filter-btn.active {
    background-color: var(--text-accent) !important;
    color: var(--bg-primary) !important;
}

/* Case Study Cards */
.case-study-card {
    transition: all 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl) !important;
}

/* ✅ Lock background scroll only */
body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}


/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--text-accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 50px;
    min-height: 50px;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #10b981;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    min-width: 300px;
}

@media (max-width: 480px) {
    .success-message {
        min-width: 250px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Error Message */
.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ef4444;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    min-width: 300px;
}

@media (max-width: 480px) {
    .error-message {
        min-width: 250px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Bounce Animation */
.bounce {
    animation: bounce 0.6s ease;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }

    /* Mobile Grid */
    .grid-cols-1-md-grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .grid-cols-1-md-grid-cols-2-lg-grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .grid-cols-1-md-grid-cols-3 {
        grid-template-columns: 1fr;
    }

    /* Mobile Flex */
    .flex-col-md-flex-row {
        flex-direction: column;
    }

    /* Mobile Padding */
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .pb-20 {
        padding-bottom: 3rem;
    }

    .pt-32 {
        padding-top: 4rem;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 540px;
    }

    .text-4xl {
        font-size: 1.75rem;
    }

    .text-3xl {
        font-size: 1.5rem;
    }

    .text-2xl {
        font-size: 1.25rem;
    }

    .px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .py-4 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }

    .text-4xl {
        font-size: 1.5rem;
    }

    .text-3xl {
        font-size: 1.25rem;
    }

    .text-2xl {
        font-size: 1.125rem;
    }

    .text-xl {
        font-size: 1rem;
    }

    .text-lg {
        font-size: 0.9rem;
    }

    .gap-4 {
        gap: 1rem;
    }

    .flex-col-sm-flex-row {
        flex-direction: column;
    }

    /* Mobile-specific adjustments */
    .pt-32 {
        padding-top: 3rem;
    }

    .py-20 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .mb-10 {
        margin-bottom: 1.5rem;
    }

    .mb-16 {
        margin-bottom: 2rem;
    }

    .mb-20 {
        margin-bottom: 2rem;
    }

    .mb-12 {
        margin-bottom: 1.5rem;
    }

    .mb-8 {
        margin-bottom: 1.5rem;
    }

    .mb-6 {
        margin-bottom: 1rem;
    }

    .mb-4 {
        margin-bottom: 0.75rem;
    }

    .mb-2 {
        margin-bottom: 0.5rem;
    }

    .mt-6 {
        margin-top: 1rem;
    }

    .mt-12 {
        margin-top: 1.5rem;
    }

    .mt-16 {
        margin-top: 2rem;
    }

    /* Navbar adjustments */
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .navbar-container {
        padding: 0 1rem;
    }

    .logo-container span {
        font-size: 1.1rem;
    }

    .hero-section {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.25rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn {
        min-width: auto;
        width: 100%;
    }

    .hero-btn {
        padding: 1rem;
        min-height: 44px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .navbar-container {
        padding: 0 0.75rem;
    }

    .logo-container img {
        height: 2.5rem;
    }

    .logo-container span {
        font-size: 1rem;
    }

    .whatsapp-btn {
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
    }

    .whatsapp-btn span {
        display: none;
    }

    .whatsapp-btn i {
        margin: 0;
    }

    .book-call-btn {
        min-width: auto;
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .hero-section {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin-bottom: 1.5rem;
    }

    .hero-btn {
        padding: 0.875rem;
        min-height: 40px;
        font-size: 0.9rem;
    }
}

/* Very Small Devices */
@media (max-width: 360px) {
    .navbar-container {
        padding: 0 0.5rem;
    }

    .hero-section {
        padding-top: 5rem;
    }

    .hero-title {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
    }

    .hero-btn {
        font-size: 0.8rem;
        padding: 0.75rem;
        min-height: 36px;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .nav-links {
        gap: 2.5rem;
    }

    .book-call-btn {
        min-width: 140px;
    }
}

/* Accessibility */
.navbar:focus-within {
    outline: 2px solid var(--text-accent);
    outline-offset: -2px;
}

.nav-link:focus {
    outline: 2px solid var(--text-accent);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.mobile-menu-btn:focus {
    outline: 2px solid var(--text-accent);
    outline-offset: 2px;
    border-radius: 50%;
}

/* Animation for mobile menu */
.mobile-menu {
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Smooth scrolling adjustment */
html {
    scroll-behavior: smooth;
}

/* Prevent layout shift when mobile menu opens */
.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-open body {
    overflow: hidden;
}

/* Header section specific styles */
.header-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

/* Animation for header elements */
.header-animated {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-animated.delay-1 {
    animation-delay: 0.1s;
}

.header-animated.delay-2 {
    animation-delay: 0.2s;
}

.header-animated.delay-3 {
    animation-delay: 0.3s;
}

/* Responsive header adjustments */
@media (max-width: 768px) {
    .header-section {
        min-height: auto;
        padding-top: 8rem;
        padding-bottom: 3rem;
    }

    .header-content {
        max-width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .header-section {
        padding-top: 7rem;
    }

    .header-animated {
        transform: translateY(20px);
    }
}

/* Footer */
footer {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Hamburger menu animation */
.hamburger {
    display: inline-block;
    vertical-align: middle;
    width: 24px;
    height: 18px;
    position: relative;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
    transform-origin: center;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-btn.open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.open .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Tech Background Elements */
.tech-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

[data-theme="dark"] .tech-background {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.grid-line {
    position: absolute;
    background: rgba(37, 99, 235, 0.1);
}

.grid-line.vertical {
    width: 1px;
    height: 100%;
    top: 0;
}

.grid-line.vertical:nth-child(1) {
    left: 20%;
}

.grid-line.vertical:nth-child(2) {
    left: 40%;
}

.grid-line.vertical:nth-child(3) {
    left: 60%;
}

.grid-line.vertical:nth-child(4) {
    left: 80%;
}

.grid-line.horizontal {
    width: 100%;
    height: 1px;
    left: 0;
}

.grid-line.horizontal:nth-child(5) {
    top: 20%;
}

.grid-line.horizontal:nth-child(6) {
    top: 40%;
}

.grid-line.horizontal:nth-child(7) {
    top: 60%;
}

.grid-line.horizontal:nth-child(8) {
    top: 80%;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.circle-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 15%;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 80%;
    animation: float 10s ease-in-out infinite;
    animation-delay: 2s;
}

.circle-3 {
    width: 40px;
    height: 40px;
    top: 30%;
    left: 70%;
    animation: float 7s ease-in-out infinite;
    animation-delay: 1s;
}

.circle-4 {
    width: 30px;
    height: 30px;
    top: 70%;
    left: 20%;
    animation: float 9s ease-in-out infinite;
    animation-delay: 3s;
}

.square {
    position: absolute;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.square-1 {
    width: 50px;
    height: 50px;
    top: 20%;
    left: 85%;
    animation: float 6s ease-in-out infinite;
    animation-delay: 1.5s;
}

.square-2 {
    width: 35px;
    height: 35px;
    top: 75%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
    animation-delay: 2.5s;
}

.square-3 {
    width: 25px;
    height: 25px;
    top: 45%;
    left: 5%;
    animation: float 7s ease-in-out infinite;
    animation-delay: 0.5s;
}

.dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

.dot-1 {
    top: 15%;
    left: 30%;
    animation-delay: 0.5s;
}

.dot-2 {
    top: 80%;
    left: 60%;
    animation-delay: 1.2s;
}

.dot-3 {
    top: 50%;
    left: 85%;
    animation-delay: 2s;
}

.dot-4 {
    top: 35%;
    left: 55%;
    animation-delay: 2.5s;
}

.dot-5 {
    top: 65%;
    left: 25%;
    animation-delay: 1.8s;
}

.connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent);
    animation: scan 4s linear infinite;
}

.connection-1 {
    width: 200px;
    top: 40%;
    left: 10%;
    transform: rotate(30deg);
    animation-delay: 0s;
}

.connection-2 {
    width: 150px;
    top: 60%;
    left: 70%;
    transform: rotate(-45deg);
    animation-delay: 1.5s;
}

.connection-3 {
    width: 180px;
    top: 25%;
    left: 50%;
    transform: rotate(15deg);
    animation-delay: 2.5s;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes scan {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: 200px 0;
    }
}

/* Hero Section Adjustments */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    /* Account for fixed navbar */
}

/* Ensure content stays above background elements */
.hero-content {
    position: relative;
    z-index: 20;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .circle {
        width: 50px !important;
        height: 50px !important;
    }

    .square {
        width: 30px !important;
        height: 30px !important;
    }

    .connection {
        display: none;
    }
}

/* ==============================
   TECH HERO ANIMATED BACKGROUND
============================== */

/* Make sure hero is relative */
.hero-section {
    position: relative;
    overflow: hidden;
}

/* Make tech bg behind everything */
.tech-background {
    z-index: 1;
}

/* Keep your main hero content above */
.hero-section .container {
    position: relative;
    z-index: 5;
}

/* Animated Grid Scanning Effect */
.grid-lines::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent,
            rgba(37, 99, 235, 0.15),
            transparent);
    animation: gridScan 5s linear infinite;
}

@keyframes gridScan {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Floating Shapes Animation Smooth */
@keyframes floatTech {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(6deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Apply floatTech */
.circle,
.square {
    animation: floatTech 8s ease-in-out infinite;
}

/* Different speeds for variety */
.circle-1 {
    animation-duration: 10s;
}

.circle-2 {
    animation-duration: 13s;
}

.circle-3 {
    animation-duration: 9s;
}

.circle-4 {
    animation-duration: 12s;
}

.square-1 {
    animation-duration: 11s;
}

.square-2 {
    animation-duration: 14s;
}

.square-3 {
    animation-duration: 9.5s;
}

/* Dots pulse with glow */
.dot {
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.4);
    animation: dotGlow 2.8s ease-in-out infinite;
}

@keyframes dotGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

/* Connection lines glowing + moving */
.connection {
    position: absolute;
    height: 2px;
    border-radius: 10px;
    background: linear-gradient(90deg,
            transparent,
            rgba(37, 99, 235, 0.7),
            transparent);
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.6));
    animation: moveLine 4.5s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes moveLine {
    0% {
        transform: translateX(-60px);
        opacity: 0.2;
    }

    50% {
        transform: translateX(60px);
        opacity: 1;
    }

    100% {
        transform: translateX(-60px);
        opacity: 0.2;
    }
}

/* Make background slightly blurred for premium look */
.tech-background {
    filter: blur(0px);
}

/* Optional: Soft Noise Overlay = Premium AI look */
.tech-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.25;
    pointer-events: none;
}

/* Mobile optimization: reduce intensity */
@media (max-width: 768px) {
    .grid-lines {
        opacity: 0.12 !important;
    }

    .connection {
        opacity: 0.35 !important;
    }

    .circle,
    .square {
        opacity: 0.5 !important;
    }
}

/* ==============================
   NETWORK CONNECTING LINES
============================== */
.network-lines {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* General line style */
.network-lines .line {
    position: absolute;
    height: 2px;
    border-radius: 50px;
    opacity: 0.4;
    background: linear-gradient(90deg,
            transparent,
            rgba(37, 99, 235, 0.9),
            transparent);
    filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.5));
    animation: lineGlow 3s ease-in-out infinite;
}

/* Line Animation */
@keyframes lineGlow {
    0% {
        opacity: 0.15;
        transform: scaleX(0.8);
    }

    50% {
        opacity: 0.9;
        transform: scaleX(1);
    }

    100% {
        opacity: 0.15;
        transform: scaleX(0.8);
    }
}

/* Custom lines: position + length + rotation */

/* Node-to-node style placements */
.line-1 {
    width: 220px;
    top: 25%;
    left: 18%;
    transform: rotate(20deg);
    animation-delay: 0s;
}

.line-2 {
    width: 280px;
    top: 40%;
    left: 30%;
    transform: rotate(-15deg);
    animation-delay: 0.4s;
}

.line-3 {
    width: 200px;
    top: 58%;
    left: 15%;
    transform: rotate(40deg);
    animation-delay: 0.8s;
}

.line-4 {
    width: 260px;
    top: 32%;
    right: 15%;
    transform: rotate(-25deg);
    animation-delay: 1.2s;
}

.line-5 {
    width: 240px;
    top: 55%;
    right: 22%;
    transform: rotate(18deg);
    animation-delay: 1.6s;
}

.line-6 {
    width: 300px;
    top: 70%;
    left: 35%;
    transform: rotate(-10deg);
    animation-delay: 2s;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .network-lines .line {
        opacity: 0.25;
        height: 1px;
    }
}

/* ==============================
   CANVAS NETWORK BACKGROUND
============================== */
.tech-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

#networkCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.9;
}

/* Keep hero text above */
.hero-section .container {
    position: relative;
    z-index: 5;
}

/* ✅ Force Bigger Logo Only on Mobile */
@media (max-width: 480px) {
    .logo-container img {
        height: 120px !important;
        width: auto !important;
        max-width: 180px !important;
        object-fit: contain;
    }
}

/* ===================================
   PROFESSIONAL MOBILE MENU (SaaS Style)
=================================== */

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);

    padding: 18px 16px;
    border-radius: 0 0 18px 18px;

    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: all 0.35s ease;
}

/* ✅ When menu is open */
.mobile-menu.active {
    transform: translateY(0px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile links layout */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0 14px;
}

/* ✅ Professional nav link style */
.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    font-weight: 700;
    font-size: 16px;
    color: #111827;

    background: rgba(17, 24, 39, 0.03);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 14px;

    padding: 14px 14px;

    transition: all 0.2s ease;
}

/* Hover/active effect */
.mobile-nav-link:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

/* ✅ Highlight active page */
.mobile-nav-link.active {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.22);
    color: #1d4ed8;
}

/* Right arrow indicator for premium feel */
.mobile-nav-link::after {
    content: "›";
    font-size: 22px;
    opacity: 0.45;
}

/* Divider spacing */
.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* WhatsApp CTA */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;

    font-weight: 800;
    font-size: 15px;

    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;

    box-shadow: 0 10px 22px rgba(34, 197, 94, 0.25);
    transition: all 0.2s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.32);
}

.whatsapp-btn i {
    font-size: 18px;
}

/* Book a Call CTA */
.book-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;

    padding: 14px 16px;
    border-radius: 14px;

    font-weight: 800;
    font-size: 15px;

    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.22);
    color: #1d4ed8;

    transition: all 0.2s ease;
}

.book-call-btn:hover {
    background: rgba(37, 99, 235, 0.16);
    transform: translateY(-1px);
}

/* ✅ Bigger hamburger hit area */
.mobile-menu-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.04);
    border: 1px solid rgba(17, 24, 39, 0.06);
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
}

/* ✅ Improve hamburger look */
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: #111827;
    border-radius: 10px;
    transition: all 0.25s ease;
}

/* ✅ Fix: Mobile menu open with both classes */
.mobile-menu.active,
.mobile-menu.open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ✅ Mobile button only visible on mobile */
.mobile-menu-btn {
    display: none !important;
}

@media (max-width: 480px) {
    .mobile-menu-btn {
        display: flex !important;
    }
}

/* ✅ FIX: Hamburger only visible on mobile */
.mobile-menu-btn {
    display: none !important;
}

@media (max-width: 480px) {
    .mobile-menu-btn {
        display: flex !important;
    }
}

/* ✅ Prevent background scrolling when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ✅ Premium animation for mobile menu */
.mobile-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ===============================
   ✅ CLEAN PROFESSIONAL MOBILE NAV
================================ */

/* Show hamburger ONLY on mobile */
.mobile-menu-btn {
    display: none !important;
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        width: 46px;
        height: 46px;
        border-radius: 14px;
        background: rgba(17, 24, 39, 0.05);
        border: 1px solid rgba(17, 24, 39, 0.08);
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-btn:hover {
        background: rgba(37, 99, 235, 0.10);
        border-color: rgba(37, 99, 235, 0.18);
    }
}

/* ✅ Mobile menu drawer style */
.mobile-menu {
    position: fixed;
    top: 72px;
    /* just below navbar */
    left: 12px;
    right: 12px;

    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);

    padding: 16px;

    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;

    transition: all 0.3s ease;
    z-index: 999;
}

/* ✅ Open state */
.mobile-menu.open {
    transform: translateY(0px);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* Mobile links */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 14px;
    border-radius: 14px;

    font-size: 15px;
    font-weight: 700;

    background: rgba(17, 24, 39, 0.04);
    border: 1px solid rgba(17, 24, 39, 0.06);

    transition: all 0.2s ease;
}

.mobile-nav-link::after {
    content: "›";
    font-size: 22px;
    opacity: 0.45;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(37, 99, 235, 0.10);
    border-color: rgba(37, 99, 235, 0.20);
    color: #1d4ed8;
}

/* CTA buttons */
.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav-actions .whatsapp-btn,
.mobile-nav-actions .book-call-btn {
    width: 100%;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
}

/* ✅ Fix logo size stable on mobile */
@media (max-width: 480px) {
    .logo-container img {
        height: 90px !important;
        width: auto !important;
        max-width: 160px !important;
        object-fit: contain;
    }
}

/* Stop background scroll when menu open */
body.mobile-menu-open {
    overflow: hidden;
}

/* =========================================
   ✅ HAMBURGER + CLOSE ICON (Theme Matching)
========================================= */

/* Button background matching theme */
.mobile-menu-btn {
    background: rgba(37, 99, 235, 0.10) !important;
    border: 1px solid rgba(37, 99, 235, 0.18) !important;
    border-radius: 14px !important;
}

/* Hover effect */
.mobile-menu-btn:hover {
    background: rgba(37, 99, 235, 0.16) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

/* Hamburger lines color */
.hamburger span {
    background: var(--text-accent) !important;
    /* ✅ Blue */
    height: 2px;
    width: 22px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

/* ✅ When menu open -> convert hamburger into X */
.mobile-menu-btn.open .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.open .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.open .hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* =========================================
   ✅ MOBILE MENU BACKGROUND (Professional)
========================================= */

.mobile-menu {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-left: 1px solid rgba(37, 99, 235, 0.14);
}

/* Dark mode support */
[data-theme="dark"] .mobile-menu {
    background: rgba(255, 255, 255, 0.96) !important;
    border-left: 1px solid rgba(96, 165, 250, 0.20);
}

/* Improve link cards inside menu */
.mobile-nav-link {
    background: rgba(37, 99, 235, 0.06) !important;
    border: 1px solid rgba(37, 99, 235, 0.14) !important;
}

/* Active & hover = more premium */
.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(37, 99, 235, 0.12) !important;
    border-color: rgba(37, 99, 235, 0.22) !important;
    transform: translateX(6px);
}

/* ✅ Mobile menu scroll fix */
.mobile-menu {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    /* smooth iPhone scroll */
    max-height: calc(100vh - 90px) !important;
    /* height available below navbar */
    padding-bottom: 24px !important;
    /* space at bottom for scrolling */
}

.mobile-menu {
    top: 80px !important;
    /* below navbar */
}

/* =========================================
   ✅ NAVBAR ALWAYS DARK (Even in Light Theme)
========================================= */

/* Navbar fixed dark always */
.navbar {
    background: #0b1220 !important;
    /* deep navy */
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.35) !important;
}

/* On scroll also keep dark */
.navbar.scrolled {
    background: rgba(11, 18, 32, 0.92) !important;
    backdrop-filter: blur(14px);
}

/* Logo text (if you ever use text logo) */
.logo-container span {
    color: #ffffff !important;
}

/* Nav links */
.nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
}

.nav-link:hover {
    color: #ffffff !important;
}

.nav-link.active {
    color: #60a5fa !important;
    /* premium blue */
}

/* underline */
.nav-link::after {
    background-color: #60a5fa !important;
}

/* Hamburger button look */
.mobile-menu-btn {
    background: rgba(96, 165, 250, 0.12) !important;
    border: 1px solid rgba(96, 165, 250, 0.25) !important;
}

/* Hamburger lines always white */
.hamburger span {
    background: #ffffff !important;
}

/* ✅ Mobile menu should match dark navbar */
.mobile-menu {
    background: rgba(11, 18, 32, 0.98) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.10) !important;
}

/* ✅ Fix: Modal must be scrollable on all devices */
#project-modal {
    overflow: hidden !important;
    /* prevent full overlay scroll */
}

/* ✅ Make modal box scrollable */
#project-modal>div {
    max-height: 90vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    /* smooth iOS scroll */
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeUp {
    animation: fadeUp 0.9s ease forwards;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px 0 24px;
}

.faq-item.active .faq-content {
    padding: 10px 24px 24px 24px;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}
