/* ============================================
   XEROIT SOLUTIONS - Modern Website Styles
   ============================================ */

:root {
    /* Color Palette - Light Theme with Blue Accent */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #e2e8f0;
    
    --accent-primary: #2563eb;
    --accent-secondary: #1d4ed8;
    --accent-tertiary: #3b82f6;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --gradient-hero: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(29, 78, 216, 0.08) 100%);
    --gradient-accent: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    
    /* Typography - Professional business standard */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: clamp(3rem, 8vw, 6rem);
    --container-max: 1280px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* 3D Perspective */
    --perspective: 1000px;

    /* Section backgrounds - Light blue with 3D */
    --section-bg-blue-light: linear-gradient(180deg, #e0f2fe 0%, #dbeafe 50%, #bfdbfe 100%);
    --section-bg-blue-alt: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
    --section-shadow-3d: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -2px rgba(37, 99, 235, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    --section-shadow-3d-alt: 0 -2px 10px rgba(37, 99, 235, 0.08), 0 4px 20px rgba(37, 99, 235, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* SEO: Visually hidden but accessible to screen readers & crawlers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scroll on mobile */
html, body {
    max-width: 100vw;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: var(--gradient-glow);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.6rem 0 0.6rem 0.75rem;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    width: 100%;
    box-sizing: border-box;
}

.navbar.scrolled {
    padding: 0.5rem 0 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 0.75rem 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: auto;
    margin-left: 0;
    transition: var(--transition-smooth);
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    height: 72px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
    white-space: nowrap;
    position: relative;
    transition: var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-has-dropdown {
    position: relative;
}

.nav-has-dropdown > a::after {
    display: none;
}

.nav-has-dropdown > a {
    display: flex;
    align-items: center;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0.5rem);
    min-width: 220px;
    max-width: 280px;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    list-style: none;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1001;
}

.nav-has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0.25rem);
}

.nav-dropdown li {
    margin: 0;
}

.nav-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-dropdown a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-primary);
}

.nav-dropdown a::after {
    display: none;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    margin-top: 88px;
    display: block;
    line-height: 0;
    font-size: 0;
    border: none;
    outline: none;
    overflow: hidden;
}

.hero-video-container {
    position: relative;
    width: 100%;
    display: block;
    line-height: 0;
    font-size: 0;
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    outline: none;
    vertical-align: bottom;
    margin: 0;
    padding: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(248, 250, 252, 0.15) 0%,
        transparent 40%,
        transparent 100%
    );
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.title-line.accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(0, 0, 0, 0.15);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.scroll-indicator {
    display: flex;
    justify-content: center;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    position: relative;
    animation: scrollBounce 2s ease-in-out infinite;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 2s ease-in-out infinite;
}

/* Hero 3D Shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.shape-1 {
    width: 350px;
    height: 350px;
    background: var(--accent-primary);
    top: 5%;
    right: 5%;
    animation: shapeFloat 8s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-secondary);
    top: 15%;
    left: 5%;
    animation: shapeFloat 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 180px;
    height: 180px;
    background: var(--accent-tertiary);
    top: 25%;
    left: 50%;
    margin-left: -90px;
    animation: shapeFloat 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes wheelScroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
    padding: var(--section-padding) 1.5rem;
    position: relative;
    z-index: 1;
    background: var(--section-bg-blue-light);
    box-shadow: var(--section-shadow-3d);
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, transparent 40%, rgba(37, 99, 235, 0.08) 100%);
    pointer-events: none;
    z-index: 0;
}

.section > .container {
    position: relative;
    z-index: 1;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   ABOUT SECTION - 3D Cards
   ============================================ */
.about-section {
    background: var(--section-bg-blue-light);
    box-shadow: var(--section-shadow-3d);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.about-card {
    perspective: var(--perspective);
    display: flex;
}

.card-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: transform var(--transition-smooth);
    flex: 1;
    display: flex;
}

.about-card:hover .card-3d {
    transform: rotateY(5deg) rotateX(5deg);
}

.about-card .card-inner {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    transition: var(--transition-smooth);
    transform: translateZ(20px);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.about-card .card-inner h3 {
    flex-shrink: 0;
}

.about-card .card-inner p {
    flex: 1;
}

.about-card:hover .card-inner {
    background: var(--bg-card-hover);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #ffffff;
}

.card-inner h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-inner p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================
   STRATEGY SECTION
   ============================================ */
.strategy-section {
    background: var(--section-bg-blue-alt);
    box-shadow: var(--section-shadow-3d-alt);
}

.strategy-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 0;
}

