/* --------------------------------------------------
   PREMIUM STYLE SHEET — PANKAJ KUMAR PORTFOLIO
-------------------------------------------------- */

:root {
    /* Color Palette */
    --bg-dark: #030C1B;
    --bg-navy: #0A192F;
    --bg-navy-light: #112240;
    --bg-navy-lightest: #233554;
    
    --text-cream: #F5EBE6;
    --text-cream-light: #F7F4EB;
    --text-muted: #8892B0;
    --text-white: #FFFFFF;
    
    --accent-gold: #D4AF37;
    --accent-gold-hover: #F5C542;
    --accent-gold-rgb: 212, 175, 55;
    
    /* Typography & Spacing */
    --font-inter: 'Inter', sans-serif;
    --container-width: 1200px;
    
    /* Shadows & Effects */
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.15);
    --shadow-bloom: 0 0 35px rgba(212, 175, 55, 0.35);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-snap: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

/* Global future-proof text wrapping safety */
p, h1, h2, h3, h4, h5, h6, span, a, li, button, input, textarea {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-inter);
    background-color: var(--bg-dark);
    color: var(--text-cream);
    overflow-x: hidden;
}

body {
    line-height: 1.6;
    background-color: var(--bg-dark);
    position: relative;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    position: relative;
}

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

ul {
    list-style: none;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-navy-lightest);
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Button & Link Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
}

.btn-outline:hover {
    background-color: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Sticky Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(3, 12, 27, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

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

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 30%;
}

.nav-logo-img {
    height: 66px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: var(--transition-smooth);
}

.logo:hover .nav-logo-img {
    transform: scale(1.05);
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-cream);
    transition: var(--transition-smooth);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100%;
    background-color: var(--bg-navy);
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.mobile-nav-overlay.open {
    right: 0;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-link {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--accent-gold);
}

/* Section Common Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    color: var(--text-cream);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 0.8rem auto 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: -1rem;
    margin-bottom: 4rem;
}

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

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

/* Background Motion Decoration */
.background-decor {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
}

.animate-bg {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(10, 25, 47, 0) 70%);
    top: 15%;
    right: 10%;
    animation: bgMovement 12s infinite alternate ease-in-out;
}

@keyframes bgMovement {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, 60px) scale(1.15); }
}

/* --------------------------------------------------
   PAGE 1 — LANDING / HERO
-------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.designation-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.08);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-cream);
    line-height: 1.1;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 680px;
    text-align: justify;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-socials {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bg-navy-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-cream);
    transition: var(--transition-bounce);
}

.social-icon:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: scale(1.1) translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Profile Photo Wrappers */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-inner {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(135deg, var(--bg-navy-light) 0%, var(--accent-gold) 100%);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

.image-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(212, 175, 55, 0.5);
    animation: rotateDashed 20s infinite linear;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
}

@keyframes rotateDashed {
    100% { transform: rotate(360deg); }
}


/* --------------------------------------------------
   PAGE 2 — ABOUT ME
-------------------------------------------------- */
.about-section {
    background-color: var(--bg-navy);
    position: relative;
    overflow: hidden;
    padding: 3rem 0 3.5rem;
}

/* --------------------------------------------------
   PAGE 2 — INTERACTIVE 3D DIGITAL BOOK
-------------------------------------------------- */
.interactive-book-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 720px;
    width: 100%;
    position: relative;
    perspective: 2500px;
    -webkit-perspective: 2500px;
}

.interactive-book {
    position: relative;
    width: 100%;
    max-width: 640px;
    min-height: 450px;
    height: 450px;
    background: #061226;
    border-radius: 16px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 
                0 0 35px rgba(212, 175, 55, 0.16), 
                inset 0 0 14px rgba(0, 0, 0, 0.7);
    display: flex;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.4s ease, min-height 0.3s ease;
}

/* Spiral Spine on the Left */
.book-spiral-spine {
    position: absolute;
    left: 8px;
    top: 16px;
    bottom: 16px;
    width: 28px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.spiral-ring {
    position: relative;
    width: 28px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ring-metal {
    width: 18px;
    height: 9px;
    border-radius: 5px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5D77F 25%, #D4AF37 55%, #8A6B1A 85%, #FFE9A8 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.75), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transform: rotate(-10deg);
}

.ring-hole {
    width: 4px;
    height: 8px;
    background: #02060e;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px #000;
}

/* Right Bookmark Navigation Tabs */
.book-side-tabs {
    position: absolute;
    right: -34px;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 3.5px;
    z-index: 60;
}

.book-tab-btn {
    background: linear-gradient(135deg, #0d1e38 0%, #061124 100%);
    color: #C5A059;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-left: none;
    padding: 3.5px 8px;
    border-radius: 0 6px 6px 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.64rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-tab-btn:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, #D4AF37 0%, #AA8022 100%);
    color: #061124;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.book-tab-btn.active {
    transform: translateX(7px);
    background: linear-gradient(135deg, #F5D77F 0%, #D4AF37 60%, #947118 100%);
    color: #061124;
    font-weight: 800;
    border-color: #F5D77F;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.85);
}

/* Book Pages Container & 3D Stage */
.book-pages-wrapper {
    position: relative;
    width: 100%;
    min-height: 450px;
    height: 450px;
    border-radius: 14px;
    overflow: visible;
    background: #08162e;
    display: flex;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    perspective: 2500px;
    -webkit-perspective: 2500px;
    transition: min-height 0.3s ease;
}

.book-page {
    position: absolute;
    inset: 0;
    padding-left: 38px;
    transform-origin: 38px center; /* Rotates exactly along spiral rings axis */
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    will-change: transform, opacity;
}

.book-page.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: rotateY(0deg);
    z-index: 10;
}

/* Front Faces */
.book-page .page-inner,
.book-page .cover-media-container {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: rotateY(0deg);
    position: relative;
    z-index: 2;
}

/* Authentic Paper Back Face */
.page-back-face {
    position: absolute;
    top: 12px;
    bottom: 12px;
    right: 14px;
    left: 62px;
    border-radius: 12px;
    background: radial-gradient(circle at center, #0b1a33 0%, #040d1c 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.cover-back-face {
    left: 14px;
}

.back-face-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.45;
}

.crest-monogram {
    font-family: 'Space Grotesk', serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #D4AF37;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.crest-gold-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin-top: 4px;
}

/* Dynamic Paper Lighting / Curl Overlay */
.book-page::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    right: 14px;
    left: 62px;
    border-radius: 12px;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(255, 255, 255, 0.28) 32%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.85) 100%
    );
    opacity: 0;
    pointer-events: none;
    z-index: 30;
    transition: opacity 0.2s ease;
}

