/* ============================================
   Jan Jyoti Bachat Tatha Rin Sahakari Sanstha Ltd.
   Design System & Global Styles
   ============================================ */

/* ---- CSS Custom Properties (Design Tokens) ---- */
:root {
    /* Primary Colors */
    --primary: #1B7A3D;
    --primary-dark: #0D4A2B;
    --primary-light: #2E9B54;
    --primary-container: #9bf7ac;
    --on-primary: #e9ffe7;

    /* Accent/Gold Colors */
    --gold: #F5A623;
    --gold-dark: #D4901A;
    --gold-light: #FFD88A;

    /* Neutral Colors */
    --surface: #F7FAF7;
    --surface-dim: #d3dcd8;
    --surface-container: #e9efeb;
    --surface-container-high: #e3eae6;
    --white: #FFFFFF;
    --dark: #0B0F0E;
    --on-surface: #2c3431;
    --on-surface-variant: #58615e;
    --outline: #747d79;
    --outline-variant: #abb4b0;

    /* Typography */
    --font-headline: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-label: 'DM Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --spacing-4xl: 80px;
    --spacing-section: 80px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.12);
    --shadow-glow-green: 0 0 40px rgba(27, 122, 61, 0.2);
    --shadow-glow-gold: 0 0 40px rgba(245, 166, 35, 0.2);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Safety net: force animated elements visible after 2s if animations fail */
@keyframes forceVisible {
    to { opacity: 1 !important; transform: none !important; }
}

[data-aos],
.service-card,
.stat-item,
.why-us-card,
.testimonial-card,
.leader-message-card,
.gallery-item,
.contact-info-card,
.apply-wrapper,
.apply-form-wrapper,
.apply-info,
.apply-benefit,
.section-tag,
.section-header,
.about-content,
.about-values,
.hero-float-card,
.footer-col {
    animation: forceVisible 0.01s 2.5s forwards;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--on-surface);
    background-color: var(--surface);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
    justify-content: center;
}

.preloader-svg-logo {
    animation: preloaderPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(27, 122, 61, 0.6));
}

.preloader-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.preloader-text {
    font-family: var(--font-headline);
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    line-height: 1;
}

.preloader-tagline {
    font-family: var(--font-label);
    font-size: 13px;
    color: var(--gold-light);
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto;
}

.preloader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: var(--radius-full);
    animation: preloaderFill 2s ease forwards;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes preloaderFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ============================================
   PARTICLES BACKGROUND
   ============================================ */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat linear infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(27, 122, 61, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.nav-logo-svg {
    transition: var(--transition-bounce);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    flex-shrink: 0;
}

.nav-brand:hover .nav-logo-svg {
    transform: rotate(-8deg) scale(1.08);
    filter: drop-shadow(0 4px 16px rgba(27, 122, 61, 0.5));
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
}

.nav-brand-name {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 20px;
    color: var(--white);
    line-height: 1.1;
    transition: var(--transition-base);
    letter-spacing: 0.2px;
}

.navbar.scrolled .nav-brand-name {
    color: var(--primary-dark);
}

.nav-brand-sub {
    font-family: var(--font-label);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.3px;
    transition: var(--transition-base);
}

.navbar.scrolled .nav-brand-sub {
    color: var(--gold-dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-label);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--on-surface);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary);
    background: rgba(27, 122, 61, 0.08);
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 166, 35, 0.4) !important;
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition-base);
}