.strategy-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: 16px;
    min-width: 140px;
    max-width: 180px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.strategy-step:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border: 1px solid rgba(37, 99, 235, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.step-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(37, 99, 235, 0.08);
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.strategy-step span {
    font-weight: 600;
    font-size: 0.9rem;
}

.strategy-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   SERVICES SECTION - 3D Flip Cards
   ============================================ */
.services-section {
    background: var(--section-bg-blue-light);
    box-shadow: var(--section-shadow-3d);
}

/* Services Carousel */
.services-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 0.5rem;
}

.services-carousel-inner {
    flex: 1;
    overflow: hidden;
}

.services-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.services-track .service-card {
    flex: 0 0 calc(100% - 0.5rem);
    min-width: 0;
}

@media (min-width: 768px) {
    .services-track .service-card {
        flex: 0 0 calc(50% - 0.625rem);
    }
}

@media (min-width: 1024px) {
    .services-track .service-card {
        flex: 0 0 calc(33.333% - 0.84rem);
    }
}

.services-arrow {
    flex-shrink: 0;
    width: 48px;
    min-width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--accent-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-smooth);
}

.services-arrow:hover {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    transform: scale(1.05);
}

.services-arrow:active {
    transform: scale(0.98);
}

.services-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.services-arrow:disabled:hover {
    background: var(--bg-card);
    color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.services-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.services-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-smooth);
}

.services-dot:hover {
    background: rgba(37, 99, 235, 0.5);
}

.services-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent-primary);
}

.service-card {
    perspective: var(--perspective);
    min-height: 280px;
}

.service-card-inner {
    --service-bg: none;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    transition: all var(--transition-smooth);
    transform-style: preserve-3d;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: hidden;
}

.service-card-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--service-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.service-card-inner > * {
    position: relative;
    z-index: 1;
}

.service-card:hover .service-card-inner {
    transform: rotateY(5deg) rotateX(-5deg) translateZ(10px);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.12),
        0 0 40px rgba(37, 99, 235, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(29, 78, 216, 0.2) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--gradient-accent);
    color: #ffffff;
}

.service-card-inner h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card-inner p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.55;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-features li i {
    color: var(--accent-primary);
    font-size: 0.7rem;
}

.service-features-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.service-features-inline li {
    margin-bottom: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.service-source {
    display: inline-block;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* ============================================
   SOLUTIONS SECTION
   ============================================ */
.solutions-section {
    background: var(--section-bg-blue-alt);
    box-shadow: var(--section-shadow-3d-alt);
}

.solutions-source {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.solutions-source:hover {
    text-decoration: underline;
}

/* Solutions Carousel */
.solutions-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 0.5rem;
}

.solutions-carousel-inner {
    flex: 1;
    overflow: hidden;
}

.solutions-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.solutions-track .solution-card {
    flex: 0 0 calc(100% - 0.5rem);
    min-width: 0;
}

.solutions-arrow {
    flex-shrink: 0;
    width: 48px;
    min-width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--accent-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-smooth);
}

.solutions-arrow:hover {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    transform: scale(1.05);
}

.solutions-arrow:active {
    transform: scale(0.98);
}

.solutions-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.solutions-arrow:disabled:hover {
    background: var(--bg-card);
    color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.solutions-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.solutions-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-smooth);
}

.solutions-dot:hover {
    background: rgba(37, 99, 235, 0.5);
}

.solutions-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent-primary);
}

