/* ===== CSS Variables ===== */
:root {
    --color-primary: #1c1c1c;
    --color-secondary: #6b5a45;
    --color-accent: #a08060;
    --color-light: #fdfcfa;
    --color-dark: #0a0a0a;
    --color-text: #2d2d2d;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-border: #e5e0d8;
    --color-gold: #b8975c;
    --color-cream: #f7f5f0;
    --color-ivory: #fffef9;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 50px rgba(0, 0, 0, 0.1);
    --shadow-elegant: 0 20px 60px rgba(0, 0, 0, 0.08);
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-ivory);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
}

/* Elegant scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--color-border);
    transition: var(--transition-smooth);
}

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

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.nav-tagline {
    font-family: var(--font-serif);
    font-size: 0.7rem;
    font-style: italic;
    color: var(--color-text-light);
    letter-spacing: 0.01em;
    opacity: 0.85;
}

.lang-toggle {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--color-light);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    animation: langToggleGlow 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(184, 134, 11, 0.3);
}

@keyframes langToggleGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(184, 134, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(184, 134, 11, 0.6), 0 0 30px rgba(184, 134, 11, 0.3);
    }
}

.lang-btn {
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    color: var(--color-primary);
}

.lang-btn.active {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.lang-gu {
    font-family: 'Noto Sans Gujarati', var(--font-sans);
}

body.lang-gu .hero-title,
body.lang-gu .hero-subtitle,
body.lang-gu .section-title,
body.lang-gu .bio-chapter h3,
body.lang-gu .legacy-card h3,
body.lang-gu .legacy-quote blockquote,
body.lang-gu .footer-name {
    font-family: 'Noto Sans Gujarati', var(--font-serif);
}

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

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: var(--transition-smooth);
}

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

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-smooth);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    background: linear-gradient(180deg, #f9f7f4 0%, #f3efe8 50%, #ebe5db 100%);
    padding: 90px 24px 60px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -15%;
    bottom: 0;
    width: 60%;
    background-image: url('Pics/top.jpeg');
    background-size: cover;
    background-position: 95% 75%;
    background-repeat: no-repeat;
    filter: grayscale(100%) contrast(1.1);
    opacity: 0.5;
    z-index: 0;
    mask-image: linear-gradient(to left, black 40%, rgba(0,0,0,0.5) 60%, transparent 80%),
                linear-gradient(to top, transparent 0%, rgba(0,0,0,0.3) 15%, black 35%);
    -webkit-mask-image: linear-gradient(to left, black 40%, rgba(0,0,0,0.5) 60%, transparent 80%),
                        linear-gradient(to top, transparent 0%, rgba(0,0,0,0.3) 15%, black 35%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

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

.hero > * {
    position: relative;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0.4;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 100% 60% at 50% 100%, rgba(184, 151, 92, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.5) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-image-frame {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(145deg, var(--color-gold), var(--color-secondary));
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(184, 151, 92, 0.2), transparent 60%);
    z-index: -1;
}

.hero-image-frame::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-secondary);
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.hero-dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.date-placeholder {
    padding: 8px 16px;
    background: var(--color-white);
    border-radius: 4px;
    border: 1px dashed var(--color-border);
}

.date-actual {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.date-separator {
    color: var(--color-gold);
    font-size: 1.5rem;
}

.hero-quotes {
    display: none;
}

.hero-quote-block {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}

.hero-quote-block:first-child {
    border-right: 1px solid rgba(184, 151, 92, 0.2);
}

.hero-quote-sanskrit {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}

.hero-quote-pronunciation {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-secondary);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.hero-quote {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 8px;
    font-weight: 400;
    line-height: 1.5;
}

.hero-quote-source {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.hero-dada-note {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-secondary);
    margin-top: 16px;
    padding-top: 0;
    border-top: none;
}

/* ===== Funeral Banner (Hero) ===== */
.funeral-banner {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.08), rgba(184, 151, 92, 0.12));
    border: 1px solid rgba(184, 151, 92, 0.3);
    border-radius: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.funeral-banner.hidden {
    display: none;
}

.funeral-banner-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 16px;
    text-align: center;
}