.navbar.scrolled .hamburger-line {
    background: var(--primary-dark);
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a2e1a 0%, #0D4A2B 30%, #1B7A3D 70%, #2E9B54 100%);
    overflow: hidden;
    padding: var(--spacing-4xl) 0;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(245, 166, 35, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(155, 247, 172, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

/* Animated floating shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: shapeFloat 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gold), transparent);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-light), transparent);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--gold-light), transparent);
    top: 40%;
    right: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #9bf7ac, transparent);
    top: 20%;
    left: 10%;
    animation-delay: -7s;
}

.shape-5 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--primary-container), transparent);
    bottom: 20%;
    right: 10%;
    animation-delay: -3s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 15px) scale(1.02); }
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-content {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: var(--gold-light);
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.5px;
}

.hero-badge i {
    color: var(--gold);
}

.hero-title {
    font-family: var(--font-headline);
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.hero-title-nepali {
    display: block;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.9;
}

.hero-title-highlight {
    display: block;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 4s ease-in-out infinite;
    background-size: 200% auto;
    margin-bottom: 12px;
}

.hero-tagline-line {
    display: block;
    font-family: var(--font-label);
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 500;
    font-style: italic;
    color: var(--gold-light);
    opacity: 0.85;
    letter-spacing: 0.5px;
    padding-left: 2px;
    animation: fadeInUp 0.8s ease 1s both;
}

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

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

.hero-subtitle {
    font-size: clamp(15px, 1.5vw, 18px);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
    max-width: 540px;
}

.hero-cta-group {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

.hero-trust-badges {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 500;
}

.trust-badge i {
    color: var(--gold);
    font-size: 14px;
}

/* Hero Visual / Floating Cards */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    color: var(--white);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: floatCard 6s ease-in-out infinite;
    transition: var(--transition-smooth);
    min-width: 280px;
}

.hero-float-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 120px;
    right: 0;
    animation-delay: -2s;
}

.card-3 {
    top: 240px;
    left: 30px;
    animation-delay: -4s;
}

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

.float-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: var(--radius-lg);
    font-size: 20px;
    flex-shrink: 0;
}

.float-card-info {
    display: flex;
    flex-direction: column;
}

.float-card-label {
    font-family: var(--font-label);
    font-size: 12px;
    opacity: 0.7;
    font-weight: 500;
}

.float-card-value {
    font-family: var(--font-headline);
    font-size: 22px;
    font-weight: 700;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-label);
    font-size: 12px;
    animation: scrollBounce 2s ease-in-out infinite;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseScroll 1.8s ease-in-out infinite;
}

@keyframes mouseScroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-headline);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(27, 122, 61, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(27, 122, 61, 0.4);
}

.btn-outline-gold {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gold);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.15);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.35);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 20px rgba(27, 122, 61, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(27, 122, 61, 0.45);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--spacing-3xl);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(27, 122, 61, 0.08);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-tag-light {
    color: var(--gold-light);
    background: rgba(255, 255, 255, 0.12);
}

.section-title {
    font-family: var(--font-headline);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--on-surface-variant);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: var(--spacing-section) 0;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.service-card {
    position: relative;
    padding: 36px 28px;
    background: var(--white);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(27, 122, 61, 0.06);
    transition: all var(--transition-smooth);
    overflow: hidden;
    cursor: pointer;
}

.service-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(27, 122, 61, 0.06), transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow-green);
    border-color: rgba(27, 122, 61, 0.12);
}

.service-icon-wrapper {
    margin-bottom: var(--spacing-lg);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(27, 122, 61, 0.08), rgba(27, 122, 61, 0.04));
    border-radius: var(--radius-xl);
    font-size: 28px;
    color: var(--primary);
    transition: all var(--transition-smooth);
}

.service-icon-gold {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.12), rgba(245, 166, 35, 0.04));
    color: var(--gold-dark);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(27, 122, 61, 0.3);
}

.service-card:hover .service-icon-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.3);
}

.service-title {
    font-family: var(--font-headline);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.service-desc {
    font-size: 14px;
    color: var(--on-surface-variant);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.service-features {
    margin-bottom: var(--spacing-lg);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-label);
    font-size: 13px;
    color: var(--on-surface);
    padding: 4px 0;
}

.service-features li i {
    color: var(--primary);
    font-size: 12px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-label);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition-base);
}

.service-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* ============================================
   STATISTICS SECTION
   ============================================ */
.stats {
    position: relative;
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #072218 50%, var(--primary-dark) 100%);
    overflow: hidden;
}