.book-page-cover::before {
    left: 14px;
}

/* FORWARD 3D PAGE TURN */
.book-page.turning-forward {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 25 !important;
    animation: realPageTurnForward 0.72s cubic-bezier(0.38, 0.04, 0.2, 1) forwards;
}

.book-page.turning-forward::before {
    animation: dynamicPaperLighting 0.72s ease forwards;
}

@keyframes realPageTurnForward {
    0% {
        transform: rotateY(0deg) translateZ(0);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    30% {
        transform: rotateY(-38deg) skewY(-2.5deg) scale(0.99) translateZ(40px);
        box-shadow: -15px 15px 30px rgba(0, 0, 0, 0.55);
    }
    60% {
        transform: rotateY(-95deg) skewY(-1deg) scale(0.98) translateZ(60px);
        box-shadow: -25px 20px 45px rgba(0, 0, 0, 0.75);
    }
    85% {
        transform: rotateY(-140deg) skewY(1.5deg) scale(0.97) translateZ(25px);
        opacity: 0.92;
    }
    100% {
        transform: rotateY(-180deg) translateZ(0);
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes dynamicPaperLighting {
    0% {
        opacity: 0;
        background-position: 100% 0;
    }
    25% {
        opacity: 0.55;
    }
    55% {
        opacity: 0.9;
    }
    80% {
        opacity: 0.45;
    }
    100% {
        opacity: 0;
        background-position: 0 0;
    }
}

/* BACKWARD 3D PAGE TURN */
.book-page.turning-backward {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 25 !important;
    animation: realPageTurnBackward 0.72s cubic-bezier(0.38, 0.04, 0.2, 1) forwards;
}

.book-page.turning-backward::before {
    animation: dynamicPaperLightingBack 0.72s ease forwards;
}

@keyframes realPageTurnBackward {
    0% {
        transform: rotateY(-180deg) translateZ(0);
        opacity: 0;
        visibility: visible;
    }
    15% {
        opacity: 0.92;
        transform: rotateY(-140deg) skewY(1.5deg) scale(0.97) translateZ(25px);
    }
    50% {
        transform: rotateY(-95deg) skewY(-1deg) scale(0.98) translateZ(60px);
        box-shadow: 25px 20px 45px rgba(0, 0, 0, 0.75);
        opacity: 1;
    }
    75% {
        transform: rotateY(-38deg) skewY(-2.5deg) scale(0.99) translateZ(40px);
        box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.55);
    }
    100% {
        transform: rotateY(0deg) translateZ(0);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        opacity: 1;
        visibility: visible;
    }
}

@keyframes dynamicPaperLightingBack {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 0.8;
    }
    65% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
    }
}

/* UNDER-PAGE REVEAL AND RECEDE */
.book-page.revealing-under {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 9 !important;
    animation: underPageReveal 0.72s ease forwards;
}

@keyframes underPageReveal {
    0% {
        filter: brightness(0.62) contrast(1.08);
        transform: scale(0.985);
    }
    100% {
        filter: brightness(1) contrast(1);
        transform: scale(1);
    }
}

.book-page.receding-under {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 9 !important;
    animation: underPageRecede 0.72s ease forwards;
}

@keyframes underPageRecede {
    0% {
        filter: brightness(1) contrast(1);
        transform: scale(1);
    }
    100% {
        filter: brightness(0.62) contrast(1.08);
        transform: scale(0.985);
    }
}

/* COVER SPECIAL PHYSICAL OPENING */
.book-page-cover.cover-swing-open {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 28 !important;
    transform-origin: 38px center;
    animation: coverPhysicalOpen 0.82s cubic-bezier(0.25, 1, 0.45, 1) forwards;
}

@keyframes coverPhysicalOpen {
    0% {
        transform: rotateY(0deg) translateZ(0);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
    }
    35% {
        transform: rotateY(-45deg) skewY(-2deg) translateZ(55px);
        box-shadow: -22px 20px 45px rgba(0, 0, 0, 0.9);
    }
    65% {
        transform: rotateY(-95deg) scale(0.98) translateZ(75px);
        box-shadow: -35px 25px 55px rgba(0, 0, 0, 0.95);
    }
    100% {
        transform: rotateY(-180deg) translateZ(0);
        opacity: 0;
        visibility: hidden;
    }
}

/* Page 0: Cover Layout */
.book-page-cover {
    padding-left: 0;
}

.cover-media-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #030a17;
}

.book-cover-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    display: block;
}

/* Profile Photo directly above 'About' on the front cover */
.cover-profile-circle-wrapper {
    position: absolute;
    top: 18.5%;
    left: 45.4%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #F5D77F 0%, #D4AF37 50%, #7A5E12 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 20px rgba(212, 175, 55, 0.6);
    z-index: 15;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cover-profile-circle-wrapper:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9), 0 0 28px rgba(212, 175, 55, 0.9);
}

.cover-profile-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid #061124;
    display: block;
}

