/* ===========================
   TABLE OF CONTENTS
   1. RESET & GLOBAL
   2. DARK MODE
   3. LIGHT MODE
   4. NAVBAR
   5. HERO SECTIONS
   6. MISSION & INFO CARDS
   7. TEAM SECTION
   8. HISTORY SECTION
   9. SERVICES SECTION
   10. CTA SECTION
   11. CONTACT SECTION
   12. FOOTER
   13. ANIMATIONS & EFFECTS
   14. MOBILE RESPONSIVE
=========================== */

/* ===========================
   1. RESET & GLOBAL
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}



/* ===========================
   2. DARK MODE
=========================== */
body.dark {
    background: linear-gradient(135deg, #0A1A2F 0%, #11243D 100%);
    color: #f1f5f9;
}

body.dark::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(245, 197, 24, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(184, 134, 11, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===========================
   3. LIGHT MODE
=========================== */
body.light {
    background: linear-gradient(135deg, #fafbfc 0%, #f0f4f8 100%);
    color: #0f172a;
}

body.light::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 30%, rgba(245, 197, 24, 0.15) 0%, transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(214, 162, 29, 0.20) 0%, transparent 55%);
    pointer-events: none;
    z-index: -1;
}

/* Cards in light mode */
body.light .mission-card,
body.light .service-card,
body.light .info-card,
body.light .team-image,
body.light .contact-form {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08),
                0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

body.light .service-card:hover,
body.light .mission-card:hover {
    box-shadow: 0 16px 48px rgba(214, 162, 29, 0.25),
                0 4px 16px rgba(15, 23, 42, 0.1) !important;
}

body.light .contact-form input,
body.light .contact-form textarea {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    color: #0f172a !important;
}

body.light .contact-form input::placeholder,
body.light .contact-form textarea::placeholder {
    color: #94a3b8 !important;
}

body.light .contact-form input:focus,
body.light .contact-form textarea:focus {
    border-color: #D6A21D !important;
    box-shadow: 0 0 0 3px rgba(214, 162, 29, 0.15) !important;
}

body.light #drop-area {
    background: rgba(248, 250, 252, 0.8) !important;
    border: 2px dashed rgba(148, 163, 184, 0.4) !important;
    color: #475569 !important;
}

body.light #drop-area:hover {
    background: rgba(255, 248, 225, 0.9) !important;
    border-color: #F5C518 !important;
}

body.light #file-list div {
    background: rgba(245, 197, 24, 0.15) !important;
    color: #8C6A00 !important;
}

body.light .service-card h3,
body.light .mission-card h3,
body.light .info-card h3 {
    color: #0f172a !important;
}

body.light .service-card p,
body.light .mission-card p,
body.light .info-card p {
    color: #475569 !important;
}

body.light .history p {
    color: #475569 !important;
}

body.light .role {
    color: #64748b !important;
}

body.light .new-hero h1 {
    color: #0f172a !important;
}

body.light .new-hero h1 span {
    background: linear-gradient(135deg, #D6A21D, #B8860B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light .hero-subtitle {
    color: #475569 !important;
}

body.light .hero-icons {
    color: #334155 !important;
}

body.light .page-hero h1 {
    background: linear-gradient(135deg, #D6A21D, #8C6A00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light .page-hero p {
    color: #475569 !important;
}
/* ===========================
   MISSION FLOW SECTION - SAFARI/iOS SPECIFIC FIXES
=========================== */
.mission-flow {
    max-width: 820px;
    margin: 6rem auto;
    padding: 0 1.5rem;
    overflow: hidden;
}

.flow-item {
    display: -webkit-box;      /* OLD iOS Safari, BB7 */
    display: -ms-flexbox;      /* IE 10 */
    display: -webkit-flex;     /* Safari 6.1+ */
    display: flex;             /* Modern browsers */
    flex-direction: row;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    align-items: flex-start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    margin-bottom: 3.5rem;
    gap: 1.75rem;
}

/* Fallback for browsers without gap support (older Safari) */
.flow-item > * + * {
    margin-left: 1.75rem;
}

@supports (gap: 1.75rem) {
    .flow-item > * + * {
        margin-left: 0;
    }
}

.flow-line {
    width: 2px;
    min-width: 2px;
    max-width: 2px;
    height: 100%;
    min-height: 80px;
    background: -webkit-linear-gradient(top, rgba(245,197,24,0.45), rgba(245,197,24,0));
    background: linear-gradient(to bottom, rgba(245,197,24,0.45), rgba(245,197,24,0));
    background-color: rgba(245,197,24,0.3); /* Fallback */
    margin: 0 auto;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.flow-icon {
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    height: 56px;
    min-height: 56px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    background: -webkit-radial-gradient(center top, rgba(245,197,24,0.35), rgba(245,197,24,0.08));
    background: radial-gradient(circle at top, rgba(245,197,24,0.35), rgba(245,197,24,0.08));
    background-color: rgba(245,197,24,0.2); /* Fallback */
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-box-shadow: 0 4px 16px rgba(245,197,24,0.2);
    box-shadow: 0 4px 16px rgba(245,197,24,0.2);
}

.flow-icon i {
    font-size: 1.6rem;
    color: #F5C518;
    display: block;
}

.flow-text {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0; /* Important for text wrapping in flexbox */
}

.flow-text h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    margin-top: 0;
    color: #f8fafc;
}

body.light .flow-text h3 {
    color: #0f172a;
}

.flow-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d1d5db;
    margin: 0;
}

body.light .flow-text p {
    color: #475569;
}

/* ===========================
   MOBILE RESPONSIVE - FLOW ITEMS
=========================== */

/* Tablet (max-width: 900px) */
@media (max-width: 900px) {
    .mission-flow {
        padding: 0 1.25rem;
        margin: 5rem auto;
    }
    
    .flow-item {
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .flow-item > * + * {
        margin-left: 1.5rem;
    }
    
    @supports (gap: 1.5rem) {
        .flow-item > * + * {
            margin-left: 0;
        }
    }
    
    .flow-line {
        min-height: 70px;
    }
    
    .flow-icon {
        width: 52px;
        min-width: 52px;
        max-width: 52px;
        height: 52px;
        min-height: 52px;
    }
    
    .flow-icon i {
        font-size: 1.4rem;
    }
    
    .flow-text h3 {
        font-size: 1.3rem;
    }
    
    .flow-text p {
        font-size: 1.05rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .mission-flow {
        padding: 0 1rem;
        margin: 4rem auto;
    }
    
    .flow-item {
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }
    
    .flow-item > * + * {
        margin-left: 1.25rem;
    }
    
    @supports (gap: 1.25rem) {
        .flow-item > * + * {
            margin-left: 0;
        }
    }
    
    .flow-line {
        min-height: 60px;
    }
    
    .flow-icon {
        width: 48px;
        min-width: 48px;
        max-width: 48px;
        height: 48px;
        min-height: 48px;
    }
    
    .flow-icon i {
        font-size: 1.3rem;
    }
    
    .flow-text h3 {
        font-size: 1.25rem;
    }
    
    .flow-text p {
        font-size: 1rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .mission-flow {
        padding: 0 0.75rem;
        margin: 3rem auto;
    }
    
    .flow-item {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .flow-item > * + * {
        margin-left: 1rem;
    }
    
    @supports (gap: 1rem) {
        .flow-item > * + * {
            margin-left: 0;
        }
    }
    
    .flow-line {
        min-height: 50px;
        width: 1.5px;
        min-width: 1.5px;
        max-width: 1.5px;
    }
    
    .flow-icon {
        width: 40px;
        min-width: 40px;
        max-width: 40px;
        height: 40px;
        min-height: 40px;
    }
    
    .flow-icon i {
        font-size: 1.1rem;
    }
    
    .flow-text h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .flow-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
    .flow-item {
        gap: 0.85rem;
    }
    
    .flow-item > * + * {
        margin-left: 0.85rem;
    }
    
    @supports (gap: 0.85rem) {
        .flow-item > * + * {
            margin-left: 0;
        }
    }
    
    .flow-icon {
        width: 36px;
        min-width: 36px;
        max-width: 36px;
        height: 36px;
        min-height: 36px;
    }
    
    .flow-icon i {
        font-size: 1rem;
    }
    
    .flow-text h3 {
        font-size: 1.05rem;
    }
    
    .flow-text p {
        font-size: 0.9rem;
    }
}
/* ===========================
   4. NAVBAR
=========================== */
.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1rem 0;
    background: rgba(10, 26, 47, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light .navbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Logo */
.nav-logo img {
    height: auto !important;
    width: auto !important;
    max-height: 50px !important;
    object-fit: contain;
    display: block;
}

.nav-logo .logo-dark {
    display: block;
}

.nav-logo .logo-light {
    display: none;
}

body.light .nav-logo .logo-dark {
    display: none;
}

body.light .nav-logo .logo-light {
    display: block;
}

/* Navigation links */
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0;
    color: #e2e8f0;
    transition: color 0.3s ease;
}

body.light .nav-links a {
    color: #334155;
}

.nav-links a:hover {
    color: #F5C518;
}

body.light .nav-links a:hover {
    color: #D6A21D;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #F5C518, #B8860B);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Navigation actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme button */
.theme-btn {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(10, 26, 47, 0.6);
    color: #f1f5f9;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    background: rgba(10, 26, 47, 0.8);
    transform: rotate(180deg);
}

body.light .theme-btn {
    background: rgba(248, 250, 252, 0.85);
    color: #0f172a;
}

body.light .theme-btn:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* Mobile menu button */
.mobile-btn {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 8px;
    transition: transform 0.3s ease;
}

.mobile-btn:hover {
    transform: scale(1.1);
}

/* Mobile menu */
/* Mobile menu */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
    background: rgba(10, 26, 47, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
    padding: 1rem 0;
    gap: 0;
}

body.light #mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

#mobile-menu a {
    font-size: 16px;
    font-weight: 500;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #e5e7eb;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: block;
}

#mobile-menu a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #F5C518, #D6A21D);
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu a:hover,
#mobile-menu a:active {
    color: #F5C518;
    background: rgba(245, 197, 24, 0.06);
    padding-left: 2.5rem;
}

#mobile-menu a:hover::before,
#mobile-menu a:active::before {
    height: 100%;
}

body.light #mobile-menu a {
    color: #334155;
    border-bottom-color: rgba(148, 163, 184, 0.15);
}

body.light #mobile-menu a:hover,
body.light #mobile-menu a:active {
    color: #D6A21D;
    background: rgba(214, 162, 29, 0.06);
}
/* Menu overlay */
#menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 26, 47, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
}

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