.stats-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Crect width='2' height='2' x='19' y='19'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-xl);
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    transition: all var(--transition-smooth);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: var(--spacing-md);
}

.stat-number {
    font-family: var(--font-headline);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    color: var(--white);
    display: inline;
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-headline);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    color: var(--gold);
    display: inline;
}

.stat-label {
    font-family: var(--font-label);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--spacing-sm);
    font-weight: 500;
}

/* ============================================
   ABOUT / MISSION SECTION
   ============================================ */
.about-mission {
    padding: var(--spacing-section) 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.about-content .section-tag {
    display: inline-block;
}

.about-content .section-title {
    text-align: left;
}

.about-text {
    font-size: 15px;
    color: var(--on-surface-variant);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-text strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.about-text:last-child {
    margin-bottom: 0;
}

.about-values {
    background: var(--surface);
    border-radius: var(--radius-2xl);
    padding: 36px;
    border: 1px solid rgba(27, 122, 61, 0.06);
}

.about-values-heading {
    font-family: var(--font-headline);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(27, 122, 61, 0.1);
}

.about-values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.about-value-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.about-value-item .why-us-icon {
    width: 48px;
    height: 48px;
    font-size: 18px;
    margin-bottom: 0;
}

.about-value-item h4 {
    font-family: var(--font-headline);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
}

.about-value-item p {
    font-size: 13px;
    color: var(--on-surface-variant);
    line-height: 1.6;
}

/* ============================================
   LEADERSHIP MESSAGES
   ============================================ */
.leadership {
    padding: var(--spacing-section) 0;
    background: linear-gradient(180deg, var(--white) 0%, #f4faf6 50%, var(--white) 100%);
    position: relative;
}

.leader-message-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-2xl);
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: 0 8px 40px rgba(27, 122, 61, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(27, 122, 61, 0.06);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.leader-message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--gold) 100%);
    border-radius: 4px 0 0 4px;
}

.leader-message-card:hover {
    box-shadow: 0 12px 48px rgba(27, 122, 61, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Chairman Unique Card Styles */
.chairman-card {
    background: linear-gradient(135deg, rgba(225, 178, 93, 0.05) 0%, var(--white) 100%);
    border: 1px solid rgba(225, 178, 93, 0.3);
}

.chairman-card::before {
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-light) 100%);
    width: 6px;
}

.chairman-card .leader-quote-icon {
    color: var(--gold-dark);
    background: rgba(225, 178, 93, 0.15);
}

.chairman-card .leader-photo-border {
    border-color: var(--gold);
}

.leader-card-reverse {
    direction: rtl;
}

.leader-card-reverse > * {
    direction: ltr;
}

.leader-card-reverse::before {
    left: auto;
    right: 0;
    border-radius: 0 4px 4px 0;
}

.leader-photo-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
}

.leader-photo-wrapper {
    position: relative;
    width: 200px;
    height: 220px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.leader-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-xl);
    transition: transform 0.6s ease;
}

.leader-message-card:hover .leader-photo {
    transform: scale(1.05);
}

.leader-photo-border {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    border: 3px solid rgba(27, 122, 61, 0.15);
    pointer-events: none;
}

.leader-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.leader-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.leader-title {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.1) 0%, rgba(27, 122, 61, 0.08) 100%);
    padding: 4px 14px;
    border-radius: var(--radius-full);
}

.leader-message-side {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.leader-quote-icon {
    font-size: 28px;
    color: rgba(27, 122, 61, 0.12);
    line-height: 1;
}

.leader-message-heading {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--on-surface);
    margin: 0 0 var(--spacing-xs);
}

.leader-message-text p {
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--on-surface-variant);
    margin: 0 0 var(--spacing-xs);
}

.leader-message-text p:last-child {
    margin-bottom: 0;
}

.leader-signature {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--outline-variant);
    margin-top: var(--spacing-xs);
}

.signature-regards {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--on-surface-variant);
    font-style: italic;
}

.signature-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
}

.signature-title {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--on-surface-variant);
}

/* ============================================
   AGM GALLERY
   ============================================ */