/* Cover Open Button */
.book-cover-open-btn {
    position: absolute;
    bottom: 18px;
    right: 18px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 1.25rem;
    background: linear-gradient(135deg, #D4AF37 0%, #AA8022 100%);
    color: #061124;
    font-weight: 800;
    font-size: 0.84rem;
    border-radius: 25px;
    border: 1.5px solid #F5D77F;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: goldPulseCoverBtn 2.5s infinite;
}

.book-cover-open-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.7);
}

@keyframes goldPulseCoverBtn {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.85);
    }
}

/* Inner Book Page Styles */
.book-page-content {
    background: transparent;
}

.page-inner {
    position: relative;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    min-height: 442px;
    padding: 1.05rem 1.5rem 0.8rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05) 0%, transparent 60%), #071329;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 12px;
    margin: 4px 6px 4px 2px;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.4);
}

/* Page Headers */
.page-header-author {
    text-align: center;
    margin-bottom: 0.35rem;
}

.page-top-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 1px;
    margin: 0.05rem 0;
    font-family: 'Space Grotesk', sans-serif;
}

.author-role-sub {
    font-size: 0.78rem;
    color: #C5CEE0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.gold-ornament-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #D4AF37 30%, #D4AF37 70%, transparent 100%);
    margin: 0.32rem auto 0.45rem;
    opacity: 0.65;
}

/* Page 1 (Author) Elements */
.author-quote {
    font-style: italic;
    color: #F5EBE6;
    font-size: 0.80rem;
    line-height: 1.36;
    text-align: center;
    padding: 0.35rem 0.7rem;
    margin: 0 0 0.42rem;
    border-left: 3px solid #D4AF37;
    border-right: 3px solid #D4AF37;
    background: rgba(212, 175, 55, 0.04);
    border-radius: 6px;
}

.author-intro-para {
    font-size: 0.80rem;
    line-height: 1.38;
    color: #C5CEE0;
    margin-bottom: 0.42rem;
    text-align: justify;
}

.author-currently-box {
    background: rgba(10, 25, 47, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 8px;
    padding: 0.42rem 0.7rem;
    margin-bottom: 0.42rem;
}

.currently-title {
    font-size: 0.64rem;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    font-weight: 800;
    margin-bottom: 0.25rem;
    text-align: center;
    text-transform: uppercase;
}

.currently-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    text-align: center;
}

.curr-col p {
    font-size: 0.78rem;
    color: #FFFFFF;
    margin: 0;
}

.curr-col .curr-sub {
    font-size: 0.70rem;
    color: #8892B0;
    margin-top: 0.12rem;
}

.curr-bullet {
    color: #D4AF37;
    margin-right: 0.25rem;
}

.author-sign-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 0.15rem;
    padding-right: 1rem;
}

.author-signature {
    font-family: 'Caveat', cursive, serif;
    font-size: 1.45rem;
    color: #F5D77F;
    font-weight: 600;
    transform: rotate(-3deg);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.signature-line {
    width: 68px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #D4AF37);
    margin-top: -3px;
}

/* Page 2 (Table of Contents / Index) Elements */
.page-header-chapter {
    margin-bottom: 0.35rem;
}

.chapter-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-gold);
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2px 8px;
    border-radius: 16px;
    margin-bottom: 0.18rem;
}

.chapter-main-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0.05rem 0;
    font-family: 'Space Grotesk', sans-serif;
}

.index-subtitle {
    font-size: 0.76rem;
    color: #8892B0;
    margin: 0;
}

.book-index-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
}

.index-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.32rem 0.75rem;
    background: rgba(13, 27, 49, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.22s ease;
}

.index-item:hover {
    background: rgba(212, 175, 55, 0.14);
    border-color: rgba(212, 175, 55, 0.7);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.index-num {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    font-weight: 800;
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.16);
    padding: 1px 5px;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.index-title {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 600;
    color: #E6EDF8;
}

.index-arrow {
    width: 13px;
    height: 13px;
    color: #D4AF37;
    transition: transform 0.2s ease;
}

.index-item:hover .index-arrow {
    transform: translateX(3px);
}

/* Chapters 01 to 07 Content */
.chapter-intro-text {
    font-size: 0.80rem;
    line-height: 1.38;
    color: #C5CEE0;
    margin-bottom: 0.42rem;
}

.chapter-statement-quote {
    font-style: italic;
    color: #F5EBE6;
    font-size: 0.79rem;
    line-height: 1.35;
    border-left: 3px solid #D4AF37;
    padding: 0.35rem 0.7rem;
    margin: 0 0 0.42rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 0 6px 6px 0;
}

.chapter-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    margin-bottom: 0.42rem;
    flex: 1;
}

.chapter-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.79rem;
    line-height: 1.36;
    color: #E0E7F5;
}

.golden-bullet {
    color: #D4AF37;
    font-size: 0.90rem;
    line-height: 1.2;
    flex-shrink: 0;
    text-shadow: 0 0 6px rgba(212, 175, 55, 0.7);
    margin-top: 1px;
}

.chapter-bullet-item strong {
    color: #FFFFFF;
    font-weight: 700;
}

.chapter-bullet-item p {
    margin: 0;
}

/* Book Navigation Footer */
.book-page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

.book-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.32rem 0.72rem;
    background: rgba(13, 27, 49, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 18px;
    color: #D4AF37;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.book-nav-btn:hover {
    background: #D4AF37;
    color: #061124;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    transform: translateY(-1px);
}

.book-index-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.32rem 0.68rem;
    background: rgba(212, 175, 55, 0.14);
    border: 1px dashed rgba(212, 175, 55, 0.6);
    border-radius: 16px;
    color: #F5D77F;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.book-index-quick-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: #D4AF37;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.book-page-num {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: #8892B0;
    letter-spacing: 0.5px;
}


/* --------------------------------------------------
   PAGE 3 — WORK EXPERIENCE
-------------------------------------------------- */
.timeline {
    position: relative;
    max-width: 1060px;
    margin: 3.5rem auto 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
}