/* ===========================
   5. HERO SECTIONS
=========================== */
.new-hero {
    text-align: center;
    padding: 10rem 2rem 6rem;
    max-width: 1000px;
    margin: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(245, 197, 24, 0.10);
    border: 1px solid rgba(245, 197, 24, 0.30);
    color: #F5C518;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    animation: fadeInScale 0.6s ease forwards;
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.20);
}

body.light .hero-badge {
    background: rgba(245, 197, 24, 0.20);
    border-color: rgba(214, 162, 29, 0.35);
    color: #8C6A00;
}

.new-hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.new-hero h1 span {
    background: linear-gradient(135deg, #F5C518, #B8860B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

.hero-subtitle {
    font-size: clamp(17px, 2.5vw, 22px);
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #cbd5e1;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

body.light .hero-subtitle {
    color: #475569;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #F5C518, #D6A21D);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    color: #0A1A2F;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.35);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(214, 162, 29, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

body.light .btn-secondary {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.2);
}

body.light .btn-secondary:hover {
    background: rgba(15, 23, 42, 0.12);
}

.hero-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    font-size: 15px;
    margin-top: 2rem;
    color: #cbd5e1;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.hero-icons div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-icons i {
    color: #F5C518;
    font-size: 18px;
}

body.light .hero-icons {
    color: #475569;
}

body.light .hero-icons i {
    color: #8C6A00;
}

/* PAGE HERO */
.page-hero {
    text-align: center;
    padding: 10rem 2rem 6rem;
    max-width: 1000px;
    margin: auto;
    position: relative;
    overflow: hidden;
}


.page-hero::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(214, 162, 29, 0.15),
        transparent 70%
    );
    filter: blur(80px);
    z-index: -1;
}

body.light .page-hero::before {
    background: radial-gradient(
        circle,
        rgba(245, 197, 24, 0.22),
        transparent 70%
    );
}

.page-hero h1 {
    font-size: clamp(40px, 6vw, 60px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #F5C518, #8C6A00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeSlideDown 0.6s ease forwards;
}

body.light .page-hero h1 {
    background: linear-gradient(135deg, #D6A21D, #8C6A00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero p {
    font-size: clamp(17px, 2vw, 21px);
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    animation: fadeSlideUp 0.7s ease 0.2s forwards;
    opacity: 0;
}

body.light .page-hero p {
    color: #475569;
}

/* ===========================
   6. MISSION & INFO CARDS
=========================== */
.mission {
    max-width: 1200px;
    margin: 4rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.mission-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.mission-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 48px rgba(214, 162, 29, 0.25);
    border-color: rgba(214, 162, 29, 0.30);
}

.mission-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.mission-card h3 i {
    color: #F5C518;
    margin-right: 8px;
}

.mission-card p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
}



/* ===========================
   7. 3D CAROUSEL TEAM SECTION (FIXED FOR IOS/SAFARI)
=========================== */
.team-section {
    margin-top: 6rem;
    text-align: center;
    padding: 3rem 0;
    overflow: hidden;
}

.team-section h2 {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #f1f5f9;
    padding: 0 2rem;
}

body.light .team-section h2 {
    color: #0f172a;
}

.team-desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

body.light .team-desc {
    color: #475569;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    min-height: 480px;
}

/* 3D Carousel Viewport - CRITICAL iOS/Safari fixes */
.carousel-3d {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 420px;
    perspective: 1200px;
    -webkit-perspective: 1200px;
    perspective-origin: center center;
    -webkit-perspective-origin: center center;
}

/* Carousel Track - CRITICAL 3D transforms */
.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Individual Carousel Card - CRITICAL iOS fixes */
.carousel-card {
    position: absolute;
    width: 280px;
    height: 380px;
    left: 50%;
    top: 50%;
    margin-left: -140px;
    margin-top: -190px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    /* Force hardware acceleration on iOS */
    -webkit-transform: translateZ(0);
    will-change: transform, opacity;
}

/* Card positions - with -webkit- prefixes for iOS */
.carousel-card.center {
    transform: translateX(0) translateZ(100px) scale(1);
    -webkit-transform: translateX(0) translateZ(100px) scale(1);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

.carousel-card.left {
    transform: translateX(-280px) translateZ(-50px) scale(0.85) rotateY(25deg);
    -webkit-transform: translateX(-280px) translateZ(-50px) scale(0.85) rotateY(25deg);
    opacity: 0.7;
    z-index: 5;
    pointer-events: auto;
}

.carousel-card.right {
    transform: translateX(280px) translateZ(-50px) scale(0.85) rotateY(-25deg);
    -webkit-transform: translateX(280px) translateZ(-50px) scale(0.85) rotateY(-25deg);
    opacity: 0.7;
    z-index: 5;
    pointer-events: auto;
}

.carousel-card.far-left {
    transform: translateX(-500px) translateZ(-150px) scale(0.6) rotateY(40deg);
    -webkit-transform: translateX(-500px) translateZ(-150px) scale(0.6) rotateY(40deg);
    opacity: 0;
    z-index: 1;
}

.carousel-card.far-right {
    transform: translateX(500px) translateZ(-150px) scale(0.6) rotateY(-40deg);
    -webkit-transform: translateX(500px) translateZ(-150px) scale(0.6) rotateY(-40deg);
    opacity: 0;
    z-index: 1;
}

.carousel-card.hidden {
    transform: translateX(0) translateZ(-300px) scale(0.4);
    -webkit-transform: translateX(0) translateZ(-300px) scale(0.4);
    opacity: 0;
    z-index: 0;
}

/* Card Inner Content */
.card-inner {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    /* Fallback for browsers without backdrop-filter */
    background-color: rgba(17, 36, 61, 0.85);
}

@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
    .card-inner {
        background: rgba(255, 255, 255, 0.05);
    }
}

body.light .card-inner {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
}

.carousel-card.center .card-inner {
    box-shadow: 0 30px 80px rgba(245, 197, 24, 0.3),
                0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(245, 197, 24, 0.3);
}

.carousel-card.center:hover .card-inner {
    transform: translateY(-5px);
    -webkit-transform: translateY(-5px);
    box-shadow: 0 40px 100px rgba(245, 197, 24, 0.4),
                0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Team Image Wrapper */
.team-image-wrapper {
    width: 100%;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.carousel-card.center .team-image-wrapper {
    height: 260px;
}

/* Team Photo */
.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    -webkit-transition: transform 0.4s ease;
}

.carousel-card.center:hover .team-photo {
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
}

/* Placeholder when no image */
.team-image-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.15), rgba(184, 134, 11, 0.1));
    border: 2px dashed rgba(245, 197, 24, 0.3);
    border-radius: 16px;
}