.agm-gallery {
    padding: var(--spacing-section) 0;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item-wide {
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.75);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: linear-gradient(180deg, transparent 30%, rgba(13, 74, 43, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: var(--spacing-md);
}

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

.gallery-overlay i {
    font-size: 28px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    transform: translateY(10px);
    transition: transform 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-us {
    padding: var(--spacing-section) 0;
    background: var(--white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.why-us-card {
    padding: 36px 28px;
    border-radius: var(--radius-2xl);
    background: var(--surface);
    border: 1px solid transparent;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.why-us-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary), var(--gold));
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: height var(--transition-smooth);
}

.why-us-card:hover::before {
    height: 100%;
}

.why-us-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(27, 122, 61, 0.08);
}

.why-us-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: 22px;
    margin-bottom: var(--spacing-lg);
    transition: var(--transition-bounce);
}

.why-us-card:hover .why-us-icon {
    transform: rotate(-10deg) scale(1.1);
}

.why-us-card h3 {
    font-family: var(--font-headline);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.why-us-card p {
    font-size: 14px;
    color: var(--on-surface-variant);
    line-height: 1.6;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: var(--spacing-section) 0;
    background: var(--surface);
    overflow: hidden;
}

.testimonial-carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: var(--spacing-lg);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-card {
    flex: 0 0 calc(33.333% - var(--spacing-lg) * 2 / 3);
    padding: 36px 28px;
    background: var(--white);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(27, 122, 61, 0.06);
    transition: all var(--transition-smooth);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 28px;
    font-family: serif;
    font-size: 80px;
    line-height: 1;
    color: rgba(27, 122, 61, 0.06);
    font-weight: bold;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--spacing-md);
    color: var(--gold);
    font-size: 14px;
}

.testimonial-quote {
    font-size: 15px;
    line-height: 1.7;
    color: var(--on-surface);
    margin-bottom: var(--spacing-lg);
    min-height: 120px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--surface-container);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-container), var(--surface));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    flex-shrink: 0;
}

.testimonial-name {
    display: block;
    font-family: var(--font-headline);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
}

.testimonial-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-label);
    font-size: 12px;
    color: var(--on-surface-variant);
}

.testimonial-location i {
    color: var(--gold);
    font-size: 10px;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--outline-variant);
    background: var(--white);
    color: var(--on-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 14px;
}

.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--outline-variant);
    cursor: pointer;
    transition: var(--transition-base);
}

.carousel-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: var(--radius-full);
}

/* ============================================
   LOAN APPLICATION SECTION
   ============================================ */
.apply-section {
    position: relative;
    padding: var(--spacing-section) 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a2e1a 100%);
    overflow: hidden;
}

.apply-bg-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.apply-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.apply-shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold), transparent);
    top: -200px;
    right: -200px;
    animation: shapeFloat 25s ease-in-out infinite;
}

.apply-shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-container), transparent);
    bottom: -150px;
    left: -150px;
    animation: shapeFloat 20s ease-in-out infinite reverse;
}

.apply-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.apply-title {
    font-family: var(--font-headline);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.apply-title span {
    color: var(--gold);
}

.apply-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

.apply-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.apply-benefit {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-base);
}

.apply-benefit:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

.benefit-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: 18px;
    flex-shrink: 0;
}

.apply-benefit strong {
    display: block;
    font-family: var(--font-headline);
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
}

.apply-benefit span {
    font-family: var(--font-label);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Form Styles */
.apply-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.form-heading {
    font-family: var(--font-headline);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 6px;
}

.form-group label i {
    color: var(--primary);
    font-size: 12px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--surface-container);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--on-surface);
    background: var(--surface);
    transition: var(--transition-base);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 122, 61, 0.1);
    background: var(--white);
}

.form-group input::placeholder {
    color: var(--outline);
}