/* Timeline Vertical Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(212, 175, 55, 0.25);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    z-index: 1;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0;
}

.timeline-item.reveal-left {
    left: auto;
    padding-right: 2.2rem;
    padding-left: 0;
}

.timeline-item.reveal-right {
    left: auto;
    padding-left: 2.2rem;
    padding-right: 0;
}

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 3px solid var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    z-index: 10;
}

.timeline-item.reveal-left .timeline-dot {
    right: -8px;
    top: 2.5rem;
}

.timeline-item.reveal-right .timeline-dot {
    left: -8px;
    bottom: 2.5rem;
    top: auto;
}

/* Timeline Card */
.timeline-card {
    background-color: var(--bg-navy-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem 1.6rem;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    position: relative;
    overflow: visible;
    height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.timeline-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-glow);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.company-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.pulse-badge {
    animation: badgePulse 2s infinite alternate;
}

@keyframes badgePulse {
    0% { border-color: rgba(212, 175, 55, 0.15); box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
    100% { border-color: rgba(212, 175, 55, 0.4); box-shadow: 0 0 6px rgba(212, 175, 55, 0.2); }
}

.role-duration {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.role-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-cream);
    margin-bottom: 0.7rem;
}

.employment-type {
    display: none;
}

/* Curtain Open effect on hover */
.card-details-curtain {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.curtain-heading {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 0.4rem;
}

.experience-bullets {
    margin-bottom: 0.7rem;
}

.experience-bullets li {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    position: relative;
    padding-left: 1.15rem;
    line-height: 1.42;
    text-align: left;
}

.experience-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.achievement-bullets li::before {
    content: '✓';
    color: #4BB543;
}


/* --------------------------------------------------
   PAGE 4 — EDUCATION
-------------------------------------------------- */
.education-section {
    background-color: var(--bg-navy);
}

.education-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.education-card {
    background-color: var(--bg-navy-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.edu-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.edu-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.08);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.edu-duration {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.edu-degree {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-cream);
    margin-bottom: 0.4rem;
}

.edu-institution {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.edu-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.edu-meta svg {
    width: 16px;
    height: 16px;
    color: var(--accent-gold);
}

.highlight-cgpa {
    font-weight: 700;
    color: var(--accent-gold);
}

.edu-highlights h5 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
}

.highlights-list li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.5rem;
}

.highlights-list li::before {
    content: '▪';
    position: absolute;
    left: 0.2rem;
    color: var(--accent-gold);
    font-size: 0.8rem;
}


/* --------------------------------------------------
   PAGE 5 — PROJECTS
-------------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--bg-navy-light);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 2rem 1.6rem 2.2rem 1.6rem;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: var(--shadow-glow);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-type {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.project-status {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.project-status.live {
    background-color: rgba(75, 181, 67, 0.1);
    color: #4BB543;
    border: 1px solid rgba(75, 181, 67, 0.2);
}

.project-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-cream);
    margin-bottom: 0.2rem;
}

.project-org {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.project-outcomes {
    margin-bottom: 2rem;
}

.project-outcomes h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
}

.outcome-list li {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.outcome-list li::before {
    content: '•';
    position: absolute;
    left: 0.2rem;
    color: var(--accent-gold);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.tech-pill {
    font-size: 0.78rem;
    font-weight: 600;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--accent-gold);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    transition: var(--transition-snap);
}

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

/* --------------------------------------------------
   FEATURED PROJECT VIDEO & ACTIONS
-------------------------------------------------- */
.project-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #050b14;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    margin: 1.2rem 0 1.5rem 0;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-video-wrapper:hover {
    border-color: rgba(212, 175, 55, 0.65);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
}

.project-preview-video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Guarantees 0% crop on all sides */
    display: block;
    background-color: #040812;
    transition: transform 0.4s ease;
}

.project-video-wrapper:hover .project-preview-video {
    transform: scale(1.025);
}

.video-expand-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    pointer-events: none;
}

.video-expand-badge svg,
.video-expand-badge i {
    width: 16px;
    height: 16px;
}

.project-video-wrapper:hover .video-expand-badge {
    transform: scale(1.12);
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--accent-gold);
    color: #FFFFFF;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.video-overlay-hint {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(6, 15, 30, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: var(--text-cream);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.video-overlay-hint.is-playing {
    opacity: 0;
    visibility: hidden;
}

.hint-play-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-gold);
    background: rgba(10, 25, 47, 0.9);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transition: transform 0.3s ease;
}

.project-video-wrapper:hover .hint-play-icon {
    transform: scale(1.12);
}

.hint-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(10, 25, 47, 0.85);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-details-modal {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-details-modal:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
}

.btn-live-project {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-cream);
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-live-project:hover {
    border-color: #4BB543;
    color: #4BB543;
    background-color: rgba(75, 181, 67, 0.08);
    box-shadow: 0 4px 18px rgba(75, 181, 67, 0.22);
    transform: translateY(-2px);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* --------------------------------------------------
   PROJECT DETAIL POPUP MODAL
-------------------------------------------------- */
.project-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 20, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1.5rem;
}

.project-modal-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.project-modal-content {
    background: var(--bg-navy-light);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.15);
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal-backdrop.is-active .project-modal-content {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--bg-dark);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-snap);
}

.modal-close-btn:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: rotate(90deg) scale(1.1);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-cream);
    margin-bottom: 0.3rem;
    padding-right: 2rem;
}

.modal-org {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-bottom: 2rem;
}

.modal-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}

/* --------------------------------------------------
   GLOBAL PROJECT VIDEO THEATER / LIGHTBOX MODAL
-------------------------------------------------- */
.video-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 9, 18, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-lightbox-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.video-lightbox-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    background: linear-gradient(180deg, #0A1628 0%, #060D18 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 18px;
    box-shadow: 0 30px 75px rgba(0, 0, 0, 0.95), 0 0 45px rgba(212, 175, 55, 0.22);
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.video-lightbox-backdrop.is-active .video-lightbox-container {
    transform: scale(1) translateY(0);
}

.video-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.6rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(5, 11, 20, 0.7);
}

