/* ==========================================================================
   Dr. Prakash Kumar Singh Birthday Website Stylesheet
   Exact Match for Reference Design Specification
   Palette:
     Background:       #F7F0E5
     Primary text:     #2D211D
     Birthday red:     #A93227
     Secondary beige:  #E8D8C5
     Muted brown:      #75665C
     White:            #FFFDF8
   ========================================================================== */

:root {
    --bg-main: #F7F0E5;
    --text-primary: #2D211D;
    --birthday-red: #A93227;
    --birthday-red-hover: #8D271E;
    --secondary-beige: #E8D8C5;
    --muted-brown: #75665C;
    --paper-white: #FFFDF8;

    --font-heading: 'Playfair Display', serif;
    --font-script: 'Caveat', cursive;
    --font-body: 'DM Sans', sans-serif;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body.editorial-theme {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Canvas overlay for confetti & hearts */
#fireworksCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
}

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

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

/* Header Navigation (Minimal) */
.editorial-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.top-left-handwritten {
    font-family: var(--font-script);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.center-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-top: 6px;
}

.nav-item {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--muted-brown);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: var(--transition-smooth);
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
}

.nav-item .red-dot {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--birthday-red);
    border-radius: 50%;
}

.top-right-music {
    margin-top: 2px;
}

.music-pill-btn {
    background: var(--paper-white);
    border: 1px solid var(--secondary-beige);
    padding: 6px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(45, 33, 29, 0.05);
    transition: var(--transition-smooth);
}

.music-pill-btn:hover {
    border-color: var(--birthday-red);
}

.music-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--secondary-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-primary);
}

.status-badge {
    background: var(--birthday-red);
    color: var(--paper-white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

/* HERO SECTION (First Viewport 1536 x 1024 context) */
.hero-viewport {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.hero-viewport::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assetes/collage.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12; /* Subtle low opacity background */
    pointer-events: none;
    z-index: 1;
}

.hero-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 48% 52%;
    gap: 40px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* HERO LEFT SIDE */
.hero-left {
    display: flex;
    flex-direction: column;
}

.top-handwritten-wish {
    font-family: var(--font-script);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.small-heart {
    color: var(--birthday-red);
    font-size: 1.2rem;
    margin-left: 4px;
}

.main-heading {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 4.8vw, 4.6rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.person-name {
    color: var(--birthday-red);
    display: inline-block;
}

.personal-subheading {
    margin-bottom: 28px;
}

.role-line {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.wish-line {
    font-size: 1.05rem;
    color: var(--muted-brown);
}

/* Card + CTA Row */
.card-cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.info-card {
    background: var(--paper-white);
    border: 1px solid var(--secondary-beige);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    box-shadow: 0 4px 15px rgba(45, 33, 29, 0.04);
    max-width: 320px;
}

.cake-doodle {
    font-size: 1.8rem;
}

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

.card-line1 {
    font-size: 0.78rem;
    color: var(--muted-brown);
}

.card-emphasis {
    font-family: var(--font-script);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--birthday-red);
    line-height: 1.1;
    margin: 2px 0;
}

.card-line2 {
    font-size: 0.75rem;
    color: var(--muted-brown);
}

.card-corner-heart {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-family: var(--font-script);
    color: var(--birthday-red);
    font-size: 1rem;
}

.cta-button-wrapper {
    position: relative;
}

.red-cta-btn {
    background: var(--birthday-red);
    color: var(--paper-white);
    border: none;
    outline: none;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    padding: 16px 28px;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(169, 50, 39, 0.25);
    transition: var(--transition-smooth);
    text-align: left;
    line-height: 1.2;
}

.red-cta-btn:hover {
    background: var(--birthday-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(169, 50, 39, 0.35);
}

.red-cta-btn.big-btn {
    font-size: 1.3rem;
    padding: 18px 40px;
    text-align: center;
    border-radius: 40px;
}

.doodle-underline {
    width: 60px;
    height: 3px;
    background: var(--birthday-red);
    opacity: 0.5;
    border-radius: 2px;
    margin-top: 6px;
}

/* Secret Interaction */
.secret-interaction-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.secret-text {
    font-family: var(--font-script);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--muted-brown);
}

.gift-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--paper-white);
    border: 1px solid var(--secondary-beige);
    color: var(--birthday-red);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gift-icon-btn:hover {
    transform: scale(1.1) rotate(8deg);
    background: var(--secondary-beige);
}

.secret-message-box {
    display: none;
    background: var(--paper-white);
    border: 1.5px dashed var(--birthday-red);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
    position: relative;
    animation: fadeIn 0.4s ease;
}

.secret-message-box p {
    font-family: var(--font-script);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--birthday-red);
}

.close-secret {
    position: absolute;
    top: 6px;
    right: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--muted-brown);
}

.hero-quote-block {
    margin-top: 10px;
}

.quote-text {
    font-family: var(--font-script);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--text-primary);
}