.funeral-banner-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.funeral-banner-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.funeral-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    position: relative;
}

.funeral-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-gold);
}

.funeral-card-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    color: var(--color-gold);
}

.funeral-card-icon svg {
    width: 100%;
    height: 100%;
}

.funeral-card h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.funeral-date {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 2px;
}

.funeral-time {
    font-size: 0.8rem;
    color: var(--color-text);
    margin-bottom: 4px;
}

.funeral-location {
    font-size: 0.75rem;
    color: var(--color-text-light);
    line-height: 1.3;
    margin-bottom: 8px;
}

.funeral-card-link {
    font-size: 0.7rem;
    color: var(--color-gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
    margin-top: 8px;
}

.funeral-stream-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #c4302b;
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.funeral-stream-btn:hover {
    background: #a02520;
    transform: scale(1.05);
}

.funeral-streaming-top {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
}

/* ===== Funeral Modal ===== */
.funeral-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.funeral-modal.active {
    opacity: 1;
    visibility: visible;
}

.funeral-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.funeral-modal-content {
    position: relative;
    background: var(--color-white);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.funeral-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--color-light);
    border: none;
    border-radius: 50%;
    color: var(--color-text);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.funeral-modal-close:hover {
    background: var(--color-accent);
    color: white;
}

.funeral-modal-header {
    padding: 32px 32px 24px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(180deg, var(--color-light) 0%, var(--color-white) 100%);
    border-radius: 20px 20px 0 0;
}

.funeral-modal-header h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.funeral-modal-date {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-gold);
    margin-bottom: 4px;
}

.funeral-modal-location {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.funeral-modal-subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    font-style: italic;
}

.funeral-modal-body {
    padding: 24px 32px 32px;
}

/* Funeral Schedule */
.funeral-schedule {
    margin-bottom: 24px;
}

