@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Premium Palette */
    --bg-body: #fdfdfd;
    --bg-surface: #ffffff;
    --bg-subtle: #f8fafc;

    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-light: #94a3b8;
    /* Slate 400 */

    --primary: #2563eb;
    /* Blue 600 */
    --primary-dark: #1d4ed8;
    /* Blue 700 */
    --accent: #8b5cf6;
    /* Violet 500 */

    --glass-border: rgba(0, 0, 0, 0.04);
    --glass-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);

    --nav-height: 80px;
    --max-width: 1040px;
}

[data-theme="dark"] {
    --bg-body: #0b1121;
    --bg-surface: #1e293b;
    --bg-subtle: #111827;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --text-light: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    color: var(--text-muted);
    transition: transform 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: rotate(15deg);
    color: var(--text-main);
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-body);
    /* Subtle Grain/Noise Texture could be added here if we had an image */
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 0) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 0) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 0) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 160px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.animate-delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 30px;
    /* Dropped slightly lower */
    left: 50%;
    transform: translateX(-50%);
    /* Nepal Flag Gradient with 16% Opacity */
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.16), rgba(0, 56, 147, 0.16));
    backdrop-filter: blur(12px);
    /* Blur effect for glass look */
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 3rem;
    /* Reduced padding to move logo left */
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(220, 20, 60, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    min-width: 950px;
    /* Wider */
    max-width: 95vw;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 255, 255, 0.9);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: 2rem;
}

/* Nav Link Animation */
.nav-link {
    color: var(--text-main);
    /* Dark text for contrast against light opaque bg */
    font-size: 1.05rem;
    /* Larger font */
    font-weight: 600;
    position: relative;
    padding: 0.25rem 0;
    transition: all 0.2s ease;
    display: inline-block;
    /* Required for transform */
    text-decoration: none !important;
    /* Force remove underline */
}

.nav-link:hover {
    color: #DC143C;
    /* Crimson on hover */
    transform: scale(1.15);
    /* Slightly stronger pop */
    /* Subtle pop effect */
    text-decoration: none !important;
    text-shadow: none;
    /* Remove glow as it's cleaner on light bg */
}

/* Removed Underline Effect */

.nav-btn {
    background: #DC143C;
    /* Crimson Background */
    color: white;
    /* White text */
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.2s;
    text-decoration: none !important;
    /* Force remove underline */
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.nav-btn:hover {
    background: #003893;
    /* Deep Blue on hover */
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 56, 147, 0.4);
    text-decoration: none !important;
    color: white;
}

.nav-badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 99px;
    margin-left: 0.5rem;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}

/* Cards */
.card,
.glass-panel {
    background: var(--bg-surface);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    padding: 3rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.08);
}

/* Typography Enhancements */
h1 {
    font-size: 3.5rem;
    letter-spacing: -0.04em;
    color: var(--text-main);
    line-height: 1.1;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 1.1rem 2.5rem;
    border-radius: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    /* Ensure flex for centering icon */
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Inputs */
.input-field {
    background: var(--bg-subtle);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--text-main);
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s;
}

.input-field:focus {
    background: var(--bg-surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

/* ... existing styles ... */

/* Utilities */
.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-10 {
    gap: 2.5rem;
}

.w-full {
    width: 100%;
}

.mt-8 {
    margin-top: 3rem;
}

.mb-8 {
    margin-bottom: 3rem;
}

.hidden {
    display: none !important;
}

/* Mobile */
@media(max-width: 768px) {
    nav {
        width: 85%;
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        border-radius: 24px;
        top: 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        margin-left: 0;
        gap: 1rem;
    }

    .card {
        padding: 2rem;
        border-radius: 24px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SECTION STYLES FOR HOMEPAGE */
.section {
    padding: 6rem 0;
}

.section-alt {
    background-color: var(--bg-subtle);
    border: 1px solid var(--glass-border);
    border-radius: 48px;
    margin: 2rem 1.5rem;
    /* Inset like a card */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.05);
    border-color: rgba(37, 99, 235, 0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: #eef2ff;
    color: var(--primary);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--glass-border);
    position: relative;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #cbd5e1;
    margin-right: 1rem;
    object-fit: cover;
}

.quote-mark {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}



/* Trust Cards (Horizontal, Zoom on Hover) */
.trust-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    /* Pill shape */
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    cursor: default;
}

.trust-card:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(220, 20, 60, 0.3);
}

/* Crimson Red Button (Nepali Red) */
.btn-crimson-glow {
    background: rgba(220, 20, 60, 0.85) !important;
    /* Crimson 85% Opacity */
    color: white !important;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3) !important;
    border: 1px solid rgba(220, 20, 60, 0.5) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

.btn-crimson-glow:hover {
    background: rgba(220, 20, 60, 0.95) !important;
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.5) !important;
    transform: translateY(-2px);
}

/* Blue Gold Button (Nepali Blue Base) */
.btn-blue-gold {
    background: rgba(0, 56, 147, 0.85) !important;
    /* Nepali Blue 85% Opacity */
    color: #ffd700 !important;
    /* Gold Text */
    border: none !important;
    /* Removed Gold Border */
    box-shadow: 0 4px 15px rgba(0, 56, 147, 0.3) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-decoration: none !important;
}

.btn-blue-gold:hover {
    background: rgba(0, 56, 147, 0.95) !important;
    box-shadow: 0 6px 25px rgba(0, 56, 147, 0.5) !important;
    transform: translateY(-2px);
}

/* iOS Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    /* Slate 200 */
    transition: .3s;
    border-radius: 34px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Sun Icon (Line Art) */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23f59e0b" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

input:checked+.slider {
    background-color: #3b82f6;
    /* Blue for Dark Mode */
}

input:focus+.slider {
    box-shadow: 0 0 1px #3b82f6;
}

input:checked+.slider:before {
    transform: translateX(20px);

    /* Moon Icon (Line Art) */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%233b82f6" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>');
}

/* Plain Switch (No Icons) */
.slider.no-icon:before,
input:checked+.slider.no-icon:before {
    background-image: none !important;
    content: "" !important;
}

/* Parallax Background Effects */
.parallax-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.halo-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    /* Very light opacity */
    transition: transform 0.1s linear;
    will-change: transform;
}

[data-theme="dark"] .halo-orb {
    opacity: 0.1;
    mix-blend-mode: screen;
}