.team-image-placeholder i {
    font-size: 56px;
    color: rgba(245, 197, 24, 0.5);
}

body.light .team-image-placeholder {
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.1), rgba(214, 162, 29, 0.05));
}

body.light .team-image-placeholder i {
    color: rgba(214, 162, 29, 0.5);
}

/* Team Info */
.team-info {
    text-align: center;
    padding: 0.5rem 0;
}

.team-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #f1f5f9;
}

body.light .team-info h3 {
    color: #0f172a;
}

.team-info .role {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.4;
}

body.light .team-info .role {
    color: #64748b;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5C518, #D6A21D);
    border: none;
    color: #0A1A2F;
    font-size: 22px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    -webkit-transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 32px rgba(245, 197, 24, 0.5);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
    -webkit-transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(245, 197, 24, 0.5);
}

.carousel-dot.active {
    background: linear-gradient(135deg, #F5C518, #D6A21D);
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(245, 197, 24, 0.4);
}

/* ===========================
   8. HISTORY SECTION
=========================== */
.history {
    
    max-width: 950px;
    margin: 6rem auto;
    padding: 2rem;
    overflow: hidden;

}

.history h2 {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #f1f5f9;
    padding: 0 2rem;
    
        
    text-align: center;

}

body.light .history h2 {
    color: #0f172a;
}

.history-content {
    max-width: 800px;
    margin: 0 auto;
}

.history-content p {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

body.light .history-content p {
    color: #475569;
}

.history-content strong {
    color: #F5C518;
    font-weight: 600;
}

body.light .history-content strong {
    color: #D6A21D;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.15), rgba(214, 162, 29, 0.1));
    border-left: 4px solid #F5C518;
    padding: 2rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.highlight-box i {
    font-size: 36px;
    color: #F5C518;
    flex-shrink: 0;
    margin-top: 4px;
}

.highlight-box p {
    margin: 0;
    font-style: italic;
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.7;
}

body.light .highlight-box p {
    color: #334155;
}

.closing-statement {
    text-align: center;
    font-size: 1.2rem !important;
    color: #F5C518 !important;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 2px solid rgba(245, 197, 24, 0.2);
}

body.light .closing-statement {
    color: #D6A21D !important;
}

/* ===========================
   9. SERVICES SECTION
=========================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1280px;
    margin: auto;
}

.service-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Fallback for browsers without backdrop-filter */
    background-color: rgba(17, 36, 61, 0.8);
}

@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
    .service-card {
        background: rgba(255, 255, 255, 0.05);
    }
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 64px rgba(184, 134, 11, 0.35);
    border-color: rgba(214, 162, 29, 0.3);
}

/* Animated border effect */
.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #F5C518, 
        #D6A21D, 
        #B8860B, 
        #8C6A00,
        #F5C518
    );
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: borderRotate 3s linear infinite;
    background-size: 400% 400%;
}

.service-card:hover::before {
    opacity: 1;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #F5C518, #B8860B);
    box-shadow: 0 8px 32px rgba(214, 162, 29, 0.45);
    color: #fff;
    font-size: 30px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(245, 197, 24, 0.55);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

body.light .service-card h3 {
    color: #0f172a;
}

.service-card p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.7;
}

body.light .service-card p {
    color: #475569;
}

.badge {
    display: inline-block;
    margin-top: 1rem;
    background: rgba(214, 162, 29, 0.15);
    color: #D6A21D;
    padding: 0.4rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(214, 162, 29, 0.3);
}

/* Featured service card */
.featured-service {
    position: relative;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.15), rgba(214, 162, 29, 0.1)) !important;
    border: 2px solid rgba(245, 197, 24, 0.4) !important;
}

.featured-service:hover {
    border-color: #F5C518 !important;
    box-shadow: 0 16px 48px rgba(245, 197, 24, 0.3) !important;
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: linear-gradient(135deg, #F5C518, #D6A21D);
    color: #0f172a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.4);
}

.featured-badge i {
    font-size: 12px;
}

/* ===========================
   SCAM WARNING SECTION
=========================== */
.scam-warning {
    max-width: 1280px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.scam-warning-content {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.light .scam-warning-content {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.03));
    border-color: rgba(239, 68, 68, 0.2);
}

.scam-warning-header {
    text-align: center;
    margin-bottom: 3rem;
}

.scam-warning-header i {
    font-size: 60px;
    color: #ef4444;
    margin-bottom: 1rem;
    display: block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.scam-warning-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 0.5rem 0;
}

body.light .scam-warning-header h2 {
    color: #0f172a;
}

.scam-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-top: 0.5rem;
    font-weight: 400;
}

body.light .scam-subtitle {
    color: #64748b;
}

.scam-examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.scam-example {
    background: rgba(10, 26, 47, 0.6);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.scam-example:hover {
    transform: translateY(-4px);
    border-color: #ef4444;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

body.light .scam-example {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(239, 68, 68, 0.15);
}

body.light .scam-example:hover {
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15);
}

.scam-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 28px;
    color: #ef4444;
}

.scam-example h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
}

body.light .scam-example h4 {
    color: #0f172a;
}

.scam-example p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
}

body.light .scam-example p {
    color: #475569;
}

.scam-example strong {
    color: #ef4444;
    font-weight: 700;
}

.scam-cta {
    text-align: center;
    padding: 2rem;
    background: rgba(245, 197, 24, 0.1);
    border-radius: 16px;
    border: 2px dashed rgba(245, 197, 24, 0.3);
}

.scam-cta-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.scam-cta-content i {
    font-size: 32px;
    color: #F5C518;
    flex-shrink: 0;
    margin-top: 4px;
}

.scam-cta-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem !important;
    color: #f1f5f9;
}

body.light .scam-cta-title {
    color: #0f172a;
}

.scam-cta-desc {
    font-size: 1rem;
    opacity: 0.9;
    color: #cbd5e1;
}

body.light .scam-cta-desc {
    color: #475569;
}

.scam-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.scam-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

/* ===========================
   10. CTA SECTION
=========================== */
.cta-section {
    margin-top: 6rem;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #F5C518 0%, #8C6A00 100%);
    color: #0A1A2F;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    animation: rotate 20s linear infinite;
}

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

.cta-section h2 {
    font-size: clamp(32px, 4vw, 42px);
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.cta-btn {
    background: #0A1A2F;
    color: white;
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(10, 26, 47, 0.4);
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(10, 26, 47, 0.55);
}

/* ===========================
   11. CONTACT SECTION
=========================== */
.contact-wrapper {
    max-width: 1280px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 4rem auto;
    padding: 2rem;
    overflow: hidden;
}
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    /* Fallback for browsers without backdrop-filter */
    background-color: rgba(17, 36, 61, 0.85);
}

@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
    .contact-form {
        background: rgba(255, 255, 255, 0.05);
    }
}

.contact-form h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #f1f5f9;
}

body.light .contact-form h2 {
    color: #0f172a;
}

.contact-form label {
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #e2e8f0;
}

body.light .contact-form label {
    color: #334155;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    background: rgba(10, 26, 47, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: white;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #D6A21D;
    box-shadow: 0 0 0 3px rgba(214, 162, 29, 0.25);
    background: rgba(10, 26, 47, 0.8);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.send-btn {
    margin-top: 2rem;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #F5C518, #B8860B);
    border: none;
    border-radius: 12px;
    color: #0A1A2F;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.35);
}

.send-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(184, 134, 11, 0.45);
}

