/*
Theme Name: Sanjiv Nepali Theme
Theme URI: 
Author: Antigravity
Author URI: 
Description: A simple custom WordPress theme for Master Sanjiv Nepali.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sanjiv-nepali
*/

:root {
    --indigo-deep: #001f52;      /* Nepal Blue deep shade */
    --indigo-mid: #002c73;       /* Nepal Blue mid shade */
    --indigo-light: #003893;     /* True Nepal Blue */
    --gold: #DC143C;             /* Nepal Crimson Red */
    --gold-light: #f53158;       /* Lighter crimson highlight */
    --gold-soft: rgba(220, 20, 60, 0.15);
    --gold-gradient: linear-gradient(135deg, #DC143C 0%, #f53158 50%, #DC143C 100%);
    --white: #ffffff;
    --cream: #f8fafc;            /* Clean, modern off-white */
    --gray: #475569;             /* Slate gray for readable body text */
    --gray-light: #94a3b8;
    --glass-bg: rgba(0, 56, 147, 0.85);
    --shadow-soft: 0 10px 40px rgba(0, 56, 147, 0.05);
    --shadow-hover: 0 20px 50px rgba(0, 56, 147, 0.15);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--indigo-deep);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ─── Navigation ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.9rem 3rem;
}

nav.scrolled .logo,
nav.scrolled .nav-links a {
    color: var(--white);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition);
}

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

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

/* ─── Hero Section ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(150deg, var(--indigo-deep) 0%, var(--indigo-mid) 40%, var(--indigo-light) 100%);
    overflow: hidden;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(220, 20, 60, 0.8);
    border: 1px solid rgba(220, 20, 60, 0.9);
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.3);
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    color: var(--white);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    line-height: 1.1;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero h1 span {
    display: block;
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 6rem);
    margin-top: 0.3rem;
}

.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-style: italic;
    color: var(--gray-light);
    letter-spacing: 3px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.hero-line {
    width: 80px;
    height: 2px;
    background: var(--gold-gradient);
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards;
}

.scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.5s forwards;
}

.scroll-hint span {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray-light);
}

.scroll-hint .arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

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

/* ─── Section Styles ─── */
/* All content sections get comfortable padding */
section {
    padding: 7rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Full-bleed sections break out of the max-width constraint */
.hero,
.journey,
.philosophy,
.contact,
.gallery {
    max-width: 100%;
    width: 100%;
    margin: 0;
}

/* These sections need their own inner padding */
.journey,
.philosophy,
.contact,
.gallery {
    padding: 7rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--indigo-deep);
    letter-spacing: 1px;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: var(--gold-gradient);
    margin: 1.5rem auto 0;
}

/* ─── About Section ─── */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--indigo-mid), var(--indigo-light));
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 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='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 0h40v40H0V0zm20 20h20v20H20V20zM0 20h20v20H0V20z'/%3E%3C/g%3E%3C/svg%3E");
}

.about-image .placeholder-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.4;
    letter-spacing: 2px;
    z-index: 1;
}

.about-image .frame-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid var(--gold);
    opacity: 0.5;
}

.about-image .frame-corner.tl { top: 15px; left: 15px; border-right: none; border-bottom: none; }
.about-image .frame-corner.tr { top: 15px; right: 15px; border-left: none; border-bottom: none; }
.about-image .frame-corner.bl { bottom: 15px; left: 15px; border-right: none; border-top: none; }
.about-image .frame-corner.br { bottom: 15px; right: 15px; border-left: none; border-top: none; }

.about-text p {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.about-text .highlight {
    color: var(--indigo-deep);
    font-weight: 500;
}

.about-text .quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--indigo-light);
    border-left: 2px solid var(--gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

/* ─── Journey Section ─── */
.journey {
    background: var(--cream);
}

.journey-inner {
    max-width: 900px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--gold), var(--indigo-light), var(--gold));
}

.timeline-item {
    position: relative;
    padding-bottom: 3.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -3rem;
    top: 0.3rem;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateX(-4.5px);
    box-shadow: 0 0 0 6px var(--cream), 0 0 0 7px var(--gold-soft);
}

.timeline-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
}

.timeline-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--indigo-deep);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ─── Credentials Section ─── */
.credentials {
    background: var(--white);
}

.creds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.cred-card {
    background: var(--white);
    border: 1px solid rgba(220, 20, 60, 0.15);
    border-radius: 4px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    z-index: 1;
}

.cred-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(220, 20, 60, 0.03));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.cred-card:hover::after {
    opacity: 1;
}

.cred-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: center;
}

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

.cred-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(220, 20, 60, 0.4);
}

.cred-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-soft);
    border-radius: 50%;
}

.cred-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.5;
}

.cred-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--indigo-deep);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.cred-org {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.cred-detail {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ─── Philosophy Section ─── */
.philosophy {
    background: var(--indigo-deep);
    position: relative;
    overflow: hidden;
}

.philosophy::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 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.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.philosophy-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.philosophy .section-label {
    color: var(--gold);
}

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

.philosophy-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-style: italic;
    color: var(--cream);
    line-height: 1.6;
    margin: 3rem 0;
    position: relative;
}

.philosophy-quote::before,
.philosophy-quote::after {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
}

.philosophy-quote::before {
    content: '"';
    position: absolute;
    top: -1.5rem;
    left: -1rem;
}

.philosophy-quote::after {
    content: '"';
    position: absolute;
    bottom: -2.5rem;
    right: -1rem;
}

.philosophy-tenets {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.tenet {
    text-align: center;
}

.tenet-symbol {
    width: 50px;
    height: 50px;
    border: 1px solid var(--gold-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--gold);
}

.tenet-name {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray-light);
}

/* ─── Gallery Section ─── */
.gallery {
    background: var(--white);
}

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

.gallery-item {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--indigo-mid), var(--indigo-light));
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:nth-child(2) {
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.gallery-item .gallery-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: var(--white);
    opacity: 0.3;
    letter-spacing: 2px;
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,46,0.7), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

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

.gallery-overlay span {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
}

/* ─── Contact Section ─── */
.contact {
    background: var(--cream);
    text-align: center;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto 3rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 2.5rem;
    border: 1px solid var(--indigo-light);
    color: var(--indigo-deep);
    background: transparent;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--indigo-deep);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-link:hover::before {
    transform: scaleY(1);
}

.contact-link:hover {
    color: var(--white);
    border-color: var(--indigo-deep);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 56, 147, 0.2);
}

.contact-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ─── Footer ─── */
footer {
    background: var(--indigo-deep);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-tenets {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 1px;
}

/* ─── Mobile Menu ─── */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: var(--transition);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--indigo-deep);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition);
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

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

    .gallery-item:nth-child(2) {
        grid-row: span 1;
        aspect-ratio: 4/3;
    }

    .philosophy-tenets {
        gap: 2rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    section {
        padding: 5rem 1.5rem;
    }
}

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

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}

.logo-wrapper img { max-height: 40px; width: auto; }