.form-disclaimer {
    text-align: center;
    font-family: var(--font-label);
    font-size: 12px;
    color: var(--on-surface-variant);
    margin-top: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.form-disclaimer i {
    color: var(--primary);
}

.form-error-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #FFF3F0;
    border: 1px solid #FFDDD5;
    border-radius: var(--radius-lg);
    color: #a73b21;
    font-family: var(--font-label);
    font-size: 14px;
    margin-bottom: var(--spacing-md);
}

.form-success {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.success-icon {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
    animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.form-success h3 {
    font-family: var(--font-headline);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.form-success p {
    font-size: 15px;
    color: var(--on-surface-variant);
    line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: var(--spacing-section) 0;
    background: var(--white);
}

.contact-grid {
    max-width: 900px;
    margin: 0 auto;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.contact-info-card {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--surface);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(27, 122, 61, 0.08);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: 22px;
    margin: 0 auto var(--spacing-md);
}

.contact-info-card h4 {
    font-family: var(--font-headline);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.contact-info-card p {
    font-family: var(--font-label);
    font-size: 13px;
    color: var(--on-surface-variant);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
}

.footer-wave {
    position: relative;
    margin-bottom: -2px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

.footer-main {
    background: var(--primary-dark);
    padding: var(--spacing-3xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: var(--spacing-md);
}

.footer-logo-svg {
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(27, 122, 61, 0.4));
    transition: var(--transition-bounce);
}

.footer-logo-svg:hover {
    transform: rotate(-8deg) scale(1.05);
}

.footer-brand-name {
    font-family: var(--font-headline);
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.2px;
}

.footer-brand-sub {
    font-family: var(--font-label);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.footer-tagline {
    font-family: var(--font-label);
    font-size: 11px;
    color: var(--gold-light);
    font-style: italic;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.3px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-link:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.footer-heading {
    font-family: var(--font-headline);
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
    border-radius: var(--radius-full);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-family: var(--font-label);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '›';
    color: var(--gold);
    font-weight: bold;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(6px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-contact-item i {
    color: var(--gold);
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-item span {
    font-family: var(--font-label);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.footer-bottom {
    background: #071e14;
    padding: var(--spacing-md) 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom p {
    font-family: var(--font-label);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-badges {
    display: flex;
    gap: var(--spacing-md);
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-label);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
}

.footer-badge i {
    color: var(--gold);
    font-size: 11px;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(27, 122, 61, 0.3);
    font-size: 18px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(27, 122, 61, 0.4);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* ---- Tablet (max-width: 1024px) ---- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        margin: 0 auto var(--spacing-xl);
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-trust-badges {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-tagline-line {
        text-align: center;
    }

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

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

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

    .about-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-content .section-tag {
        display: block;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

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

    .apply-info {
        text-align: center;
    }

    .apply-benefit {
        justify-content: center;
    }

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

    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card {
        flex: 0 0 calc(50% - var(--spacing-lg) / 2);
    }
}

/* ---- Mobile Landscape / Small Tablets (max-width: 768px) ---- */
@media (max-width: 768px) {
    :root {
        --spacing-section: 60px;
        --spacing-3xl: 40px;
        --spacing-4xl: 56px;
    }

    /* --- Preloader mobile --- */
    .preloader-logo {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .preloader-brand {
        align-items: center;
    }

    .preloader-text {
        font-size: 28px;
    }

    .preloader-tagline {
        font-size: 12px;
    }

    /* --- Navigation Drawer --- */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 24px 30px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transition: right var(--transition-smooth);
        gap: 4px;
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Dark overlay behind menu */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.4);
        z-index: -1;
    }

    .nav-link {
        color: var(--on-surface) !important;
        padding: 14px 16px;
        width: 100%;
        border-radius: var(--radius-lg);
        font-size: 16px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(27, 122, 61, 0.08) !important;
        color: var(--primary) !important;
    }

    .nav-cta {
        margin-top: 12px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* --- Navbar brand mobile --- */
    .nav-logo-svg svg {
        width: 38px;
        height: 38px;
    }

    .nav-brand-name {
        font-size: 18px;
    }

    .nav-brand-sub {
        font-size: 9px;
    }

    /* --- AOS Mobile Fixes --- */
    /* Reduce AOS offset on mobile so animations trigger sooner */
    [data-aos] {
        transition-duration: 400ms !important;
    }

    /* Safety net: if AOS animations don't trigger within 4s, show elements anyway */
    .service-card,
    .stat-item,
    .why-us-card,
    .apply-wrapper,
    .apply-form-wrapper,
    .apply-info,
    .apply-benefit,
    .contact-info-card {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Hide decorative shapes that overflow on mobile */
    .apply-shape {
        display: none;
    }

    .service-card-glow {
        display: none;
    }

    /* --- Hero Mobile --- */
    .hero {
        padding: var(--spacing-4xl) 0 var(--spacing-3xl);
        min-height: auto;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    .hero-badge span {
        font-size: 11px;
    }

    .hero-title-nepali {
        font-size: 26px;
    }

    .hero-title-highlight {
        font-size: 34px;
    }

    .hero-tagline-line {
        font-size: 13px;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-trust-badges {
        gap: var(--spacing-sm);
    }

    .trust-badge {
        font-size: 11px;
    }

    .scroll-indicator {
        display: none;
    }

    /* --- Section Headers Mobile --- */
    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    .section-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .section-tag {
        font-size: 11px;
        padding: 5px 14px;
    }

    /* --- Services Mobile --- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .service-card {
        padding: 28px 22px;
    }

    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .service-title {
        font-size: 18px;
    }

    /* --- Stats Mobile --- */
    .stats {
        padding: var(--spacing-3xl) 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .stat-item {
        padding: var(--spacing-md);
    }

    .stat-icon {
        font-size: 26px;
        margin-bottom: var(--spacing-sm);
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-suffix {
        font-size: 16px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* --- About/Mission Mobile --- */
    .about-mission {
        padding: var(--spacing-section) 0;
    }

    .about-layout {
        gap: var(--spacing-xl);
    }

    .about-text {
        font-size: 14px;
        text-align: left;
    }

    .about-content .section-title,
    .about-content .section-tag {
        text-align: left;
    }

    .about-values {
        padding: 24px;
    }

    .about-values-heading {
        font-size: 18px;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    /* --- Leadership Mobile --- */
    .leader-message-card {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
        opacity: 1 !important;
        transform: none !important;
    }

    .leader-card-reverse {
        direction: ltr;
    }

    .leader-photo-side {
        flex-direction: row;
        text-align: left;
        gap: var(--spacing-md);
    }

    .leader-photo-wrapper {
        width: 100px;
        height: 110px;
        flex-shrink: 0;
    }

    .leader-identity {
        align-items: flex-start;
    }

    .leader-message-heading {
        font-size: 17px;
    }

    .leader-message-text p {
        font-size: 13.5px;
    }

    /* --- Gallery Mobile --- */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .gallery-item,
    .gallery-item-wide {
        aspect-ratio: 16/10;
        grid-row: auto;
    }

    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(180deg, transparent 50%, rgba(13, 74, 43, 0.6) 100%);
    }

    .gallery-overlay i {
        display: none;
    }

    .gallery-overlay span {
        position: absolute;
        bottom: var(--spacing-sm);
        left: var(--spacing-sm);
        transform: none;
        font-size: 13px;
    }

    /* --- Why Choose Us Mobile --- */
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .why-us-card {
        padding: 28px 22px;
    }

    .why-us-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .why-us-card h3 {
        font-size: 16px;
    }

    /* --- Testimonials Mobile --- */
    .testimonial-card {
        flex: 0 0 100%;
        padding: 28px 22px;
    }

    .testimonial-quote {
        font-size: 14px;
    }

    .testimonial-name {
        font-size: 14px;
    }

    .carousel-controls {
        margin-top: var(--spacing-lg);
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    /* --- Apply / CTA Mobile --- */
    .apply-section {
        padding: var(--spacing-section) 0;
    }

    .apply-title {
        font-size: 28px;
    }

    .apply-desc {
        font-size: 14px;
    }

    .apply-benefits {
        gap: var(--spacing-md);
    }

    .apply-benefit {
        justify-content: flex-start;
    }

    .apply-form-wrapper {
        padding: 28px 22px;
    }

    .form-heading {
        font-size: 20px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: 14px;
    }

    /* --- Contact Mobile --- */
    .contact-info-cards {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }

    .contact-info-card {
        padding: var(--spacing-md);
    }

    .contact-card-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    /* --- Footer Mobile --- */
    .footer-main {
        padding: var(--spacing-xl) 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-brand-col {
        text-align: center;
    }

    .footer-desc {
        font-size: 13px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .footer-badges {
        justify-content: center;
    }

    .footer-badge {
        font-size: 11px;
    }

    /* --- Back to top mobile --- */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* ---- Small Mobile (max-width: 480px) ---- */
@media (max-width: 480px) {
    :root {
        --spacing-section: 48px;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    /* Hero stacked CTAs */
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
        font-size: 15px;
    }

    .hero-title-nepali {
        font-size: 22px;
    }

    .hero-title-highlight {
        font-size: 28px;
    }

    .hero-tagline-line {
        font-size: 12px;
    }

    .hero-badge {
        font-size: 10px;
        padding: 5px 12px;
    }

    .hero-trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    /* Stats 2-col stays at 480 */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }

    .stat-item {
        padding: var(--spacing-sm) var(--spacing-xs);
    }

    .stat-number {
        font-size: 26px;
    }

    .stat-suffix {
        font-size: 14px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-icon {
        font-size: 22px;
    }

    /* Contact single column */
    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    /* Apply form tight */
    .apply-form-wrapper {
        padding: 20px 16px;
    }

    .apply-title {
        font-size: 24px;
    }

    /* Section titles smaller */
    .section-title {
        font-size: 22px;
    }

    /* Navbar brand tighter */
    .nav-logo-svg svg {
        width: 34px;
        height: 34px;
    }

    .nav-brand-name {
        font-size: 16px;
    }

    .nav-brand-sub {
        font-size: 8px;
    }

    .nav-brand {
        gap: 8px;
    }

    /* Preloader small */
    .preloader-svg-logo svg {
        width: 48px;
        height: 48px;
    }

    .preloader-text {
        font-size: 24px;
    }

    .preloader-tagline {
        font-size: 11px;
    }

    .preloader-bar {
        width: 160px;
    }
}

/* ---- Touch device optimizations ---- */
@media (hover: none) and (pointer: coarse) {
    /* Disable tilt/magnetic effects on touch */
    .service-card,
    .why-us-card {
        transform: none !important;
    }

    /* Bigger tap targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn {
        min-height: 48px;
    }

    .carousel-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .social-link {
        min-width: 44px;
        min-height: 44px;
    }

    /* Remove hover-only effects */
    .service-card:hover {
        transform: none;
    }

    .why-us-card:hover {
        transform: none;
    }

    .hero-float-card:hover {
        transform: none;
    }
}

/* ============================================
   MOTION GRAPHICS - ADVANCED ANIMATIONS
   ============================================ */

/* Magnetic cursor effect class */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reveal animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Text split animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.text-reveal.revealed span {
    transform: translateY(0);
}

/* Glow pulse animation */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(27, 122, 61, 0.2); }
    50% { box-shadow: 0 0 40px rgba(27, 122, 61, 0.4), 0 0 60px rgba(27, 122, 61, 0.1); }
}

/* Gradient shift animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scale on hover with spring */
.spring-hover {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spring-hover:hover {
    transform: scale(1.05);
}

/* Ripple effect on buttons */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Number counting glow */
.stat-number.counting {
    animation: countGlow 2s ease-in-out;
}

@keyframes countGlow {
    0% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    50% { text-shadow: 0 0 40px rgba(245, 166, 35, 0.6); }
    100% { text-shadow: none; }
}

/* Card tilt effect */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection styles */
::selection {
    background: rgba(27, 122, 61, 0.2);
    color: var(--primary-dark);
}