/* Drag & drop */
#drop-area {
    margin-top: 1rem;
    padding: 2rem;
    border: 2px dashed rgba(148, 163, 184, 0.4);
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

#drop-area:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #F5C518;
}

body.light #drop-area {
    color: #475569;
}

#drop-area p {
    margin: 0;
    font-weight: 500;
}

#fileElem {
    display: none;
}

#file-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#file-list div {
    background: rgba(214, 162, 29, 0.15);
    padding: 10px 16px;
    color: #D6A21D;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.info-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(10, 26, 47, 0.25);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(214, 162, 29, 0.25);
}

.info-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f5f9;
}

body.light .info-card h3 {
    color: #0f172a;
}

.info-card p {
    color: #cbd5e1;
    font-size: 1rem;
}

body.light .info-card p {
    color: #475569;
}

.info-card a {
    color: #F5C518;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: #B8860B;
}

body.light .info-card a {
    color: #8C6A00;
}

body.light .info-card a:hover {
    color: #B8860B;
}

/* Tips Box */
/* Tips Box with Smoother Neon Border Tracing Animation */
.tips-box {
    position: relative;
    padding: 2rem;
    background: rgba(214, 162, 29, 0.12);
    border-left: 4px solid #D6A21D;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow:
        0 0 15px rgba(245, 197, 24, 0.4),
        0 0 30px rgba(214, 162, 29, 0.2),
        inset 0 0 20px rgba(245, 197, 24, 0.1),
        inset 0 0 8px rgba(245, 197, 24, 0.15);
    transition: transform 0.3s ease, box-shadow 0.4s ease;
    animation: glowPulse 7s ease-in-out infinite;
}

.tips-box:hover {
    transform: translateY(-6px);
    box-shadow:
        0 8px 30px rgba(245, 197, 24, 0.5),
        0 0 40px rgba(214, 162, 29, 0.35),
        inset 0 0 30px rgba(245, 197, 24, 0.25),
        inset 0 0 12px rgba(245, 197, 24, 0.2);
}

/* Primary animated neon border – thicker and brighter */
.tips-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 3px; /* slightly thicker for more glow */
    background: linear-gradient(
        90deg,
        transparent 20%,
        #F5C518,
        #D6A21D 50%,
        #F5C518,
        transparent 80%
    );
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderFlow 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Secondary counter-flow – softer and darker for depth */
.tips-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(
        -90deg,
        transparent 20%,
        #B8860B,
        #8C6A00 50%,
        #B8860B,
        transparent 80%
    );
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderFlow 7s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 1;
    opacity: 0.9;
}

/* Smoother diagonal flowing animation */
@keyframes borderFlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 300% 300%;
    }
}

/* Gentler, more organic glow pulse */
@keyframes glowPulse {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(245, 197, 24, 0.4),
            0 0 30px rgba(214, 162, 29, 0.2),
            inset 0 0 20px rgba(245, 197, 24, 0.1),
            inset 0 0 8px rgba(245, 197, 24, 0.15);
    }
    50% {
        box-shadow:
            0 0 25px rgba(245, 197, 24, 0.55),
            0 0 50px rgba(214, 162, 29, 0.35),
            inset 0 0 30px rgba(245, 197, 24, 0.2),
            inset 0 0 12px rgba(245, 197, 24, 0.2);
    }
}

/* Hover speed-up for interactive feel */
.tips-box:hover::before,
.tips-box:hover::after {
    animation-duration: 3.5s;
}

/* Content stays on top */
.tips-box h3,
.tips-box ul,
.tips-box li {
    position: relative;
    z-index: 2;
}

.tips-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

body.light .tips-box h3 {
    color: #0f172a;
}

.tips-box ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.tips-box li {
    margin-bottom: 0.75rem;
    color: #cbd5e1;
    line-height: 1.6;
}

body.light .tips-box li {
    color: #475569;
}

/* Light mode adjustments */
body.light .tips-box {
    background: rgba(214, 162, 29, 0.18);
    box-shadow:
        0 0 15px rgba(214, 162, 29, 0.3),
        0 0 30px rgba(184, 134, 11, 0.15),
        inset 0 0 20px rgba(214, 162, 29, 0.08),
        inset 0 0 8px rgba(214, 162, 29, 0.1);
}

body.light .tips-box::before {
    background: linear-gradient(
        90deg,
        transparent 20%,
        #D6A21D,
        #B8860B 50%,
        #D6A21D,
        transparent 80%
    );
}

body.light .tips-box::after {
    background: linear-gradient(
        -90deg,
        transparent 20%,
        #8C6A00,
        #6B5300 50%,
        #8C6A00,
        transparent 80%
    );
}

/* Accessibility - reduce motion */
@media (prefers-reduced-motion: reduce) {
    .tips-box,
    .tips-box::before,
    .tips-box::after {
        animation: none !important;
    }
    
    .tips-box::before,
    .tips-box::after {
        opacity: 0.6;
    }
    
    .tips-box:hover {
        transform: none;
    }
}

/* ===========================
   12. FOOTER
=========================== */
.site-footer {
    margin-top: 6rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, #020617 0%, #0A1A2F 100%);
    color: #e2e8f0;
    padding: 3rem 2rem 2rem;
}

/* Light mode footer background */
body.light .site-footer {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-top-color: rgba(148, 163, 184, 0.3);
    color: #334155;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

body.light .footer-col h3 {
    color: #0f172a;
}

body.light .footer-col h4 {
    color: #1e293b;
}

.footer-col p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 1rem;
}

body.light .footer-col p {
    color: #475569;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.75rem;
    color: #cbd5e1;
}

body.light .footer-col li {
    color: #64748b;
}

.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

body.light .footer-col a {
    color: #64748b;
}

.footer-col a:hover {
    color: #F5C518;
    transform: translateX(4px);
}

body.light .footer-col a:hover {
    color: #D6A21D;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 1.5rem;
    font-size: 0.95rem;
    color: #94a3b8;
    text-align: center;
}

body.light .footer-bottom {
    border-top-color: rgba(148, 163, 184, 0.3);
    color: #64748b;
}

/* ===========================
   SOCIAL MEDIA LINKS - FOOTER
=========================== */
.footer-col .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Fallback for browsers without gap support */
.footer-col .social-links > * + * {
    margin-left: 1rem;
}

@supports (gap: 1rem) {
    .footer-col .social-links > * + * {
        margin-left: 0;
    }
}

.footer-col .social-links a {
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    border-radius: 50%;
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F5C518;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    /* Override existing footer link styles */
    transform: none !important;
}

.footer-col .social-links a:hover {
    background: linear-gradient(135deg, #F5C518, #D6A21D);
    color: #0A1A2F;
    transform: translateY(-4px) scale(1.1) !important;
    box-shadow: 0 8px 20px rgba(245, 197, 24, 0.4);
    border-color: transparent;
}

/* Light mode social links */
body.light .footer-col .social-links a {
    background: rgba(214, 162, 29, 0.1);
    border-color: rgba(214, 162, 29, 0.3);
    color: #8C6A00;
}

body.light .footer-col .social-links a:hover {
    background: linear-gradient(135deg, #D6A21D, #B8860B);
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(214, 162, 29, 0.3);
}

/* Ensure icons don't inherit footer link transforms */
.footer-col .social-links a i {
    transform: none !important;
    transition: none;
}

/* ===========================
   FOOTER PARTNER SECTION
=========================== */
.footer-partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    margin: 2rem auto 0;
    max-width: 1280px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

body.light .footer-partner {
    border-top-color: rgba(148, 163, 184, 0.25);
}

.partner-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin: 0;
}

body.light .partner-label {
    color: #64748b;
}

.partner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    /* Override footer link hover transform */
    transform: none !important;
    /* Fix for iPhone */
    min-height: 50px;
    vertical-align: middle;
}

/* Gul gradient border effect */
.partner-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #F5C518, #D6A21D, #B8860B);
    border-radius: 32px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.partner-link:hover::before {
    opacity: 1;
}

body.light .partner-link {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.partner-link:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.3);
}

body.light .partner-link:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.25);
}