.video-lightbox-title-group {
    display: flex;
    flex-direction: column;
}

.video-lightbox-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.video-lightbox-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-cream);
    margin: 0;
}

.video-lightbox-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--text-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.video-lightbox-close:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    border-color: var(--accent-gold);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.5);
}

.video-lightbox-close svg,
.video-lightbox-close i {
    width: 20px;
    height: 20px;
}

.video-lightbox-player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 70vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-lightbox-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
    background: #000;
}

.video-lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.6rem;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(5, 11, 20, 0.7);
    flex-wrap: wrap;
    gap: 0.8rem;
}

.video-lightbox-hint-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

.video-lightbox-hint-note svg,
.video-lightbox-hint-note i {
    width: 14px;
    height: 14px;
    color: var(--accent-gold);
}

.lightbox-live-btn {
    width: auto;
    padding: 0.55rem 1.25rem;
    font-size: 0.86rem;
}

@media (max-width: 600px) {
    .video-lightbox-backdrop {
        padding: 0.75rem;
    }
    .video-lightbox-header {
        padding: 0.85rem 1rem;
    }
    .video-lightbox-title {
        font-size: 1.05rem;
    }
    .video-lightbox-footer {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    .lightbox-live-btn {
        width: 100%;
    }
}


/* --------------------------------------------------
   PAGE 6 — SKILLS
-------------------------------------------------- */
.skills-section {
    background-color: var(--bg-navy);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.skills-card-group {
    background-color: var(--bg-navy-light);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 2.2rem;
    box-shadow: var(--shadow-premium);
}

.skills-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.skills-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-gold);
    transition: transform 0.5s ease;
}

.skills-card-group:hover .skills-icon {
    transform: rotate(15deg) scale(1.1);
}

.skills-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-cream);
}

.skills-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-cream);
}

.skill-percentage {
    font-weight: 700;
    color: var(--accent-gold);
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: var(--bg-dark);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--bg-navy-lightest) 0%, var(--accent-gold) 100%);
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.25, 1);
}


/* --------------------------------------------------
   PAGE 7 — CERTIFICATIONS
-------------------------------------------------- */
.certifications-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.cert-card {
    background-color: var(--bg-navy-light);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.cert-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-glow);
}

.cert-image-placeholder {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-dark);
    margin-bottom: 1.5rem;
}

.cert-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.cert-card:hover .cert-image {
    transform: scale(1.05);
}

.cert-svg {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    transition: transform 0.5s ease;
}

.cert-card:hover .cert-svg {
    transform: scale(1.05);
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: var(--transition-smooth);
}

.cert-overlay-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.cert-card:hover .cert-overlay-hover {
    opacity: 1;
}

.overlay-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
}

.cert-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cert-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-cream);
    margin-bottom: 0.5rem;
}

.cert-issuer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.cert-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cert-info button {
    margin-top: auto;
    width: 100%;
}

.certifications-notice {
    margin-top: 3.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.certifications-notice p {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.certifications-notice svg {
    width: 16px;
    height: 16px;
    color: var(--accent-gold);
}

/* --------------------------------------------------
   PAGE 8 — ACHIEVEMENTS & RECOGNITION
-------------------------------------------------- */
.achievements-section {
    background-color: var(--bg-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 5rem;
}

.stat-counter-card {
    background-color: var(--bg-navy-light);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.stat-counter-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: var(--shadow-glow);
}

.stat-number-wrapper {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.stat-suffix {
    font-size: 2.2rem;
    margin-left: 1px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

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

.achievement-card:nth-child(4) {
    grid-column: 2;
}

.achievement-card {
    background-color: var(--bg-navy-light);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.achievement-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-glow);
}

.ach-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.04) 0%, rgba(0,0,0,0) 50%);
    pointer-events: none;
}

.ach-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.ach-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.08);
    padding: 0.4rem;
    border-radius: 8px;
    box-sizing: content-box;
    transition: var(--transition-bounce);
}

.achievement-card:hover .ach-icon {
    transform: scale(1.15);
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

.ach-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-cream);
}

.ach-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: justify;
}

/* --------------------------------------------------
   PAGE 9 — CONTACT
-------------------------------------------------- */
.contact-section {
    background-color: var(--bg-navy);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: stretch;
    margin-top: 2rem;
}

/* Left Column: White/Cream Card */
.contact-form-container {
    display: flex;
}

.contact-form-card {
    background-color: var(--text-cream-light);
    color: var(--bg-navy);
    padding: 3.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--bg-navy);
    margin-bottom: 3rem;
    position: relative;
}

.contact-form-card h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--accent-gold);
    margin-top: 0.5rem;
}

/* Floating label inputs */
.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(10, 25, 47, 0.35);
    padding: 0.7rem 0;
    font-family: var(--font-inter);
    font-size: 1rem;
    color: var(--bg-navy);
    outline: none;
}

textarea.form-control {
    resize: none;
}

.form-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.form-control:focus ~ .form-underline {
    width: 100%;
}

.floating-label {
    position: absolute;
    top: 0.7rem;
    left: 0;
    color: rgba(10, 25, 47, 0.75);
    pointer-events: none;
    transition: var(--transition-snap);
    font-weight: 600;
}

.form-control:focus ~ .floating-label,
.form-control:not(:placeholder-shown) ~ .floating-label {
    top: -1.2rem;
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 700;
}

/* Shimmer Send Button */
.btn-submit {
    width: 100%;
    margin-top: 1rem;
    background-color: var(--bg-navy);
    color: var(--text-cream-light);
    border: none;
}

.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

.shimmer-btn:hover::after {
    left: 130%;
}

.shimmer-btn:hover {
    background-color: var(--bg-navy-light);
    color: var(--accent-gold);
    box-shadow: 0 8px 25px rgba(10, 25, 47, 0.25);
    transform: translateY(-2px);
}