.funeral-event {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.funeral-event:last-child {
    border-bottom: none;
}

.funeral-event-time {
    min-width: 90px;
    text-align: right;
}

.time-est {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.time-ist {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 2px;
}

.funeral-event-details h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.funeral-event-details p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.funeral-event-details ul {
    margin-top: 8px;
    padding-left: 20px;
}

.funeral-event-details li {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

/* Streaming Section */
.funeral-streaming {
    background: var(--color-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.funeral-streaming h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.funeral-streaming p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.streaming-link {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
    color: white;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.streaming-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.3);
}

/* Prarthana Locations */
.prarthana-locations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.prarthana-location {
    background: var(--color-light);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.prarthana-location-flag {
    font-size: 2rem;
    margin-bottom: 12px;
}

.prarthana-location h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.prarthana-venue {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 4px;
}

.prarthana-date {
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 500;
}

.prarthana-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
}

.prarthana-single-location {
    text-align: center;
    padding: 20px;
}

.prarthana-single-location .prarthana-location-flag {
    font-size: 3rem;
    margin-bottom: 16px;
}

.prarthana-single-location .prarthana-date {
    font-size: 1.1rem;
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 16px;
}

.prarthana-single-location .prarthana-note {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 16px 40px;
    }
    
    .hero-image-frame {
        width: 140px;
        height: 140px;
        margin-bottom: 16px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .hero-dates {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .date-actual {
        font-size: 0.85rem;
    }
    
    .date-separator {
        font-size: 1rem;
    }
    
    .hero-dada-note {
        font-size: 0.8rem;
        margin-top: 12px;
    }
    
    .funeral-banner {
        margin-top: 16px;
        padding: 16px;
    }
    
    .funeral-banner-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .funeral-banner-cards {
        gap: 12px;
    }
    
    .funeral-card {
        padding: 12px;
    }
    
    .funeral-card-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 6px;
    }
    
    .funeral-card h4 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .funeral-date {
        font-size: 0.75rem;
    }
    
    .funeral-time {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }
    
    .funeral-location {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }
    
    .funeral-card-link {
        font-size: 0.6rem;
    }
    
    .funeral-stream-btn {
        padding: 6px 12px;
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .funeral-banner-3col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .funeral-banner-cards {
        grid-template-columns: 1fr;
    }
    
    .funeral-modal-content {
        border-radius: 16px;
    }
    
    .funeral-modal-header,
    .funeral-modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .funeral-event {
        flex-direction: column;
        gap: 8px;
    }
    
    .funeral-event-time {
        text-align: left;
        display: flex;
        gap: 12px;
        align-items: baseline;
    }
    
    .prarthana-locations {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-quotes {
        flex-direction: column;
        gap: 24px;
    }
    
    .hero-quote-block:first-child {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 24px;
    }
}

/* ===== Gita Quotes Section ===== */
.gita-quotes-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 700px;
    margin: 40px auto 20px;
    padding: 0 20px;
}

.gita-quote-block {
    text-align: center;
}

.gita-quote-sanskrit {
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 6px;
    font-weight: 500;
}

.gita-quote-pronunciation {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.gita-quote {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 8px;
}

.gita-quote-source {
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 500;
}

@media (max-width: 768px) {
    .gita-quotes-section {
        gap: 25px;
        margin: 30px auto 80px;
    }
    
    .gita-quote-sanskrit {
        font-size: 1.1rem;
    }
    
    .gita-quote {
        font-size: 1rem;
    }
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.scroll-link:hover {
    color: var(--color-gold);
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* ===== Section Styles ===== */
.section {
    padding: 120px 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 400;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.03em;
}

.section-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 0 auto 70px;
    position: relative;
}

.section-divider::before {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.5rem;
    color: var(--color-gold);
    background: var(--color-ivory);
    padding: 0 16px;
}

.biography .section-divider::before {
    background: var(--color-white);
}

/* ===== Biography Section ===== */
.biography {
    background: var(--color-white);
    position: relative;
}

.biography::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 20%, var(--color-border) 50%, transparent 80%);
}

.bio-content {
    max-width: 780px;
    margin: 0 auto;
}

.bio-chapter {
    margin-bottom: 56px;
    padding-left: 36px;
    border-left: 2px solid var(--color-border);
    transition: var(--transition-smooth);
    position: relative;
}

.bio-chapter::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    transition: var(--transition-smooth);
}

.bio-chapter:hover {
    border-left-color: var(--color-gold);
}

.bio-chapter:hover::before {
    background: var(--color-gold);
}

.bio-chapter:last-child {
    margin-bottom: 0;
}

.bio-chapter h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 18px;
    letter-spacing: 0.01em;
}

.bio-chapter p {
    color: var(--color-text);
    line-height: 2;
    font-size: 1.05rem;
}

/* ===== Legacy Section ===== */
.legacy {
    background: linear-gradient(180deg, var(--color-cream) 0%, #ece7df 100%);
    position: relative;
}

.legacy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 20%, var(--color-border) 50%, transparent 80%);
}

.legacy .section-divider::before {
    background: var(--color-cream);
}

.legacy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 80px;
}

.legacy-card {
    background: var(--color-white);
    padding: 44px 32px;
    border-radius: 4px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.legacy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.legacy-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-elegant);
}

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

.legacy-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-cream), var(--color-white));
    border-radius: 50%;
    border: 1px solid var(--color-border);
}

.legacy-icon svg {
    width: 34px;
    height: 34px;
    color: var(--color-gold);
}

.legacy-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 14px;
    letter-spacing: 0.01em;
}

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

.legacy-quote {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.legacy-quote blockquote {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-secondary);
    line-height: 1.7;
    padding: 40px 48px;
    background: var(--color-white);
    border-radius: 4px;
    position: relative;
    border-left: 3px solid var(--color-gold);
    box-shadow: var(--shadow-soft);
}

.legacy-quote blockquote::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 4rem;
    font-family: var(--font-serif);
    color: var(--color-gold);
    opacity: 0.25;
    line-height: 1;
}

/* ===== Gallery Section ===== */
.gallery {
    background: var(--color-white);
    position: relative;
}

.gallery-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
    position: relative;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px;
    }
    
    .gallery-item {
        aspect-ratio: 1;
        border-radius: 4px;
    }
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 2;
}

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

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

.gallery-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-style: italic;
}

.gallery-item {
    display: none;
}

.gallery-item.visible {
    display: block;
}