.partner-logo {
    height: 35px;
    max-height: 35px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    /* Prevent logo transform inheritance */
    transform: none !important;
    /* Extra fix for iPhone */
    display: block;
    vertical-align: middle;
}

.partner-link:hover .partner-logo {
    opacity: 1;
}

/* Light mode */
body.light .partner-logo {
    opacity: 0.85;
}

body.light .partner-link:hover .partner-logo {
    opacity: 1;
}
/* ===========================
   13. ANIMATIONS & EFFECTS
=========================== */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

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

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Reveal on scroll */
.reveal,
.soft-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.in-view,
.reveal.show,
.soft-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth animations for mobile */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Service card stagger */
.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }
.service-card:nth-child(7) { transition-delay: 0.6s; }
.service-card:nth-child(8) { transition-delay: 0.7s; }

/* ===========================
   MAGNIFIER FUNCTIONALITY
=========================== */
/* Zoom Content Wrapper - Isolates zoom from fixed elements */
#zoom-content-wrapper {
    min-height: 100vh;
    transition: transform 0.3s ease, width 0.3s ease;
}

/* Magnifier Toggle Button */
.magnifier-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5C518, #D6A21D);
    border: none;
    color: #0f172a;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.magnifier-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(245, 197, 24, 0.5),
                0 6px 16px rgba(0, 0, 0, 0.3);
}

.magnifier-toggle.active {
    background: linear-gradient(135deg, #34d399, #22c55e);
}

.magnifier-toggle .magnifier-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(10, 26, 47, 0.95);
    color: #f1f5f9;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.light .magnifier-toggle .magnifier-tooltip {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.magnifier-toggle:hover .magnifier-tooltip {
    opacity: 1;
}

/* Magnifier Controls Panel */
.magnifier-controls {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 280px;
    background: rgba(10, 26, 47, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    z-index: 99998;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.magnifier-controls.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

body.light .magnifier-controls {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.magnifier-controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.magnifier-controls-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

body.light .magnifier-controls-header h4 {
    color: #0f172a;
}

.controls-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.controls-close:hover {
    color: #f1f5f9;
}

body.light .controls-close:hover {
    color: #0f172a;
}

.zoom-display {
    text-align: center;
    margin-bottom: 16px;
}

.zoom-display span {
    font-size: 32px;
    font-weight: 700;
    color: #F5C518;
}

.zoom-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
}

.zoom-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #f1f5f9;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: rgba(245, 197, 24, 0.2);
    border-color: #F5C518;
    transform: translateY(-2px);
}

body.light .zoom-btn {
    background: rgba(148, 163, 184, 0.1);
    color: #0f172a;
}

.zoom-slider {
    margin-bottom: 16px;
}

.zoom-slider input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(148, 163, 184, 0.2);
    outline: none;
    -webkit-appearance: none;
}

.zoom-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5C518, #D6A21D);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(245, 197, 24, 0.4);
}

.zoom-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5C518, #D6A21D);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(245, 197, 24, 0.4);
}

.magnifier-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(245, 197, 24, 0.1);
    border-radius: 10px;
    font-size: 13px;
    color: #cbd5e1;
}

.magnifier-tip i {
    color: #F5C518;
    font-size: 16px;
}

body.light .magnifier-tip {
    color: #475569;
}

/* Magnifier Intro Popup */
.magnifier-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.magnifier-intro.show {
    opacity: 1;
}

.magnifier-intro-content {
    position: relative;
    max-width: 500px;
    width: 100%;
    background: linear-gradient(135deg, #0A1A2F 0%, #11243D 100%);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light .magnifier-intro-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(148, 163, 184, 0.1);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.intro-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

.intro-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5C518, #D6A21D);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
    color: #0f172a;
}

.magnifier-intro-content h3 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 16px;
}

body.light .magnifier-intro-content h3 {
    color: #0f172a;
}

.magnifier-intro-content > p {
    text-align: center;
    color: #cbd5e1;
    margin-bottom: 24px;
    font-size: 16px;
}

body.light .magnifier-intro-content > p {
    color: #475569;
}

.intro-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.intro-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(245, 197, 24, 0.08);
    border-radius: 12px;
    border-left: 3px solid #F5C518;
}

.intro-feature i {
    color: #F5C518;
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.intro-feature span {
    color: #e2e8f0;
    line-height: 1.6;
    font-size: 15px;
}

body.light .intro-feature span {
    color: #334155;
}

.intro-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F5C518, #D6A21D);
    border: none;
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.intro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.4);
}

.intro-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    justify-content: center;
}

.intro-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Glassmorphism Zoom Popup */
.zoom-intro-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 99997;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.zoom-intro-popup.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.zoom-intro-popup::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.3), rgba(184, 134, 11, 0.3));
    border-radius: 16px;
    z-index: -1;
}

body.light .zoom-intro-popup {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(148, 163, 184, 0.3);
}

.zoom-intro-popup h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.light .zoom-intro-popup h4 {
    color: #0f172a;
}

.zoom-intro-popup h4 i {
    color: #F5C518;
    font-size: 20px;
}

.zoom-intro-popup p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

body.light .zoom-intro-popup p {
    color: #475569;
}

.zoom-intro-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 30px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
}

body.light .zoom-intro-popup::after {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(148, 163, 184, 0.3);
}
/* ===========================
   REVEAL ANIMATION CLASSES
=========================== */

/* Fade up - standard reveal */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grupper */
.stagger-group > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-group > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-group > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-group > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-group > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-group > *:nth-child(6) { transition-delay: 0.3s; }
/* ===========================
   14. MOBILE RESPONSIVE 
=========================== */

/* ===========================
   MOBILE OVERFLOW FIX - KRITISK
=========================== */
/* ===========================
   MOBILE OVERFLOW FIX - KRITISK
=========================== */
body,
html {
    overflow-x: hidden;
    max-width: 100vw;
}

.mission,
.services-grid,
.contact-wrapper,
.footer-inner,
.scam-warning,
.history,
.new-hero,
.page-hero,
.mission-flow,
.cta-section {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* VIKTIG: La carousel container ha overflow visible for myke skygger */
.team-section {
    overflow: visible;
}

.carousel-container {
    max-width: 100%;
    overflow: visible; /* Lar skygger vises fint */
}

/* Touch feedback for mobile - ALLE interactive elementer */
.service-card,
.mission-card,
.carousel-card,
.btn-primary,
.btn-secondary,
.scam-btn,
.cta-btn,
.send-btn,
.carousel-btn,
.theme-btn,
.magnifier-toggle {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Active touch states for devices without hover */
@media (hover: none) and (pointer: coarse) {
    .service-card:active,
    .mission-card:active {
        transform: scale(0.97) !important;
    }
    
    .btn-primary:active,
    .btn-secondary:active,
    .scam-btn:active {
        transform: translateY(-2px) scale(0.97) !important;
    }
    
    .carousel-btn:active {
        transform: translateY(-50%) scale(0.9) !important;
    }
}



/* ===========================
   MOBILE RESPONSIVE STYLES
=========================== */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    
    .mobile-btn {
        display: block;
    }
    
    .nav-inner {
        padding: 0 1.5rem;
    }
    
    #mobile-menu {
        background: rgba(10, 26, 47, 0.98);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    body.light #mobile-menu {
        background: rgba(255, 255, 255, 0.98);
        border-bottom-color: rgba(148, 163, 184, 0.2);
    }
    
    #mobile-menu a {
        font-size: 16px;
        padding: 1rem 2rem;
        animation: slideInMenu 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        opacity: 0;
    }
    
    #mobile-menu.open a:nth-child(1) { animation-delay: 0.05s; }
    #mobile-menu.open a:nth-child(2) { animation-delay: 0.1s; }
    #mobile-menu.open a:nth-child(3) { animation-delay: 0.15s; }
    #mobile-menu.open a:nth-child(4) { animation-delay: 0.2s; }
    #mobile-menu.open a:nth-child(5) { animation-delay: 0.25s; }
    
    @keyframes slideInMenu {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
/* ===========================
   TABLET (768px - 1024px)
=========================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-inner {
        padding: 0 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .scam-examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .new-hero {
        padding: 8rem 2rem 5rem;
    }
}

/* ===========================
   MOBILE LANDSCAPE (max-width: 900px)
=========================== */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    
    .mobile-btn {
        display: block;
    }

    .new-hero,
    .page-hero {
        padding: 5.5rem 1rem 2.5rem
    }

    .mission {
        grid-template-columns: 1fr;
    }
    
    /* 3D Carousel adjustments - MED MYKE SKYGGER */
    .carousel-container {
        min-height: 420px;
        padding: 2rem 0;
        overflow: visible; /* Viktig for skygger */
    }
    
    .carousel-3d {
        max-width: 100%;
        height: 400px;
        overflow: visible; /* Viktig for skygger */
    }
    
    .carousel-card {
        width: 220px;
        height: 320px;
        margin-left: -110px;
        margin-top: -160px;
    }
    
    /* Myke skygger som ikke kuttes */
    .carousel-card.center .card-inner {
        box-shadow: 0 30px 80px rgba(245, 197, 24, 0.25),
                    0 10px 30px rgba(0, 0, 0, 0.15);
    }
    
    .carousel-card.left,
    .carousel-card.right {
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    }
    
    .carousel-card.left {
        transform: translateX(-180px) translateZ(-40px) scale(0.75) rotateY(18deg);
        -webkit-transform: translateX(-180px) translateZ(-40px) scale(0.75) rotateY(18deg);
        opacity: 0.65;
    }
    
    .carousel-card.right {
        transform: translateX(180px) translateZ(-40px) scale(0.75) rotateY(-18deg);
        -webkit-transform: translateX(180px) translateZ(-40px) scale(0.75) rotateY(-18deg);
        opacity: 0.65;
    }
    
    .team-image-wrapper {
        height: 190px;
    }
    
    .carousel-card.center .team-image-wrapper {
        height: 210px;
    }
}