.form-feedback {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-feedback.success {
    color: #4BB543;
}

.form-feedback.error {
    color: #FF3333;
}

/* Right Column: Navy Info Panel */
.contact-info-panel {
    background-color: var(--bg-navy-light);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 3.5rem;
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
}

.info-content {
    width: 100%;
}

.contact-info-panel h3 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-cream);
    margin-bottom: 3rem;
    position: relative;
}

.contact-info-panel h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--accent-gold);
    margin-top: 0.5rem;
}

.contact-rows-list {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-row:hover {
    transform: translateX(10px);
}

.info-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.15);
    flex-shrink: 0;
}

.contact-row:hover .info-icon-wrapper {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    border-color: var(--accent-gold);
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.info-val {
    font-size: 1rem;
    color: var(--text-cream);
    font-weight: 500;
    word-break: break-all;
}

.contact-row a.info-val:hover {
    color: var(--accent-gold);
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.footer-section {
    background-color: var(--bg-dark);
    padding: 4.5rem 0 2.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    color: var(--text-cream);
}

.footer-grid-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: flex-start;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Col 1 (Left): Logo + Social Icons */
.footer-col-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
    justify-self: start;
}

.footer-logo-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.footer-logo-link:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

.footer-logo-img {
    height: 145px !important;
    max-height: 145px !important;
    width: auto !important;
    max-width: 160px !important;
    object-fit: contain;
    display: block;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 0.2rem;
    width: 100%;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background-color: var(--bg-navy-light);
    color: var(--text-cream);
    transition: var(--transition-bounce);
}

.footer-socials a:hover {
    color: var(--bg-dark);
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.45);
    transform: translateY(-3px) scale(1.08);
}

/* Col 2 (Middle): Quick Links */
.footer-col-middle {
    text-align: left;
    justify-self: center;
}

.footer-col-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

.col-title-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-gold);
}

.footer-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(115px, 1fr));
    gap: 0.75rem 1.6rem;
}

.footer-quick-links li a {
    color: var(--text-muted);
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.link-icon {
    width: 13px;
    height: 13px;
    color: var(--accent-gold);
    transition: transform 0.25s ease;
}

.footer-quick-links li a:hover {
    color: var(--accent-gold);
    transform: translateX(4px);
}

.footer-quick-links li a:hover .link-icon {
    transform: translateX(3px);
}

/* Col 3 (Right): Pankaj Kumar profile centered internally, positioned on right */
.footer-col-right {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    justify-self: end;
    max-width: 360px;
}

.footer-profile-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-cream);
    letter-spacing: 0.5px;
    margin: 0;
    text-align: center;
}

.footer-profile-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

.footer-profile-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-top: 0.4rem;
    text-align: center;
}

/* Footer Copyright */
.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* --------------------------------------------------
   ANIMATION & INTERSECTION OBSERVER STYLES
-------------------------------------------------- */