.red-handdrawn-line {
    width: 140px;
    height: 3px;
    background: var(--birthday-red);
    border-radius: 2px;
    margin-top: 4px;
    opacity: 0.7;
}

/* HERO RIGHT SIDE: Full Main Image & European Storefront Scene */
.hero-right {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-balloons {
    position: absolute;
    top: -45px;
    right: 30px;
    z-index: 25;
    display: flex;
    gap: -10px;
}

.balloon {
    width: 55px;
    height: 72px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    position: relative;
    animation: floatBalloon 4s ease-in-out infinite alternate;
    box-shadow: inset -4px -4px 8px rgba(0,0,0,0.1);
}

.balloon-cream { background: #E8D8C5; animation-delay: 0s; }
.balloon-red { background: var(--birthday-red); margin-left: -12px; margin-top: -18px; animation-delay: 1s; }
.balloon-peach { background: #D96B5A; margin-left: -12px; animation-delay: 2s; }

@keyframes floatBalloon {
    0% { transform: translateY(0); }
    100% { transform: translateY(-14px); }
}

.illustration-container {
    width: 100%;
    max-width: 640px;
    position: relative;
}

.decor-birds {
    position: absolute;
    top: -24px;
    left: 20px;
    z-index: 5;
}

.building-frame {
    background: #FFFDF8;
    border: 2px solid var(--text-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(45, 33, 29, 0.12);
    position: relative;
}

.red-storefront {
    background: var(--birthday-red);
    padding: 36px 24px 24px;
    position: relative;
    border-bottom: 2px solid var(--text-primary);
}

/* Awning */
.striped-awning {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 28px;
    display: flex;
    z-index: 10;
}

.stripe {
    flex: 1;
    height: 100%;
}

.stripe.red { background: var(--birthday-red-hover); }
.stripe.cream { background: var(--paper-white); }

/* Hanging Store Sign */
.store-hanging-sign {
    position: absolute;
    top: 40px;
    right: 20px;
    z-index: 20;
}

.sign-board {
    background: var(--paper-white);
    border: 2px solid var(--text-primary);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: var(--font-script);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    text-align: center;
    box-shadow: 4px 4px 0 rgba(45, 33, 29, 0.2);
}

/* FULL Main Image Container */
.store-window {
    background: var(--paper-white);
    border: 2px solid var(--text-primary);
    border-radius: 12px;
    padding: 8px;
    width: 100%;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.portrait-photo-container {
    width: 100%;
    height: 480px; /* Full size height display */
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    background: #e2d8ca;
}

.hod-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    transition: var(--transition-smooth);
}

.portrait-photo-container:hover .hod-portrait-img {
    transform: scale(1.02);
}

.photo-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(45, 33, 29, 0.95), rgba(45, 33, 29, 0.7) 70%, transparent);
    color: #fff;
    padding: 16px 20px 12px;
    text-align: center;
}

.photo-caption-overlay span {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    display: block;
    letter-spacing: 0.5px;
}

.photo-caption-overlay small {
    font-size: 0.82rem;
    color: var(--secondary-beige);
    font-weight: 600;
}

.glass-door {
    width: 80px;
    height: 130px;
    border: 2px solid var(--text-primary);
    background: rgba(255, 253, 248, 0.4);
    position: absolute;
    bottom: 30px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    backdrop-filter: blur(2px);
    z-index: 15;
}

.door-handle {
    width: 6px;
    height: 20px;
    background: var(--text-primary);
    position: absolute;
    left: 8px;
}

.welcome-wreath { font-size: 1.6rem; }

/* Street details */
.street-details {
    background: #E8D8C5;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.sidewalk-blackboard {
    background: var(--text-primary);
    border: 3px solid #75665C;
    border-radius: 6px;
    padding: 10px 14px;
    color: var(--paper-white);
    font-family: var(--font-script);
    font-size: 1.25rem;
    line-height: 1.2;
    text-align: center;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.street-bicycle {
    font-size: 2.2rem;
    color: var(--text-primary);
}

.street-lamp {
    width: 8px;
    height: 60px;
    background: var(--text-primary);
    position: relative;
}

.lamp-light {
    width: 20px;
    height: 20px;
    background: #F59E0B;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    left: -6px;
    box-shadow: 0 0 15px #F59E0B;
}

/* HERO FOOTER RIBBON */
.hero-footer-ribbon {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 48px 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--secondary-beige);
    font-size: 0.9rem;
    color: var(--muted-brown);
    position: relative;
    z-index: 2;
}

.ribbon-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ribbon-item.center {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--text-primary);
}

.ribbon-item.right {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
}

.red-heart { color: var(--birthday-red); }

/* SECOND SECTION: Message */
.editorial-section {
    padding: 100px 0;
}

.section-tag {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--birthday-red);
    font-weight: 700;
    margin-bottom: 8px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.handwritten-message-box {
    max-width: 850px;
    margin: 40px auto 0;
    background: var(--paper-white);
    border: 1px solid var(--secondary-beige);
    border-radius: 20px;
    padding: 48px;
    position: relative;
    box-shadow: 0 10px 30px rgba(45, 33, 29, 0.04);
}

.large-handwritten-text {
    font-family: var(--font-script);
    font-size: 2.1rem;
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 600;
}

.doodle-star {
    position: absolute;
    font-size: 1.5rem;
    color: #F59E0B;
}

.star-1 { top: 20px; left: 20px; }
.star-2 { bottom: 20px; right: 20px; }

.small-decorative-hearts {
    font-family: var(--font-script);
    color: var(--birthday-red);
    font-size: 1.5rem;
    margin-top: 16px;
}

/* MEMORY SECTION */
.polaroid-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.polaroid-card {
    background: var(--paper-white);
    border: 1px solid var(--secondary-beige);
    border-radius: 8px;
    padding: 14px 14px 20px;
    box-shadow: 0 8px 20px rgba(45, 33, 29, 0.05);
    position: relative;
    transition: var(--transition-smooth);
}

.polaroid-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.rot-1 { transform: rotate(-2deg); }
.rot-2 { transform: rotate(1.5deg); }
.rot-3 { transform: rotate(-1deg); }
.rot-4 { transform: rotate(2deg); }

.tape-detail {
    width: 80px;
    height: 24px;
    background: rgba(232, 216, 197, 0.7);
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.polaroid-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 4px;
    background: #E8D8C5;
}

.polaroid-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.stat-polaroid-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.cit-number, .exp-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--birthday-red);
}

.cit-label, .exp-label {
    font-size: 0.82rem;
    color: var(--muted-brown);
    margin-top: 4px;
}

.polaroid-caption {
    font-family: var(--font-script);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-top: 14px;
}

/* SURPRISE SECTION & MODAL */
.large-surprise-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.surprise-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(45, 33, 29, 0.75);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 24px;
}

.surprise-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--paper-white);
    border: 2px solid var(--birthday-red);
    border-radius: 24px;
    padding: 48px;
    max-width: 550px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--muted-brown);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--birthday-red);
}

.modal-divider {
    width: 60px;
    height: 3px;
    background: var(--birthday-red);
    margin: 16px auto;
    border-radius: 2px;
}

.modal-body-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-right {
        order: 2;
    }

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

@media (max-width: 768px) {
    .header-container { padding: 0 20px; }
    .center-nav { display: none; }
    .main-heading { font-size: 2.8rem; }
    .card-cta-row { flex-direction: column; align-items: flex-start; }
    .polaroid-grid { grid-template-columns: 1fr; }
}
