/* 
   L.P. CHIMARIYA - Modern Minimal Portfolio
   Theme: Stark White, High Contrast, Modern NextJs Reeni Aesthetic
*/

:root {
    --bg-main: #f4f6f9;
    /* Slightly cooler off-white */
    --bg-white: #ffffff;
    --bg-dark: #00205B;
    /* Official Lions Navy */

    --accent-blue: #00338D;
    /* Official Royal Blue */
    --accent-gold: #FFB81C;
    /* Official Vibrant Lions Gold */
    --accent-gold-hover: #E09E16;

    --text-dark: #00205B;
    --text-muted: #55565A;
    /* Official Lions Cool Gray */
    --text-light: #ffffff;

    --border-light: #e0e4eb;

    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Rubik', sans-serif;
    --font-nepali: 'Noto Sans Devanagari', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--accent-blue);
    /* Headers in Lions Blue for high contrast */
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

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

ul {
    list-style: none;
}

/* Utilities */
.text-gold {
    color: var(--accent-gold);
}

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

.bg-white {
    background-color: var(--bg-white);
}

.bg-light {
    background-color: var(--bg-main);
}

.mt-4 {
    margin-top: 2rem;
}

.mt-6 {
    margin-top: 4rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.container-wide {
    max-width: 1400px;
}

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

.section-heading-center h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn-pill {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 500px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #00205B; /* Deep Navy for better contrast on bright gold */
}

.btn-primary:hover {
    background-color: var(--bg-dark);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-nav {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    padding: 0.6rem 1.8rem;
    font-size: 1rem;
}

.btn-nav:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
    /* Reduced top gap */
}

#navbar.scrolled {
    background-color: var(--bg-white);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

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

.logo {
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dark);
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    /* Reduced top gap */
    display: flex;
    align-items: center;
    background-color: var(--bg-main);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-left {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    padding: 0.4rem 1.2rem;
    border-radius: 500px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 51, 141, 0.2);
}

.hero-name {
    font-size: clamp(5rem, 8vw, 8rem);
    line-height: 0.85;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-bio {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-contact-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.hero-right {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.image-showcase {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.shape {
    position: absolute;
    background-color: var(--accent-gold);
    z-index: 0;
}

.shape-1 {
    width: 60%;
    height: 60%;
    top: -20px;
    right: -20px;
    border-radius: 0 100px 0 0;
}

.shape-2 {
    width: 40%;
    height: 40%;
    bottom: -20px;
    left: -20px;
    background-color: var(--text-dark);
    border-radius: 0 0 0 100px;
}

.profile-upload-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    z-index: 10;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-upload-wrapper:hover .profile-img {
    transform: scale(1.03);
}

.upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--bg-white);
}

.profile-upload-wrapper:hover .upload-overlay {
    opacity: 1;
}

.upload-overlay i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.floating-widget {
    position: absolute;
    bottom: 50px;
    left: -80px;
    background: var(--bg-white);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 20;
    border: 1px solid var(--border-light);
}

.widget-number {
    font-size: 3rem;
    color: var(--accent-gold);
}

.widget-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--text-dark);
    text-transform: uppercase;
}

/* About Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

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

.about-image-wrapper {
    position: relative;
    height: 600px;
}

/* About Section - Dual Images Layout */
.dual-images {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    position: relative;
}

.image-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    z-index: 1;
    transition: transform 0.5s ease;
}

.image-box:hover {
    transform: translateY(-5px);
}

.primary-box {
    grid-column: 1 / span 9;
    grid-row: 1 / span 10;
}

.secondary-box {
    grid-column: 7 / span 6;
    grid-row: 6 / span 7;
    z-index: 2;
    border: 10px solid var(--bg-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.float-tag {
    position: absolute;
    top: 40px;
    left: -40px;
    z-index: 3;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
    text-align: center;
    width: 160px;
}

.tag-title {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.tag-sub {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-blue);
    letter-spacing: 1px;
}

.info-list-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
}

.info-item span {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-gold);
    margin-right: 1rem;
    text-transform: uppercase;
}

.nepali-text {
    font-family: var(--font-nepali);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Experience / Timeline */
.timeline-minimal {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s;
}

.timeline-row:hover {
    background-color: var(--bg-white);
    padding-left: 1rem;
    border-radius: 8px;
}

.timeline-year-col {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.text-small {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.timeline-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.timeline-org {
    font-size: 1.1rem;
}

.badge-active {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-left: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
}

.timeline-row.active .timeline-highlight {
    color: var(--accent-gold);
}

/* Grid Layouts for Awards and Orgs */
.grid-modern {
    display: grid;
    gap: 2rem;
}

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

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

.card-modern {
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
}

.card-modern:hover {
    background: var(--bg-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.card-award {
    text-align: center;
}

.card-award.highlight {
    background-color: var(--text-dark);
    color: var(--bg-white);
}

.card-award.highlight h4 {
    color: var(--bg-white);
}

.icon-large {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.card-award.highlight .icon-large {
    color: var(--accent-gold);
}

.card-award h4 {
    font-size: 1.2rem;
}

.card-org {
    display: flex;
    flex-direction: column;
}

.org-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.org-role {
    color: var(--accent-gold);
    font-weight: 500;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* Footer Modern Revamp */

/* Footer Modern Revamp */
.footer-modern {
    background-color: var(--accent-blue);
    background: linear-gradient(135deg, #00338D 0%, #00205B 100%);
    color: var(--text-light);
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.3;
}

.footer-container-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-footer {
    font-size: 2.5rem;
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.5rem;
    color: var(--bg-white);
    margin-bottom: 2rem;
    position: relative;
}

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

.footer-contact-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #a0a0a0;
}

.footer-contact-list i {
    color: var(--accent-gold);
}

.footer-declaration {
    font-style: italic;
    color: #a0a0a0;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.signature-block {
    display: flex;
    flex-direction: column;
}

.sign-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--bg-white);
}

.sign-date {
    font-size: 0.9rem;
    color: var(--accent-gold);
}

.footer-bottom {
    padding: 2rem 0;
    background-color: var(--bg-dark);
    /* Deeper navy footer bottom */
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.back-to-top {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    color: var(--bg-white);
}

@media (max-width: 992px) {
    .footer-container-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .dual-images {
        height: 450px;
    }
}

/* Base Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.5, 0, 0, 1), transform 0.6s cubic-bezier(0.5, 0, 0, 1);
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .grid-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-right {
        width: 100%;
        justify-content: center;
        margin-top: 3rem;
    }

    .floating-widget {
        left: 0;
        bottom: 0;
    }
}

@media (max-width: 992px) {

    .split-layout,
    .footer-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .about-image-wrapper {
        height: 350px;
    }
}

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

    .hero-name {
        font-size: 4rem;
    }

    .grid-columns-3,
    .grid-columns-4 {
        grid-template-columns: 1fr;
    }

    .timeline-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .timeline-year-col {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.8rem;
    }
}