/* Defaults for Observer animations */
.reveal-slide-left,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-cascade > *,
.reveal-drop,
.animate-item {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Observer active class trigger */
.active-animation {
    opacity: 1 !important;
    transform: none !important;
}

/* Hero Sequential Entrance */
.hero-section .animate-item {
    transform: translateY(30px);
}

.hero-section.active-animation .animate-item {
    opacity: 1;
    transform: translateY(0);
}

/* Delays for Hero Section items */
.hero-section.active-animation .animate-item:nth-child(1) { transition-delay: 0.1s; }
.hero-section.active-animation .animate-item:nth-child(2) { transition-delay: 0.2s; }
.hero-section.active-animation .animate-item:nth-child(3) { transition-delay: 0.3s; }
.hero-section.active-animation .animate-item:nth-child(4) { transition-delay: 0.4s; }
.hero-section.active-animation .animate-item:nth-child(5) { transition-delay: 0.5s; }
.hero-section.active-animation .animate-item:nth-child(6) { transition-delay: 0.6s; }

/* About image slide from left & shadow bloom */
.about-section .reveal-slide-left {
    transform: translateX(-80px);
}

.about-section.active-animation .bloom-shadow {
    animation: shadowBloom 2s infinite alternate ease-in-out;
}

@keyframes shadowBloom {
    0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
    100% { box-shadow: var(--shadow-bloom); }
}

/* Mission & Vision flips trigger spacing */
.about-section.active-animation .vision-card {
    transition-delay: 0.2s;
}

/* About buttons stagger */
.reveal-stagger .nav-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.active-animation .reveal-stagger .nav-btn {
    opacity: 1;
    transform: translateY(0);
}

.active-animation .reveal-stagger .nav-btn:nth-child(1) { transition-delay: 0.4s; }
.active-animation .reveal-stagger .nav-btn:nth-child(2) { transition-delay: 0.5s; }
.active-animation .reveal-stagger .nav-btn:nth-child(3) { transition-delay: 0.6s; }
.active-animation .reveal-stagger .nav-btn:nth-child(4) { transition-delay: 0.7s; }
.active-animation .reveal-stagger .nav-btn:nth-child(5) { transition-delay: 0.8s; }

/* Work Experience Alternating Entrance */
.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

/* Education Drop from Above with slight rotation */
.reveal-drop {
    transform: translateY(-80px) rotate(-3deg);
}

/* Projects panel blur-to-sharp & slide */
.projects-section .reveal-slide-left {
    transform: translateX(-60px);
    filter: blur(8px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.25, 0.8, 0.25, 1), filter 1s ease;
}

.projects-section .reveal-slide-left.active-animation {
    filter: blur(0);
}

/* Project Outcome items sequence delay */
.project-card .outcome-list li {
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card.active-animation .outcome-list li {
    opacity: 1;
    transform: translateX(0);
}

.project-card.active-animation .outcome-list li:nth-child(1) { transition-delay: 0.2s; }
.project-card.active-animation .outcome-list li:nth-child(2) { transition-delay: 0.3s; }
.project-card.active-animation .outcome-list li:nth-child(3) { transition-delay: 0.4s; }
.project-card.active-animation .outcome-list li:nth-child(4) { transition-delay: 0.5s; }
.project-card.active-animation .outcome-list li:nth-child(5) { transition-delay: 0.6s; }
.project-card.active-animation .outcome-list li:nth-child(6) { transition-delay: 0.7s; }
.project-card.active-animation .outcome-list li:nth-child(7) { transition-delay: 0.8s; }
.project-card.active-animation .outcome-list li:nth-child(8) { transition-delay: 0.9s; }

/* Project Tech pills bounce in */
.project-card .tech-pill {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.project-card.active-animation .tech-pill {
    opacity: 1;
    transform: scale(1);
}

.project-card.active-animation .tech-pill:nth-child(1) { transition-delay: 0.4s; }
.project-card.active-animation .tech-pill:nth-child(2) { transition-delay: 0.45s; }
.project-card.active-animation .tech-pill:nth-child(3) { transition-delay: 0.5s; }
.project-card.active-animation .tech-pill:nth-child(4) { transition-delay: 0.55s; }
.project-card.active-animation .tech-pill:nth-child(5) { transition-delay: 0.6s; }

/* Skills scale entrance */
.reveal-scale {
    transform: scale(0.85);
}

/* Certifications vertical cascade */
.reveal-cascade .cert-card {
    opacity: 0;
    transform: translateY(40px) rotate(-1.5deg);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-cascade.active-animation .cert-card {
    opacity: 1;
    transform: translateY(0) rotate(var(--rot, 0deg));
}

.reveal-cascade.active-animation .cert-card:nth-child(1) { --rot: -1deg; transition-delay: 0.1s; }
.reveal-cascade.active-animation .cert-card:nth-child(2) { --rot: 1deg; transition-delay: 0.25s; }
.reveal-cascade.active-animation .cert-card:nth-child(3) { --rot: -0.5deg; transition-delay: 0.4s; }

/* Contact form fields animate sequentially */
.contact-form-card .form-group {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact-form-container.active-animation .form-group {
    opacity: 1;
    transform: translateY(0);
}

.contact-form-container.active-animation .form-group:nth-child(1) { transition-delay: 0.1s; }
.contact-form-container.active-animation .form-group:nth-child(2) { transition-delay: 0.2s; }
.contact-form-container.active-animation .form-group:nth-child(3) { transition-delay: 0.3s; }
.contact-form-container.active-animation .form-group:nth-child(4) { transition-delay: 0.4s; }

/* --------------------------------------------------
   RESPONSIVE DESIGN
-------------------------------------------------- */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .about-grid {
        gap: 3rem;
    }
    
    .projects-grid {
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-grid {
        gap: 2.5rem;
    }

    .achievements-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .achievement-card:nth-child(4) {
        grid-column: auto;
    }

    .footer-grid-3col {
        grid-template-columns: 1fr 1.2fr;
        gap: 2.5rem;
    }

    .footer-col-middle {
        justify-self: start;
    }

    .footer-col-right {
        grid-column: span 2;
        justify-self: center;
        text-align: center;
        align-items: center;
        max-width: 480px;
    }

    .footer-profile-name,
    .footer-profile-role,
    .footer-profile-desc {
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Navigation Hamburger */
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    /* hamburger menu toggle styling active */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero layout */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-text-content {
        order: 2;
    }
    
    .hero-image-wrapper {
        order: 1;
    }
    
    .hero-intro {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-socials {
        justify-content: center;
    }
    
    /* Interactive Book Responsive Layout (<= 768px) */
    .interactive-book-wrapper {
        padding: 0 10px;
        perspective: 2500px;
        overflow-x: hidden;
        margin-top: 1.2rem;
        max-width: 520px;
    }
    
    .interactive-book {
        height: 460px;
        min-height: 460px;
        border-radius: 14px;
        width: 100%;
        max-width: 100%;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
        overflow: hidden;
    }

    .book-pages-wrapper {
        height: 460px;
        min-height: 460px;
        border-radius: 14px;
        width: 100%;
        overflow: hidden;
    }
    
    .book-side-tabs {
        display: none; /* Avoid horizontal tab clipping and screen overflow */
    }

    .book-spiral-spine {
        left: 6px;
        top: 12px;
        bottom: 12px;
        width: 24px;
    }

    .spiral-ring {
        width: 24px;
        height: 15px;
    }

    .ring-metal {
        width: 15px;
        height: 7.5px;
    }

    .ring-hole {
        width: 3.5px;
        height: 7px;
    }

    .book-page {
        padding-left: 32px;
        transform-origin: 32px center;
        width: 100%;
        height: 100%;
    }

    .book-page-cover {
        padding-left: 0;
    }

    .cover-media-container {
        min-height: 460px;
        height: 460px;
        border-radius: 14px;
    }

    .cover-profile-circle-wrapper {
        width: 56px;
        height: 56px;
        top: 26%;
        left: 48.5%;
    }
    
    .page-inner {
        padding: 0.95rem 1rem 0.75rem 0.85rem;
        margin: 3px 4px 3px 2px;
        border-radius: 10px;
        width: calc(100% - 6px);
        height: calc(100% - 6px);
        min-height: 454px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .chapter-bullet-list {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        gap: 0.35rem;
        margin: 0.25rem 0;
    }

    .chapter-bullet-item {
        font-size: 0.77rem;
        line-height: 1.35;
        gap: 0.42rem;
        display: flex;
        align-items: flex-start;
    }

    .golden-bullet {
        font-size: 0.88rem;
        line-height: 1.2;
    }

    .book-index-list {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        gap: 0.22rem;
        margin: 0.25rem 0;
    }

    .index-item {
        padding: 0.32rem 0.68rem;
        border-radius: 6px;
    }

    .index-num {
        font-size: 0.74rem;
        padding: 1px 5px;
        margin-right: 0.45rem;
    }

    .index-title {
        font-size: 0.80rem;
    }

    .book-page-footer {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.35rem !important;
        padding-top: 0.45rem !important;
        margin-top: auto !important;
        border-top: 1px solid rgba(212, 175, 55, 0.22) !important;
        width: 100% !important;
        flex-shrink: 0 !important;
    }

    .book-nav-btn {
        padding: 0.32rem 0.65rem !important;
        font-size: 0.72rem !important;
        gap: 0.22rem !important;
        border-radius: 16px !important;
    }

    .book-index-quick-btn {
        padding: 0.32rem 0.60rem !important;
        font-size: 0.70rem !important;
    }

    .book-page-num {
        font-size: 0.70rem !important;
    }
    
    /* Experience Timeline layout */
    .timeline {
        display: block;
    }

    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 3.5rem;
        padding-right: 0 !important;
        margin-bottom: 2rem;
    }
    
    .timeline-item.reveal-left {
        left: 0;
        padding-left: 3.5rem;
        padding-right: 0 !important;
    }
    
    .timeline-item.reveal-right {
        left: 0;
        padding-left: 3.5rem;
        padding-right: 0 !important;
    }
    
    .timeline-dot {
        left: 12px !important;
        right: auto !important;
        top: 2.5rem !important;
        bottom: auto !important;
    }

    .timeline-card {
        height: auto;
        padding: 1.4rem 1.5rem;
    }
    
    /* Projects layout */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Achievements layout */
    .achievements-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .achievement-card:nth-child(4) {
        grid-column: auto;
    }
    
    /* Contact layout */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-card {
        padding: 2.0rem;
    }
    
    .contact-info-panel {
        padding: 2.0rem;
    }

    /* Modal Mobile Responsiveness */
    .project-modal-backdrop {
        padding: 1rem;
    }
    
    .project-modal-content {
        padding: 1.8rem;
        max-height: 90vh;
        border-radius: 16px;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    /* Footer Mobile Responsiveness */
    .footer-grid-3col {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-col-right {
        grid-column: span 1;
    }

    .footer-col-left {
        align-items: center;
        text-align: center;
        justify-self: start;
        max-width: 100%;
    }

    .footer-col-middle {
        text-align: left;
        align-items: flex-start;
        justify-self: start;
        max-width: 100%;
    }

    .footer-col-right {
        text-align: center;
        align-items: center;
        justify-self: center;
        max-width: 100%;
    }

    .footer-profile-name,
    .footer-profile-role,
    .footer-profile-desc {
        text-align: center;
    }

    .footer-logo-img {
        height: 125px !important;
        max-height: 125px !important;
    }

    .footer-quick-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .image-inner {
        width: 240px;
        height: 240px;
    }
    
    .bloom-shadow {
        width: 240px;
        height: 240px;
    }
    
    .education-card {
        padding: 1.8rem;
    }
    
    .edu-degree {
        font-size: 1.4rem;
    }
    
    .edu-institution {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .project-modal-content {
        padding: 1.4rem;
        border-radius: 14px;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-close-btn {
        top: 0.8rem;
        right: 0.8rem;
        width: 32px;
        height: 32px;
    }

    .btn-details-modal,
    .btn-live-project {
        font-size: 0.84rem;
        padding: 0.7rem 1rem;
    }

    .footer-logo-img {
        height: 115px !important;
        max-height: 115px !important;
    }

    /* Interactive Book Mobile (< 480px) */
    .interactive-book-wrapper {
        padding: 0 4px;
        margin-top: 1rem;
        overflow-x: hidden;
    }

    .interactive-book {
        height: 460px;
        min-height: 460px;
        border-radius: 14px;
    }

    .book-pages-wrapper {
        height: 460px;
        min-height: 460px;
        border-radius: 14px;
    }

    .cover-media-container {
        min-height: 460px;
        height: 460px;
        border-radius: 14px;
    }

    .cover-profile-circle-wrapper {
        width: 52px;
        height: 52px;
        top: 26.5%;
        left: 49.5%;
    }

    .book-cover-open-btn {
        bottom: 16px;
        right: 16px;
        padding: 0.55rem 1.15rem;
        font-size: 0.82rem;
    }

    .page-inner {
        padding: 0.85rem 0.85rem 0.65rem 0.75rem;
        min-height: 454px;
        height: calc(100% - 6px);
        margin: 3px;
        border-radius: 10px;
    }

    .author-name, .chapter-main-title {
        font-size: 1.15rem;
    }

    .author-currently-box {
        padding: 0.35rem 0.55rem;
        margin-bottom: 0.35rem;
    }

    .author-currently-box .currently-grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        text-align: left;
    }

    .curr-col p {
        font-size: 0.76rem;
    }

    .curr-col .curr-sub {
        font-size: 0.68rem;
    }

    .author-signature {
        font-size: 1.35rem;
    }

    .chapter-bullet-list {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        gap: 0.30rem;
        margin: 0.20rem 0;
    }

    .chapter-bullet-item {
        font-size: 0.76rem;
        line-height: 1.34;
        gap: 0.40rem;
    }

    .book-index-list {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        gap: 0.20rem;
        margin: 0.20rem 0;
    }

    .index-item {
        padding: 0.30rem 0.65rem;
    }

    .index-num {
        font-size: 0.72rem;
    }

    .index-title {
        font-size: 0.78rem;
    }

    .book-page-footer {
        padding-top: 0.40rem !important;
    }

    .book-nav-btn {
        padding: 0.30rem 0.60rem !important;
        font-size: 0.70rem !important;
    }

    .book-index-quick-btn {
        padding: 0.30rem 0.55rem !important;
        font-size: 0.68rem !important;
    }

    .book-page-num {
        font-size: 0.68rem !important;
    }
}

/* Contact Button Loading Spinner */
.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: btnSpin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}
