

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffd700 0%, #ffd94e 50%, #ffa500 100%) !important;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Gold Section */
.gold-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.gold-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.348) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.128) 0%, transparent 50%);
    animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.gold-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.gold-title {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    color: white;
    text-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.433),
        8px 8px 0px rgba(0, 0, 0, 0.05);
    letter-spacing: -0.05em;
    line-height: 0.9;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.gold-subtitle {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gold-medal-badge {
    display: inline-block;
    background: white;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    color: #ffa500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* Letter Section */
.letter-section {
    margin: 50px 100px;
    position: relative;
}

.parchment {
    background: white !important; 
    border: 3px solid #d4a574;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 
        inset 0 0 20px rgba(139, 69, 19, 0.1),
        0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    margin: 20px 0;
}

.parchment::before,
.parchment::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #d4a574;
    border-radius: 50%;
    top: -10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.parchment::before {
    left: 30px;
}

.parchment::after {
    right: 30px;
}

.letter-title {
    font-family: 'Times New Roman', serif;
    font-size: 2.8rem;
    text-align: center;
    color: #8B4513;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-weight: 700;
    letter-spacing: 1px;
}

.letter-content {
    font-family: var(--body-font);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5D4E37;
    text-align: justify;
    column-gap: 40px;
    column-rule: 1px solid rgba(212, 165, 116, 0.3);
}

.letter-content p {
    margin-bottom: 20px;
    text-indent: 20px;
    break-inside: avoid;
}

.letter-closing {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e8f4f8;
}

.letter-signature {
    text-align: right;
    margin-top: 30px;
}

.signature-line {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: #001d3c;
    font-family: 'Brush Script MT', cursive, 'Segoe UI', sans-serif;
    margin-bottom: 5px;
}

.signature-date {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: #7f8c8d;
    font-style: italic;
}

/* Gallery Section - Blue Background */
.gallery-section {
background: #001d3c;
padding: 100px 20px 100px 20px;
margin-bottom: -48px;
position: relative;
overflow: hidden;
}

.gallery-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 100px;
background: linear-gradient(
    to bottom,
    #ffd700 0%,
    rgba(255, 215, 0, 0.7) 30%,
    rgba(0, 29, 60, 0.5) 70%,
    #001d3c 100%
);
pointer-events: none;
z-index: 1;
}

.gallery-section::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 100px;
background: linear-gradient(
    to top,
    #d6edf9 0%,
    rgba(214, 237, 249, 0.7) 30%,
    rgba(0, 29, 60, 0.5) 70%,
    #001d3c 100%
);
pointer-events: none;
z-index: 1;
}

