/* ============================================
   Nepal Portfolio - Aesthetic Flag Color Theme
   ============================================ */

/* --- CSS Variables (Nepal Flag Colors) --- */
:root {
    --crimson: #DC143C;
    --crimson-dark: #A00D2C;
    --crimson-light: #E8425E;
    --blue: #003893;
    --blue-dark: #00225C;
    --blue-light: #1A5CD6;
    --white: #FFFFFF;
    --off-white: #F5F0EB;
    --cream: #FAF8F5;
    --dark: #0A1628;
    --dark-mid: #1A1A2E;
    --charcoal: #2C2C3E;
    --text: #1A1A2E;
    --text-light: #6B6B80;
    --gold: #D4A853;
    --shadow: rgba(10, 22, 40, 0.1);
    --shadow-strong: rgba(10, 22, 40, 0.2);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
    line-height: 1.7;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark);
}
::-webkit-scrollbar-thumb {
    background: var(--crimson);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--crimson-light);
}

/* --- Selection --- */
::selection {
    background: var(--crimson);
    color: var(--white);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-flag {
    background: var(--crimson);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 2px solid var(--blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(220, 20, 60, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--crimson);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 20px;
}

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

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

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 56, 147, 0.1);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.hero-emblem {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 12px;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--off-white);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 28px 0;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: var(--crimson);
}

.divider-diamond {
    width: 10px;
    height: 10px;
    background: var(--crimson);
    transform: rotate(45deg);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto 36px;
    font-weight: 300;
    letter-spacing: 0.03em;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--crimson);
    color: var(--white);
    border: 2px solid var(--crimson);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    opacity: 0.2;
    transition: 0.5s;
}

.hero-btn:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220, 20, 60, 0.4);
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin: 10px auto 0;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--crimson);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 22px; }
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--crimson);
    background: rgba(220, 20, 60, 0.08);
    padding: 6px 20px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-accent {
    width: 60px;
    height: 3px;
    background: var(--crimson);
    margin: 0 auto;
    border-radius: 2px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--white);
    padding: 28px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--crimson);
    transform: scaleX(0);
    transition: var(--transition);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-strong);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--crimson);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
    font-weight: 500;
}

/* ============================================
   GEOGRAPHY SECTION
   ============================================ */
.geography {
    background: var(--off-white);
    position: relative;
}

.geography::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.geo-intro {
    text-align: center;
    max-width: 700px;
    margin: -30px auto 50px;
    color: var(--text-light);
    font-size: 1.05rem;
}

.geo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.geo-card {
    background: var(--white);
    padding: 36px;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.geo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px var(--shadow-strong);
}

.geo-card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.geo-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.geo-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
}

.geo-card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--crimson);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.geo-card:hover .geo-card-accent {
    transform: scaleX(1);
}

/* ============================================
   CULTURE SECTION
   ============================================ */
.culture {
    background: var(--dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.culture::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(220, 20, 60, 0.03);
}

.culture .section-title {
    color: var(--white);
}

.culture .section-tag {
    color: var(--crimson-light);
    background: rgba(220, 20, 60, 0.15);
}

.culture-intro {
    text-align: center;
    max-width: 700px;
    margin: -30px auto 50px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    position: relative;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.culture-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px;
    border-radius: 16px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.culture-card:hover {
    background: rgba(220, 20, 60, 0.1);
    border-color: rgba(220, 20, 60, 0.3);
    transform: translateY(-4px);
}

.culture-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.culture-icon {
    font-size: 1.8rem;
}

.culture-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

.culture-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   TOURISM SECTION
   ============================================ */
.tourism {
    background: var(--cream);
}

.tourism-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.tourism-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.tourism-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px var(--shadow-strong);
}

.tourism-image {
    height: 220px;
    overflow: hidden;
}

.tourism-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--blue-dark);
    color: var(--white);
    transition: var(--transition-slow);
}

.tourism-placeholder span {
    font-size: 3rem;
    margin-bottom: 8px;
}

.tourism-placeholder p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.tourism-card:hover .tourism-placeholder {
    transform: scale(1.05);
}

.tourism-info {
    padding: 28px;
}

.tourism-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.tourism-info p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.tourism-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tourism-tags span {
    background: rgba(220, 20, 60, 0.08);
    color: var(--crimson);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
    background: var(--off-white);
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border: 2px solid rgba(220, 20, 60, 0.2);
    background: transparent;
    color: var(--text-light);
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--crimson);
    color: var(--white);
    border-color: var(--crimson);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 1;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px var(--shadow-strong);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 16px;
    transition: var(--transition);
}

.gallery-placeholder span {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.gallery-placeholder p {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
}

.gallery-item:hover .gallery-placeholder {
    transform: scale(1.1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-info h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--crimson-light);
    padding-left: 6px;
}

.footer-info p {
    font-size: 0.88rem;
    padding: 3px 0;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom .divider-line {
    background: rgba(220, 20, 60, 0.4);
}

.footer-bottom p {
    margin-top: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--crimson);
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 80%;
    max-height: 80vh;
    text-align: center;
    color: var(--white);
}

.lightbox-content span {
    font-size: 6rem;
    display: block;
    margin-bottom: 16px;
}

.lightbox-content p {
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PARTICLES (Hero background dots)
   ============================================ */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(220, 20, 60, 0.3);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .geo-grid {
        grid-template-columns: 1fr;
    }

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

    .tourism-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 4px;
        transition: var(--transition);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.3);
    }

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

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }

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

    .section {
        padding: 70px 0;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .culture-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .geo-card {
        padding: 28px;
    }

    .tourism-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 20px 16px;
    }

    .tourism-info {
        padding: 20px;
    }
}