/* ===========================
   MOBILE PORTRAIT (max-width: 768px)
=========================== */
@media (max-width: 768px) {
    /* Navigation */
    .nav-inner {
        padding: 0 1rem;
        gap: 1rem;
    }

    .nav-logo img {
        max-height: 42px !important;
    }

    /* Hero sections */
    .new-hero h1 {
        font-size: 34px;
        line-height: 1.15;
    }

    .page-hero h1 {
        font-size: 34px;
    }

    .hero-subtitle,
    .page-hero p {
        font-size: 16px;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }

    .hero-icons {
        gap: 1.5rem;
        font-size: 13px;
    }

    /* Services Grid - MODERNE ANIMASJONER */
    .services-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }
    
    .service-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 1.75rem 1.5rem;
        margin: 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .service-card.in-view {
        opacity: 1;
        transform: translateY(0);
    }
    
    .service-card.in-view .service-icon {
        animation: iconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        animation-delay: 0.15s;
    }
    
    @keyframes iconPop {
        0% {
            transform: scale(0.6) rotate(-5deg);
            opacity: 0;
        }
        60% {
            transform: scale(1.08) rotate(2deg);
        }
        100% {
            transform: scale(1) rotate(0deg);
            opacity: 1;
        }
    }
    
    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        margin-bottom: 1.25rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Mission cards */
    .mission {
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    .mission-card {
        padding: 2rem 1.5rem;
    }

    /* Contact section */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    /* Footer - MODERNE DESIGN */
    .site-footer {
        margin-top: 4rem;
        padding: 2.5rem 1rem 1.5rem;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-col h3 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-partner {
        padding: 1.25rem 0;
        margin-top: 1.5rem;
        gap: 0.75rem;
    }
    
    .partner-label {
        font-size: 0.7rem;
        letter-spacing: 1.2px;
    }
    
    .partner-logo {
        height: 30px;
    }
    
    .partner-link {
        padding: 0.65rem 1.25rem;
        min-height: 48px;
        border-radius: 24px;
    }
    
    .footer-col .social-links a {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 18px;
    }
    
    /* Scam warning */
    .scam-examples-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .scam-warning {
        padding: 0 1rem;
    }
    
    .scam-warning-content {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }
    
    .scam-warning-header h2 {
        font-size: 1.5rem;
    }
    
    .scam-warning-header i {
        font-size: 48px;
    }
    
    .scam-example {
        padding: 1.5rem 1.25rem;
        border-radius: 14px;
    }
    
    .scam-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .scam-cta-content i {
        margin: 0 auto;
    }
    
    /* History section */
    .history {
        padding: 2rem 1rem;
    }
    
    .highlight-box {
        flex-direction: column;
        padding: 1.75rem 1.25rem;
        gap: 1rem;
        text-align: center;
        border-radius: 14px;
    }
    
    .highlight-box i {
        font-size: 32px;
        margin: 0 auto;
    }
    
    .closing-statement {
        font-size: 1.05rem !important;
        padding: 1.5rem 0;
    }
    
    /* 3D Carousel - OPTIMALISERT MED MYKE SKYGGER */
    .carousel-container {
        min-height: 400px;
        padding: 2rem 0;
        overflow: visible;
    }
    
    .carousel-3d {
        height: 370px;
        max-width: 100%;
        overflow: visible;
    }
    
    .carousel-card {
        width: 190px;
        height: 290px;
        margin-left: -95px;
        margin-top: -145px;
    }
    
    /* Myke skygger som flyter fint */
    .carousel-card.center .card-inner {
        box-shadow: 0 24px 60px rgba(245, 197, 24, 0.22),
                    0 8px 24px rgba(0, 0, 0, 0.12);
    }
    
    .carousel-card.left,
    .carousel-card.right {
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
    }
    
    .carousel-card.left {
        transform: translateX(-130px) translateZ(-35px) scale(0.72) rotateY(14deg);
        -webkit-transform: translateX(-130px) translateZ(-35px) scale(0.72) rotateY(14deg);
        opacity: 0.6;
    }
    
    .carousel-card.right {
        transform: translateX(130px) translateZ(-35px) scale(0.72) rotateY(-14deg);
        -webkit-transform: translateX(130px) translateZ(-35px) scale(0.72) rotateY(-14deg);
        opacity: 0.6;
    }
    
    .card-inner {
        padding: 1.25rem;
        border-radius: 20px;
    }
    
    .team-image-wrapper {
        height: 165px;
        margin-bottom: 0.75rem;
        border-radius: 14px;
    }
    
    .carousel-card.center .team-image-wrapper {
        height: 175px;
    }
    
    .team-info h3 {
        font-size: 1.05rem;
    }
    
    .team-info .role {
        font-size: 0.85rem;
    }
    
    .carousel-btn {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
    
    .team-image-placeholder i {
        font-size: 38px;
    }
    
    .carousel-dots {
        margin-top: 1.5rem;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    /* Magnifier */
    .magnifier-toggle {
        width: 54px;
        height: 54px;
        bottom: 20px;
        right: 20px;
        font-size: 22px;
    }
    
    .magnifier-controls {
        right: 20px;
        bottom: 85px;
        width: calc(100% - 40px);
        max-width: 300px;
    }
    
    .magnifier-intro-content {
        padding: 28px 20px;
    }
    
    .zoom-intro-popup {
        right: 20px;
        bottom: 82px;
        max-width: 230px;
        padding: 1.15rem;
    }
}
/* Page hero - ingen reveal dead space på mobil */
.page-hero {
    transform: none !important;
    opacity: 1 !important;
}

/* ===========================
   SMALL MOBILE (max-width: 480px)
=========================== */
@media (max-width: 480px) {
    /* Hero */
    .new-hero,
    .page-hero {
        padding: 6.5rem 0.85rem 2.5rem;
    }

    .new-hero h1 {
        font-size: 30px;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    .hero-subtitle,
    .page-hero p {
        font-size: 15px;
    }

    .hero-badge {
        font-size: 13px;
        padding: 8px 16px;
    }

    /* Cards */
    .mission-card,
    .service-card {
        padding: 1.75rem 1.25rem;
    }

    .contact-form {
        padding: 1.75rem 1.25rem;
    }

    .info-card {
        padding: 1.5rem 1.25rem;
    }
    
    /* Footer */
    .footer-inner {
        gap: 2rem;
    }
    
    .partner-logo {
        height: 28px;
    }
    
    .partner-link {
        padding: 0.5rem 1rem;
    }
    
    /* Carousel - MED MYKE SKYGGER */
    .carousel-container {
        padding: 1.5rem 0;
        min-height: 360px;
        overflow: visible;
    }
    
    .carousel-3d {
        height: 340px;
        overflow: visible;
    }
    
    .carousel-card {
        width: 172px;
        height: 272px;
        margin-left: -86px;
        margin-top: -136px;
    }
    
    /* Myke, dype skygger */
    .carousel-card.center .card-inner {
        box-shadow: 0 20px 50px rgba(245, 197, 24, 0.2),
                    0 6px 18px rgba(0, 0, 0, 0.1);
    }
    
    .carousel-card.left,
    .carousel-card.right {
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
    }
    
    .carousel-card.left {
        transform: translateX(-75px) translateZ(-22px) scale(0.64) rotateY(10deg);
        -webkit-transform: translateX(-75px) translateZ(-22px) scale(0.64) rotateY(10deg);
        opacity: 0.5;
    }
    
    .carousel-card.right {
        transform: translateX(75px) translateZ(-22px) scale(0.64) rotateY(-10deg);
        -webkit-transform: translateX(75px) translateZ(-22px) scale(0.64) rotateY(-10deg);
        opacity: 0.5;
    }
    
    /* Skjul far cards på små skjermer */
    .carousel-card.far-left,
    .carousel-card.far-right {
        display: none;
    }
    
    .card-inner {
        padding: 1.1rem;
        border-radius: 18px;
    }
    
    .team-image-wrapper {
        height: 152px;
        border-radius: 12px;
    }
    
    .carousel-card.center .team-image-wrapper {
        height: 162px;
    }
    
    .team-info h3 {
        font-size: 0.98rem;
    }
    
    .team-info .role {
        font-size: 0.82rem;
    }
    
    .carousel-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 6px;
    }
    
    .carousel-next {
        right: 6px;
    }
    
    .team-image-placeholder i {
        font-size: 34px;
    }
    
    /* Services */
    .services-grid {
        padding: 2rem 0.85rem;
    }
    
    .service-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
    
    .service-card h3 {
        font-size: 1.15rem;
    }
    
    /* Scam warning */
    .scam-warning-header i {
        font-size: 42px;
    }
    
    .scam-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
    
    /* Magnifier */
    .magnifier-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 16px;
        right: 16px;
    }
    
    .magnifier-controls {
        width: calc(100% - 32px);
        right: 16px;
        bottom: 75px;
    }
}

/* ===========================
   EXTRA SMALL MOBILE (max-width: 360px)
=========================== */
@media (max-width: 360px) {
    .new-hero h1 {
        font-size: 28px;
    }
    
    .page-hero h1 {
        font-size: 28px;
    }
    
    .hero-subtitle,
    .page-hero p {
        font-size: 14px;
    }
    
    /* Carousel - MINIMAL MED MYKE SKYGGER */
    .carousel-container {
        min-height: 330px;
        padding: 1.25rem 0;
    }
    
    .carousel-3d {
        height: 310px;
    }
    
    .carousel-card {
        width: 158px;
        height: 252px;
        margin-left: -79px;
        margin-top: -126px;
    }
    
    .carousel-card.center .card-inner {
        box-shadow: 0 16px 40px rgba(245, 197, 24, 0.18),
                    0 4px 14px rgba(0, 0, 0, 0.08);
    }
    
    .carousel-card.left {
        transform: translateX(-65px) translateZ(-20px) scale(0.6) rotateY(8deg);
        -webkit-transform: translateX(-65px) translateZ(-20px) scale(0.6) rotateY(8deg);
        opacity: 0.45;
    }
    
    .carousel-card.right {
        transform: translateX(65px) translateZ(-20px) scale(0.6) rotateY(-8deg);
        -webkit-transform: translateX(65px) translateZ(-20px) scale(0.6) rotateY(-8deg);
        opacity: 0.45;
    }
    
    .team-image-wrapper {
        height: 142px;
    }
    
    .carousel-card.center .team-image-wrapper {
        height: 152px;
    }
    
    .team-info h3 {
        font-size: 0.92rem;
    }
    
    .team-info .role {
        font-size: 0.78rem;
    }
    
    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .service-card,
    .mission-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* ===========================
   LARGE SCREENS (1400px+)
=========================== */
@media (min-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1600px;
    }
    
    .mission {
        max-width: 1400px;
    }
    
    .scam-warning {
        max-width: 1400px;
    }
}

/* ===========================
   ULTRA-WIDE (1920px+)
=========================== */
@media (min-width: 1920px) {
    .nav-inner,
    .services-grid,
    .mission,
    .scam-warning,
    .page-hero,
    .new-hero {
        max-width: 1800px;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .service-card {
        padding: 3rem;
    }
}

/* ===========================
   ACCESSIBILITY & POLISH
=========================== */

/* Improved focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #F5C518;
    outline-offset: 2px;
}

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

/* Selection styling */
::selection {
    background: rgba(245, 197, 24, 0.25);
    color: #f1f5f9;
}

body.light ::selection {
    background: rgba(245, 197, 24, 0.25);
    color: #0f172a;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card,
    .mission-card,
    .scam-example {
        border-width: 2px;
    }
    
    .btn-primary,
    .scam-btn {
        border: 2px solid currentColor;
    }
}

/* Menu overlay for mobile */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-note {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

/* ===========================
   IPHONE SAFE AREA
=========================== */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
    }
    
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .magnifier-toggle {
        bottom: max(24px, calc(24px + env(safe-area-inset-bottom)));
        right: max(24px, env(safe-area-inset-right));
    }
}


/* ===========================
   CRITICAL MOBILE OVERFLOW FIX
   Prevents horizontal scroll on all pages
=========================== */
@media (max-width: 768px) {
    /* Ensure ALL cards don't overflow */
    .service-card,
    .mission-card,
    .scam-example,
    .info-card,
    .contact-form,
    .card-inner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Force all major sections to respect viewport width */
    .services-grid,
    .mission,
    .contact-wrapper,
    .scam-warning,
    .scam-warning-content,
    .scam-examples-grid,
    .history,
    .history-content,
    .mission-flow,
    .flow-item,
    .cta-section,
    .page-hero,
    .new-hero,
    .site-footer,
    .footer-inner,
    .highlight-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Proper padding without !important conflicts */
    .services-grid,
    .mission,
    .scam-warning {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .scam-warning-content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .history,
    .mission-flow {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Fix page-hero overflow */
    .page-hero,
    .new-hero {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Prevent flow items from overflowing */
    .flow-item {
        padding-left: 0;
        padding-right: 0;
    }
    
    .flow-text {
        max-width: 100%;
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {
    /* Tighter padding on very small screens */
    .page-hero,
    .new-hero,
    .services-grid,
    .mission,
    .scam-warning,
    .history,
    .mission-flow {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}

/* ===========================
   VIPPS DONATION BUTTON & MODAL - OPTIMALISERT!
=========================== */

/* Vipps Donate Button - Safari/iOS Optimalisert */
.vipps-donate-btn {
    position: relative;
    display: inline-flex;
    display: -webkit-inline-flex;
    align-items: center;
    -webkit-align-items: center;
    gap: 10px;
    padding: 14px 28px;
    margin-top: 12px;
    background: linear-gradient(135deg, #FF5B24, #FF6B3D);
    background: -webkit-linear-gradient(135deg, #FF5B24, #FF6B3D);
    border: none;
    border-radius: 14px;
    -webkit-border-radius: 14px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(255, 91, 36, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 
        0 4px 16px rgba(255, 91, 36, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.1);
    /* Force hardware acceleration på iOS */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.vipps-donate-btn:hover {
    transform: translateY(-3px) scale(1.02);
    -webkit-transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(255, 91, 36, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 
        0 8px 24px rgba(255, 91, 36, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.vipps-donate-btn:active {
    transform: translateY(-1px) scale(0.98);
    -webkit-transform: translateY(-1px) scale(0.98);
}

.vipps-donate-btn i {
    font-size: 18px;
    -webkit-animation: heartBeat 1.5s ease infinite;
    animation: heartBeat 1.5s ease infinite;
    /* Force hardware acceleration for Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Webkit keyframes for Safari/iOS */
@-webkit-keyframes heartBeat {
    0%, 100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    10%, 30% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }
    20%, 40% {
        -webkit-transform: scale(0.95);
        transform: scale(0.95);
    }
}

@keyframes heartBeat {
    0%, 100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    10%, 30% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }
    20%, 40% {
        -webkit-transform: scale(0.95);
        transform: scale(0.95);
    }
}

/* Shining animation overlay - Safari/iOS Optimalisert */
.vipps-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    background: -webkit-linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    -webkit-transform: skewX(-25deg) translateZ(0);
    transform: skewX(-25deg) translateZ(0);
    -webkit-animation: shine 3s ease-in-out infinite;
    animation: shine 3s ease-in-out infinite;
    will-change: left;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Webkit keyframes for shine */
@-webkit-keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 150%;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 150%;
    }
}

/* Vipps Modal - FIKSET Z-INDEX OG POSISJON! */
.vipps-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999 !important; /* KRITISK: Over alt annet! */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vipps-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.vipps-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

.vipps-modal-content {
    position: relative;
    z-index: 2;
    max-width: 380px;
    width: calc(100% - 32px);
    background: linear-gradient(135deg, #0A1A2F 0%, #11243D 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 91, 36, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    margin: auto;
}

body.light .vipps-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 91, 36, 0.2);
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close button */
.vipps-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.vipps-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
    transform: rotate(90deg);
}

body.light .vipps-modal-close {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(148, 163, 184, 0.3);
    color: #475569;
}

body.light .vipps-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Modal Header */
.vipps-modal-header {
    text-align: center;
    padding: 32px 20px 20px;
    position: relative;
}

.vipps-icon-large {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    background: linear-gradient(135deg, #FF5B24, #FF6B3D);
    background: -webkit-linear-gradient(135deg, #FF5B24, #FF6B3D);
    display: flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 
        0 8px 32px rgba(255, 91, 36, 0.4),
        0 0 0 8px rgba(255, 91, 36, 0.1);
    -webkit-box-shadow: 
        0 8px 32px rgba(255, 91, 36, 0.4),
        0 0 0 8px rgba(255, 91, 36, 0.1);
    animation: iconPulse 2s ease infinite;
    -webkit-animation: iconPulse 2s ease infinite;
    /* Force hardware acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Webkit keyframes for iconPulse */
@-webkit-keyframes iconPulse {
    0%, 100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-box-shadow: 
            0 8px 32px rgba(255, 91, 36, 0.4),
            0 0 0 8px rgba(255, 91, 36, 0.1);
        box-shadow: 
            0 8px 32px rgba(255, 91, 36, 0.4),
            0 0 0 8px rgba(255, 91, 36, 0.1);
    }
    50% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
        -webkit-box-shadow: 
            0 12px 40px rgba(255, 91, 36, 0.5),
            0 0 0 12px rgba(255, 91, 36, 0.15);
        box-shadow: 
            0 12px 40px rgba(255, 91, 36, 0.5),
            0 0 0 12px rgba(255, 91, 36, 0.15);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 8px 32px rgba(255, 91, 36, 0.4),
            0 0 0 8px rgba(255, 91, 36, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 12px 40px rgba(255, 91, 36, 0.5),
            0 0 0 12px rgba(255, 91, 36, 0.15);
    }
}

.vipps-icon-large i {
    font-size: 32px;
    color: white;
}

.vipps-modal-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 8px 0;
}

body.light .vipps-modal-header h3 {
    color: #0f172a;
}

.vipps-modal-header p {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

body.light .vipps-modal-header p {
    color: #475569;
}

/* QR Section */
.vipps-qr-section {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.vipps-qr-wrapper {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glowing border effect - Safari/iOS Optimalisert */
.vipps-qr-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    background: linear-gradient(
        45deg,
        #FF5B24,
        #FF6B3D,
        #F5C518,
        #FF6B3D,
        #FF5B24
    );
    background: -webkit-linear-gradient(
        45deg,
        #FF5B24,
        #FF6B3D,
        #F5C518,
        #FF6B3D,
        #FF5B24
    );
    background-size: 400% 400%;
    animation: gradientFlow 3s ease infinite;
    -webkit-animation: gradientFlow 3s ease infinite;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    opacity: 0.6;
    /* Force hardware acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: background-position;
}

/* Webkit keyframes for gradientFlow */
@-webkit-keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.vipps-qr-code {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    background: white;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: qrFadeIn 0.6s ease 0.2s backwards;
}

@keyframes qrFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.vipps-number {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 91, 36, 0.12);
    border: 2px solid rgba(255, 91, 36, 0.3);
    border-radius: 12px;
    font-size: 16px;
    color: #e2e8f0;
    animation: numberSlideIn 0.5s ease 0.3s backwards;
}

body.light .vipps-number {
    background: rgba(255, 91, 36, 0.08);
    color: #1e293b;
}

@keyframes numberSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.vipps-number i {
    font-size: 20px;
    color: #FF5B24;
}

.vipps-number strong {
    color: #FF5B24;
    font-size: 20px;
    font-weight: 800;
}

/* Modal Footer */
.vipps-modal-footer {
    padding: 16px 20px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light .vipps-modal-footer {
    border-top-color: rgba(148, 163, 184, 0.2);
}

.vipps-thanks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    color: #F5C518;
    font-weight: 600;
    margin: 0;
}

.vipps-thanks i {
    font-size: 18px;
    animation: sparkle 1.5s ease infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .vipps-modal-content {
        max-width: calc(100% - 32px);
        border-radius: 20px;
    }
    
    .vipps-modal-header {
        padding: 32px 20px 20px;
    }
    
    .vipps-modal-header h3 {
        font-size: 22px;
    }
    
    .vipps-modal-header p {
        font-size: 14px;
    }
    
    .vipps-icon-large {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
    }
    
    .vipps-icon-large i {
        font-size: 32px;
    }
    
    .vipps-qr-section {
        padding: 0 20px 20px;
        gap: 16px;
    }
    
    .vipps-qr-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .vipps-number {
        font-size: 15px;
        padding: 12px 20px;
    }
    
    .vipps-number strong {
        font-size: 18px;
    }
    
    .vipps-modal-footer {
        padding: 16px 20px 20px;
    }
    
    .vipps-donate-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .vipps-qr-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .vipps-number {
        font-size: 15px;
        padding: 12px 20px;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .vipps-donate-btn i,
    .vipps-shine,
    .vipps-icon-large,
    .vipps-qr-glow,
    .vipps-thanks i {
        animation: none !important;
        -webkit-animation: none !important;
    }
    
    .vipps-modal-content {
        animation: none !important;
        -webkit-animation: none !important;
    }
}

/* ===========================
   SAFARI iOS SPECIFIC FIXES
=========================== */

/* Force hardware acceleration for alle animerte elementer */
.vipps-donate-btn i,
.vipps-shine,
.vipps-icon-large,
.vipps-qr-glow,
.vipps-thanks i {
    -webkit-perspective: 1000;
    perspective: 1000;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Safari-spesifikk optimalisering for smooth animasjoner */
@supports (-webkit-overflow-scrolling: touch) {
    .vipps-donate-btn {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    .vipps-donate-btn i {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    .vipps-shine {
        -webkit-transform: translate3d(0, 0, 0) skewX(-25deg);
        transform: translate3d(0, 0, 0) skewX(-25deg);
    }
}

/* iOS Safari specifikt - tvinger animasjoner til å kjøre */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .vipps-donate-btn i {
        -webkit-animation-name: heartBeat;
        -webkit-animation-duration: 1.5s;
        -webkit-animation-timing-function: ease;
        -webkit-animation-iteration-count: infinite;
    }
    
    .vipps-shine {
        -webkit-animation-name: shine;
        -webkit-animation-duration: 3s;
        -webkit-animation-timing-function: ease-in-out;
        -webkit-animation-iteration-count: infinite;
    }
    
    .vipps-icon-large {
        -webkit-animation-name: iconPulse;
        -webkit-animation-duration: 2s;
        -webkit-animation-timing-function: ease;
        -webkit-animation-iteration-count: infinite;
    }
    
    .vipps-qr-glow {
        -webkit-animation-name: gradientFlow;
        -webkit-animation-duration: 3s;
        -webkit-animation-timing-function: ease;
        -webkit-animation-iteration-count: infinite;
    }
}