.gallery-section .section-title {
    color: white;
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.gallery-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Day Section */
.day-section {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.day-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #ffd700;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Carousel Container */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    background: transparent;
    padding: 20px;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 20px;
}

.photo {
    flex: 0 0 calc(33.333% - 14px);
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.photo:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.photo-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo:hover .photo-image img {
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    cursor: pointer;
    animation: zoomIn 0.3s ease;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}

.modal .close:hover {
    color: #ffd700;
    transform: scale(1.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .photo {
        flex: 0 0 calc(50% - 10px);
    }

    .photo-image {
        height: 200px;
    }

    .day-section {
        margin-bottom: 40px;
    }

    .parchment {
        padding: 40px 25px;
    }
}

@media (max-width: 480px) {
    .letter-content {
        font-size: 0.9rem;
    }
    
    .photo {
        flex: 0 0 calc(100% - 0px);
    }

    .photo-image {
        height: 180px;
    }

    .gallery-section {
        padding: 60px 15px;
    }

    .day-section {
        margin-bottom: 30px;
    }
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    .letter-paper::before,
    .letter-paper::after {
        border-width: 25px 25px 0 0;
    }

    .letter-paper::after {
        border-width: 0 25px 25px 0;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
        padding: 30px 15px;
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 8rem);
        margin-bottom: 30px;
    }

    .hero-subtitle {
        font-size: clamp(1.2rem, 3.5vw, 2rem);
        margin-bottom: 20px;
    }

    .gold-medal-badge {
        padding: 15px 35px;
        font-size: clamp(1rem, 2.5vw, 1.5rem);
    }

    .scroll-indicator {
        bottom: 30px;
    }

    .scroll-indicator svg {
        width: 35px;
        height: 35px;
    }

    .thanks-section,
    .gallery-section {
        padding: 60px 20px;
    }

    /* Letter section responsive */
    .letter-header {
        margin-bottom: 40px;
    }

    .letter-title {
        font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    }

    .letter-subtitle {
        font-size: clamp(1rem, 2.2vw, 1.3rem);
    }

    .letter-paper {
        padding: clamp(30px, 5vw, 60px) clamp(25px, 4vw, 50px);
    }

    .letter-paper::before,
    .letter-paper::after {
        border-width: 20px 20px 0 0;
    }

    .letter-paper::after {
        border-width: 0 20px 20px 0;
    }

    .letter-opening {
        font-size: clamp(1.1rem, 2.2vw, 1.4rem);
        margin-bottom: 30px;
    }

    .letter-body {
        font-size: clamp(0.95rem, 1.7vw, 1.1rem);
        line-height: 1.8;
    }

    .letter-paragraph {
        margin-bottom: 25px;
        text-indent: 1.5em;
    }

    .letter-paragraph:first-of-type::first-letter {
        font-size: 3em;
    }

    .letter-closing {
        margin-top: 50px;
        padding-top: 30px;
    }

    .letter-farewell {
        font-size: clamp(1rem, 1.8vw, 1.2rem);
        margin-bottom: 25px;
    }

    .signature-line {
        font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    }

    .signature-date {
        font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    }

    .letter-seal {
        width: clamp(70px, 11vw, 100px);
        height: clamp(70px, 11vw, 100px);
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
        bottom: -25px;
        right: clamp(15px, 4vw, 50px);
    }

    .section-title {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: 30px;
    }

    .gallery-subtitle {
        font-size: clamp(0.95rem, 1.8vw, 1.1rem);
        margin-bottom: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .gallery-placeholder {
        padding: 60px 20px;
    }

    .gallery-placeholder-icon {
        font-size: 60px;
    }

    .gallery-placeholder-text {
        font-size: 1.3rem;
    }

    .gallery-placeholder-subtext {
        font-size: 0.9rem;
    }

    .gallery-caption {
        font-size: 1rem;
        padding: 25px 15px 15px 15px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 40px;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 40px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }
}

/* Mobile devices */
@media (max-width: 480px) {
    .hero-section {
        padding: 20px 15px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 5rem);
        margin-bottom: 20px;
        letter-spacing: -0.03em;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.5rem);
        margin-bottom: 15px;
        letter-spacing: 0.05em;
    }

    .gold-medal-badge {
        padding: 12px 25px;
        font-size: 0.9rem;
        letter-spacing: 0.05em;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-indicator svg {
        width: 30px;
        height: 30px;
    }

    .thanks-section,
    .gallery-section {
        padding: 50px 15px;
    }

    /* Letter section mobile */
    .thanks-section::before {
        width: 200px;
        height: 200px;
        top: -30px;
        left: -30px;
    }

    .thanks-section::after {
        width: 250px;
        height: 250px;
        bottom: -50px;
        right: -50px;
    }

    .letter-header {
        margin-bottom: 30px;
    }

    .letter-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
        margin-bottom: 10px;
    }

    .letter-subtitle {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }

    .letter-paper {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .letter-paper::before,
    .letter-paper::after {
        border-width: 15px 15px 0 0;
    }

    .letter-paper::after {
        border-width: 0 15px 15px 0;
    }

    .letter-opening {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .letter-body {
        font-size: 0.9rem;
        line-height: 1.75;
    }

    .letter-paragraph {
        margin-bottom: 20px;
        text-indent: 1em;
        text-align: left;
    }

    .letter-paragraph:first-of-type::first-letter {
        font-size: 2.5em;
        margin: 0.05em 0.08em 0 0;
    }

    .letter-closing {
        margin-top: 40px;
        padding-top: 25px;
    }

    .letter-farewell {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .letter-signature {
        margin-top: 25px;
    }

    .signature-line {
        font-size: 1.1rem;
    }

    .signature-date {
        font-size: 0.8rem;
    }

    .letter-seal {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        bottom: -20px;
        right: 15px;
        border: 3px solid white;
    }

    .section-title {
        font-size: clamp(1.8rem, 4.5vw, 2.5rem);
        margin-bottom: 25px;
    }

    .gallery-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

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

    .gallery-item {
        border-radius: 15px;
    }

    .gallery-placeholder {
        padding: 50px 15px;
    }

    .gallery-placeholder-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .gallery-placeholder-text {
        font-size: 1.1rem;
    }

    .gallery-placeholder-subtext {
        font-size: 0.85rem;
    }

    .gallery-caption {
        font-size: 0.9rem;
        padding: 20px 12px 12px 12px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 35px;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 35px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 85vh;
    }

    .lightbox-content img {
        max-height: 85vh;
    }
}

/* Very small mobile devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .gold-medal-badge {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .letter-title {
        font-size: 1.5rem;
    }

    .letter-subtitle {
        font-size: 0.85rem;
    }

    .letter-paper {
        padding: 25px 15px;
    }

    .letter-body {
        font-size: 0.85rem;
    }

    .letter-paragraph {
        text-indent: 0.8em;
    }

    .letter-seal {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

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

    .gallery-placeholder-text {
        font-size: 1rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .gold-medal-badge {
        padding: 10px 25px;
        font-size: 0.9rem;
        margin-top: 10px;
    }

    .scroll-indicator {
        display: none;
    }

    .thanks-section {
        padding: 50px 20px;
    }

    .letter-header {
        margin-bottom: 25px;
    }

    .letter-paper {
        padding: 30px 25px;
    }

}