@media (min-width: 768px) {
    .solutions-track .solution-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (min-width: 1024px) {
    .solutions-track .solution-card {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

.solution-card {
    perspective: var(--perspective);
}

.solution-card-inner {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all var(--transition-smooth);
}

.solution-card:hover .solution-card-inner {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.solution-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.solution-card-inner h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.solution-card-inner p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.solution-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.solution-tags span {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(37, 99, 235, 0.12);
    border-radius: 50px;
    color: var(--accent-primary);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background: var(--section-bg-blue-light);
    box-shadow: var(--section-shadow-3d);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.stat-card {
    text-align: center;
    padding: 1.75rem 1rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    display: inline;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    background: var(--section-bg-blue-alt);
    box-shadow: var(--section-shadow-3d-alt);
}

.gallery-category {
    margin-bottom: 3.5rem;
}

.gallery-category:last-of-type {
    margin-bottom: 0;
}

.gallery-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.gallery-category-header i {
    font-size: 1.25rem;
    color: var(--accent-primary);
    background: rgba(37, 99, 235, 0.12);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gallery-category-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Collage grid (kept for reference) */
.gallery-collage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 10px;
}

/* Uniform grid - 5 columns, equal tiles, 16:9 ratio */
.gallery-grid-uniform {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.gallery-grid-uniform 
/* ---- Events Auto-Scroll Carousel ---- */
.events-carousel-outer {
    position: relative;
}

.events-carousel-wrapper {
    overflow: hidden;
    border-radius: 14px;
    user-select: none;
}



.events-carousel-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: evScroll 120s linear infinite;
}

.events-carousel-track.paused,
.events-carousel-wrapper:hover .events-carousel-track {
    animation-play-state: paused;
}

@keyframes evScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Each slide: 16:9 at 220px tall = ~391px wide */
.ev-slide {
    flex: 0 0 391px;
    width: 391px;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.ev-slide:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
    z-index: 2;
}

.ev-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.ev-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ev-slide:hover .ev-overlay { opacity: 0; }

/* Arrow + controls row */
.events-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

.ev-btn {
    background: var(--bg-card);
    border: 2px solid rgba(37,99,235,0.25);
    color: var(--accent-primary);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ev-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

@media (max-width: 768px) {
    .ev-slide { flex: 0 0 260px; width: 260px; height: 146px; }
}

@media (max-width: 480px) {
    .ev-slide { flex: 0 0 200px; width: 200px; height: 113px; }
}

.gallery-item {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: rgba(37, 99, 235, 0.07);
    border: 2px dashed rgba(37, 99, 235, 0.2);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.gallery-grid-uniform .gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.22);
    border-color: transparent;
    z-index: 2;
}

/* Promo banner - full width 16:9 */
.promo-banner-wrap {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.18);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.promo-banner-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(37, 99, 235, 0.28);
}

.promo-banner-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.promo-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 2rem;
}

.promo-banner-wrap:hover .promo-banner-overlay {
    opacity: 1;
}

.gallery-item {
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: rgba(37, 99, 235, 0.07);
    border: 2px dashed rgba(37, 99, 235, 0.2);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.2);
    border-color: transparent;
    z-index: 2;
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item-tall {
    grid-row: span 2;
}

.gallery-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img-wrapper img {
    transform: scale(1.07);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Placeholder state (when image not loaded) */
.gallery-placeholder {
    background: rgba(37, 99, 235, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-placeholder::after {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2rem;
    color: rgba(37, 99, 235, 0.25);
}

/* Upload hint */
.gallery-upload-hint {
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-upload-hint i {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.gallery-upload-hint code {
    background: rgba(37, 99, 235, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--accent-primary);
}


/* ---- Gifts Carousel (same as events but scrolls right) ---- */
.gift-carousel-track {
    animation: giftScroll 120s linear infinite;
}

.gift-carousel-wrapper:hover .gift-carousel-track {
    animation-play-state: paused;
}

.gift-carousel-track.paused {
    animation-play-state: paused;
}

@keyframes giftScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gift-slide {
    flex: 0 0 220px;
    width: 220px;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.gift-slide:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
    z-index: 2;
}

.gift-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

@media (max-width: 768px) {
    .gift-slide { flex: 0 0 180px; width: 180px; height: 180px; }
}

@media (max-width: 480px) {
    .gift-slide { flex: 0 0 140px; width: 140px; height: 140px; }
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(37, 99, 235, 0.7);
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 1024px) {
    .gallery-collage {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
    }
    .gallery-grid-uniform {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-collage {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 8px;
    }
    .gallery-item-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    .gallery-item-tall {
        grid-row: span 2;
    }
    .gallery-grid-uniform {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .gallery-collage {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
        gap: 6px;
    }
    .gallery-grid-uniform {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}


/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--section-bg-blue-light);
    box-shadow: var(--section-shadow-3d);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
}

.contact-item:hover {
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item p {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent-primary);
}

.contact-cta .btn-primary {
    white-space: nowrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-primary);
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
}

.footer-brand .logo-text {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.footer-brand .logo-sub {
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    color: var(--accent-primary);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 0;
}

.footer-visitors {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 0;
}

.footer-visitors i {
    margin-right: 0.25rem;
    color: var(--accent-primary);
}

/* ============================================
   AOS Animation Classes
   ============================================ */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos="fade-down"] { transform: translateY(-40px); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="fade-left"] { transform: translateX(40px); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos="flip-left"] { transform: perspective(1000px) rotateY(-20deg); }
[data-aos="flip-up"] { transform: perspective(1000px) rotateX(-20deg); }
[data-aos="slide-right"] { transform: translateX(-60px); }

[data-aos="zoom-in"].aos-animate { transform: scale(1); }
[data-aos="flip-left"].aos-animate { transform: perspective(1000px) rotateY(0); }
[data-aos="flip-up"].aos-animate { transform: perspective(1000px) rotateX(0); }
[data-aos="slide-right"].aos-animate { transform: translateX(0); }

/* ============================================
   RESPONSIVE DESIGN - Mobile & Tablet
   ============================================ */

/* Touch-friendly: Minimum 44px touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn {
        padding: 1rem 2rem;
        min-height: 48px;
    }
    
    .nav-toggle {
        min-width: 48px;
        min-height: 48px;
        padding: 12px;
    }
    
    a, button {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Tablet - iPad (768px - 1024px) */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    
    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    }
    
    .services-arrow {
        width: 44px;
        min-width: 44px;
        height: 44px;
    }
    
    .solutions-arrow {
        width: 44px;
        min-width: 44px;
        height: 44px;
    }
    
    .section {
        padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    }
    
    .section-header {
        margin-bottom: clamp(2rem, 4vw, 3rem);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
    }
    
    .nav-container {
        padding: 0 1rem 0 0;
    }
    
    .navbar {
        padding: 0.5rem 0 0.5rem 0.75rem;
    }
    .hero {
        margin-top: 82px;
    }
}

/* Mobile - Phones (max 768px) */
@media (max-width: 768px) {
    .logo-img {
        height: 56px;
        max-width: 200px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(85%, 320px);
        height: 100vh;
        height: 100dvh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 0.5rem;
        transition: var(--transition-smooth);
        border-left: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        padding-top: calc(5rem + env(safe-area-inset-top));
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-overlay {
        display: block;
    }
    
    .nav-links a {
        padding: 1rem 0;
        font-size: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .nav-has-dropdown .nav-dropdown {
        position: static;
        transform: none;
        min-width: auto;
        max-height: none;
        box-shadow: none;
        border: none;
        background: rgba(37, 99, 235, 0.06);
        border-radius: 8px;
        margin-top: 0.5rem;
        margin-left: 1rem;
        padding: 0.5rem 0;
        opacity: 1;
        visibility: visible;
    }

    .nav-dropdown a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
        align-items: center;
        justify-content: center;
    }
    
    .nav-toggle span {
        width: 22px;
        height: 2px;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-shapes .shape {
        filter: blur(60px);
        opacity: 0.2;
    }
    
    .strategy-flow {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.5rem 0;
    }
    
    .strategy-flow .strategy-arrow {
        transform: rotate(90deg);
        margin: 0.25rem 0;
    }

    .strategy-step {
        min-width: 100%;
        max-width: 100%;
        padding: 1rem;
    }

    .step-image {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .services-carousel {
        padding: 0 0.25rem;
    }

    .services-arrow {
        width: 40px;
        min-width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .service-card {
        min-height: auto;
    }
    
    .service-card-inner {
        padding: 1.5rem;
    }
    
    .solutions-carousel {
        padding: 0 0.25rem;
    }

    .solutions-arrow {
        width: 40px;
        min-width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .solution-card-inner {
        padding: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        min-height: 48px;
    }
    
    .contact-item {
        padding: 1.25rem;
    }
    
    .cursor-glow {
        display: none;
    }
    
    /* Reduce 3D effects on mobile for performance */
    .about-card:hover .card-3d,
    .service-card:hover .service-card-inner {
        transform: none;
    }
    
    .service-card:hover .service-card-inner {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .section-desc a {
        word-break: break-all;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    
    .section {
        padding: 2rem max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .container {
        padding: 0 1rem;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .nav-container {
        padding: 0 1rem 0 0;
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .navbar {
        padding: 0.5rem 0;
        padding-top: max(0.5rem, env(safe-area-inset-top));
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }
    .hero {
        margin-top: 72px;
    }
    
    .logo-img {
        height: 48px;
        max-width: 160px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card .card-inner {
        padding: 1.25rem;
        min-height: 280px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contact-content {
        gap: 1.25rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-desc {
        font-size: 0.9375rem;
    }
    
    .footer {
        padding: 1.25rem 1rem;
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    
    .nav-links {
        overflow-y: auto;
    }
}

/* iPad and tablets: Show full nav when space allows */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-toggle {
        display: none;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.8125rem;
    }
    
    .logo-img {
        height: 56px;
        max-width: 200px;
    }
}

/* Prevent zoom on input focus (iOS) - 16px base prevents this */
input, select, textarea {
    font-size: 16px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Improve touch targets */
    .nav-toggle {
        min-width: 48px;
        min-height: 48px;
        padding: 12px;
    }

    /* Remove tap highlight on buttons/links */
    a, button {
        -webkit-tap-highlight-color: transparent;
    }

    /* Prevent horizontal overscroll */
    body {
        overflow-x: hidden;
    }
}