@media (max-width: 768px) {
    .gallery-item.visible {
        display: block;
    }
}

.gallery-wrapper {
    position: relative;
}

.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.gallery-nav-btn {
    width: 48px;
    height: 48px;
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-accent);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav-btn svg {
    width: 20px;
    height: 20px;
}

.gallery-nav-btn:hover:not(:disabled) {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    transform: scale(1.05);
}

.gallery-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-page-indicator {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-family: var(--font-sans);
    min-width: 60px;
    text-align: center;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.lightbox-image-container {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active .lightbox-image {
    transform: scale(1);
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .lightbox-content {
        padding: 20px;
    }
    
    .lightbox-nav {
        width: 44px;
        height: 44px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

/* ===== Tributes Section ===== */
.tributes {
    background: linear-gradient(180deg, var(--color-light) 0%, #ebe7e1 100%);
}

.tributes-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.tribute-form {
    max-width: 600px;
    margin: 0 auto 60px;
    background: var(--color-white);
    padding: 48px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 115, 85, 0.3);
}

.submit-btn svg {
    width: 18px;
    height: 18px;
}

/* Testimonials Marquee */
.testimonials-marquee {
    overflow: hidden;
    margin: 0 -24px 60px;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.testimonials-track {
    display: flex;
    gap: 24px;
    animation: marquee 32s linear infinite;
    width: max-content;
    align-items: stretch;
}

.testimonial-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}

.testimonial-column-full {
    width: 420px;
}

.testimonial-column-stacked {
    width: 320px;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-column-full .testimonial-card {
    height: 100%;
    min-height: 280px;
}

.testimonial-card-small {
    flex: 1;
    padding: 20px 24px;
}

.testimonial-card-small .testimonial-quote {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.testimonial-card-small .author-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.testimonial-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-secondary) 100%);
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 24px;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -8px;
    font-size: 3rem;
    font-family: var(--font-serif);
    color: var(--color-gold);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.02em;
}

.author-info h4 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.author-info span {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Add Tribute Section */
.add-tribute-section {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 48px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.add-tribute-section h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.add-tribute-section > p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.add-tribute-section .tribute-form {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.add-tribute-section .submit-btn {
    width: 100%;
    justify-content: center;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-feedback {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    display: none;
}

.form-feedback.success {
    display: block;
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-feedback.error {
    display: block;
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* ===== Tributes Grid ===== */
.tributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.tributes-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-light);
    font-style: italic;
    font-size: 1.1rem;
}

.tribute-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tribute-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.tribute-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-accent) 100%);
}

.tribute-quote {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 20px;
}

.tribute-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tribute-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.tribute-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.tribute-info span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Tributes Navigation */
.tributes-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.tributes-nav-btn {
    width: 48px;
    height: 48px;
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-accent);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tributes-nav-btn svg {
    width: 20px;
    height: 20px;
}

.tributes-nav-btn:hover:not(:disabled) {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    transform: scale(1.1);
}

.tributes-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.tributes-page-indicator {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-family: var(--font-sans);
    min-width: 60px;
    text-align: center;
}

@media (max-width: 768px) {
    .tributes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tribute-card {
        padding: 20px;
    }
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, rgba(28, 28, 28, 0.92) 0%, rgba(15, 15, 15, 0.95) 100%),
                url('Pics/bottom.jpeg') center 60% / cover no-repeat;
    color: var(--color-white);
    padding: 100px 0 50px;
    position: relative;
}

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

.footer-content {
    text-align: center;
    margin-bottom: 56px;
}

.footer-memorial h3 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.footer-nickname {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

.footer-message {
    max-width: 520px;
    margin: 0 auto 40px;
}

.footer-message p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.footer-flower {
    display: flex;
    justify-content: center;
}

.footer-flower svg {
    color: var(--color-gold);
    opacity: 0.6;
}

.footer-flower svg {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .legacy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .nav-tagline {
        font-size: 0.55rem;
        max-width: 160px;
        line-height: 1.3;
    }
    
    .lang-toggle {
        order: 2;
        margin-left: auto;
        margin-right: 12px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 32px;
        gap: 24px;
        box-shadow: var(--shadow-medium);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
        order: 3;
    }
    
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 4px;
    }
    
    .hero-image-frame {
        width: 180px;
        height: 180px;
        margin-bottom: 32px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    .hero-dates {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 24px;
    }
    
    .date-actual {
        font-size: 0.9rem;
    }
    
    .date-separator {
        font-size: 1rem;
    }
    
    .hero-quotes {
        flex-direction: column;
        gap: 24px;
        padding: 24px 0;
    }
    
    .hero-quote-block {
        padding: 0 8px;
    }
    
    .hero-quote-block:first-child {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 24px;
    }
    
    .hero-quote-sanskrit {
        font-size: 1.1rem;
    }
    
    .hero-quote-pronunciation {
        font-size: 0.75rem;
    }
    
    .hero-quote {
        font-size: 0.9rem;
    }
    
    .hero-quote-source {
        font-size: 0.75rem;
    }
    
    .hero-dada-note {
        font-size: 0.9rem;
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-indicator span {
        font-size: 0.65rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        padding: 0 16px;
    }
    
    .section-divider {
        margin-bottom: 40px;
    }
    
    .bio-content {
        padding: 0 16px;
    }
    
    .bio-chapter {
        padding-left: 16px;
        margin-bottom: 32px;
    }
    
    .bio-chapter h3 {
        font-size: 1.25rem;
    }
    
    .bio-chapter p {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    
    .legacy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }
    
    .legacy-card {
        padding: 28px 20px;
    }
    
    .legacy-card h3 {
        font-size: 1.1rem;
    }
    
    .legacy-card p {
        font-size: 0.85rem;
    }
    
    .legacy-quote {
        padding: 0 16px;
    }
    
    .legacy-quote blockquote {
        font-size: 1.1rem;
        padding: 28px 24px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 16px;
    }
    
    .gallery-note {
        font-size: 0.8rem;
        padding: 0 16px;
    }
    
    .tributes-intro {
        font-size: 0.95rem;
        padding: 0 16px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    
    .testimonial-card {
        padding: 24px;
    }
    
    .testimonial-quote {
        font-size: 0.95rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .author-info h4 {
        font-size: 0.9rem;
    }
    
    .author-info span {
        font-size: 0.75rem;
    }
    
    .add-tribute-section {
        margin: 0 16px;
        padding: 32px 20px;
    }
    
    .add-tribute-section h3 {
        font-size: 1.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tribute-form {
        padding: 24px 16px;
        margin: 0 16px;
    }
    
    .tribute-form label {
        font-size: 0.8rem;
    }
    
    .tribute-form input,
    .tribute-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 14px;
    }
    
    .submit-btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 50px 0 30px;
    }
    
    .footer-name {
        font-size: 1.5rem;
    }
    
    .footer-nickname {
        font-size: 1rem;
    }
    
    .footer-message p {
        font-size: 0.9rem;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-image-frame {
        width: 150px;
        height: 150px;
        margin-bottom: 24px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-quote-sanskrit {
        font-size: 1rem;
    }
    
    .hero-quote {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .bio-chapter {
        padding-left: 14px;
    }
    
    .bio-chapter h3 {
        font-size: 1.15rem;
    }
    
    .legacy-quote blockquote {
        font-size: 1rem;
        padding: 24px 20px;
    }
    
    .footer-name {
        font-size: 1.3rem;
    }
}

/* ===== Hero Divider Image ===== */
.hero-divider-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.divider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: grayscale(100%);
}

.divider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(235, 229, 219, 1) 0%,
        rgba(235, 229, 219, 0.3) 15%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(249, 247, 244, 0.3) 85%,
        rgba(249, 247, 244, 1) 100%
    );
}

@media (max-width: 768px) {
    .hero-divider-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero-divider-image {
        height: 120px;
    }
}

/* ===== Goodbye Section ===== */
.goodbye-section {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    position: relative;
}

.goodbye-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center 60%;
    filter: grayscale(100%);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .goodbye-section {
        max-height: 300px;
    }
    
    .goodbye-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .goodbye-section {
        max-height: 200px;
    }
    
    .goodbye-image {
        height: 200px;
        object-position: center 55%;
    }
}
