/* ============================================
   Mobile-First CSS for Sinsha's Birthday Site
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #FF6B9D;
    --secondary-color: #FFB6C1;
    --accent-color: #FFD700;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --bg-light: #FFF5F8;
    --bg-white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
}

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

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

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-white);
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

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

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 1.5rem;
    height: 0.2rem;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--bg-white);
    list-style: none;
    flex-direction: column;
    padding: 2rem 1.25rem;
    box-shadow: var(--shadow);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: none;
}

.nav-menu.active {
    transform: translateX(0);
    display: flex;
}

.nav-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 100%);
    overflow: hidden;
    padding-top: 4rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    opacity: 1;
}

.hero-avatar {
    margin-bottom: 1.5rem;
}

.avatar-img {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    border: 0.5rem solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    object-fit: cover;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    min-height: 1.5rem;
    opacity: 0.95;
}

/* Typed.js cursor styling - keep it inline with the text */
.hero-subtitle .typed-cursor,
#typedText .typed-cursor {
    display: inline !important;
    vertical-align: baseline;
    opacity: 1;
}

/* Ensure typed text container allows inline content */
.hero-subtitle,
#typedText {
    white-space: normal;
}

/* Keep typed string and cursor on same line */
.hero-subtitle > span:not(.typed-cursor),
#typedText > span:not(.typed-cursor) {
    display: inline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: #FF5A8D;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Confetti Canvas */
.confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

/* Timeline Section */
.timeline-section {
    background: var(--bg-light);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 0.25rem;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
    padding-left: 6rem;
}

.timeline-year {
    position: absolute;
    left: 0;
    background: var(--primary-color);
    color: white;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 2;
    box-shadow: var(--shadow);
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 157, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 182, 193, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-wrapper {
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem 0;
}

.gallery-item {
    width: 100%;
    position: relative;
    perspective: 1000px;
}

/* Flip Card Container */
.flip-card {
    width: 100%;
    height: 100%;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.gallery-item:hover .flip-card-inner,
.gallery-item.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.flip-card-front {
    padding: 0;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Photo Frame */
.photo-frame {
    position: relative;
    width: 100%;
    flex: 1;
    background: linear-gradient(135deg, #8B7355 0%, #6B5740 100%);
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.gallery-item:hover .photo-frame {
    transform: scale(1.02);
    box-shadow: 
        0 15px 40px rgba(255, 107, 157, 0.3),
        inset 0 0 30px rgba(255, 182, 193, 0.2);
}

.frame-border {
    position: absolute;
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #D4AF37 100%);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.frame-border-top {
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    border-radius: 1.5rem 1.5rem 0 0;
}

.frame-border-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    border-radius: 0 0 1.5rem 1.5rem;
}

.frame-border-left {
    top: 0;
    bottom: 0;
    left: 0;
    width: 8px;
    border-radius: 1.5rem 0 0 1.5rem;
}

.frame-border-right {
    top: 0;
    bottom: 0;
    right: 0;
    width: 8px;
    border-radius: 0 1.5rem 1.5rem 0;
}

.frame-corner {
    position: absolute;
    color: #FFD700;
    font-size: 1.5rem;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.gallery-item:hover .frame-corner {
    transform: scale(1.2) rotate(15deg);
}

.frame-corner-tl {
    top: 0.5rem;
    left: 0.5rem;
}

.frame-corner-tr {
    top: 0.5rem;
    right: 0.5rem;
}

.frame-corner-bl {
    bottom: 0.5rem;
    left: 0.5rem;
}

.frame-corner-br {
    bottom: 0.5rem;
    right: 0.5rem;
}

.framed-img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.75rem;
    display: block;
    flex: 1;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.98);
}

.gallery-item:hover .framed-img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.frame-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.gallery-item:hover .frame-shine {
    left: 100%;
}

.frame-label {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    z-index: 1;
}

.gallery-item:hover .frame-label {
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-3px);
}

/* If frame-label is inside flip-card-front, hide it when flipped */
.flip-card-front .frame-label {
    transition: opacity 0.4s ease;
}

.gallery-item.flipped .flip-card-front .frame-label,
.gallery-item:hover .flip-card-front .frame-label {
    opacity: 0;
}

/* Item Sizes - Use min-height instead of restrictive aspect-ratio */
.gallery-item-large .photo-frame {
    min-height: 450px;
}

.gallery-item-medium .photo-frame {
    min-height: 380px;
}

.gallery-item-small .photo-frame {
    min-height: 320px;
}

/* Ensure flip-card adjusts to photo-frame height */
.gallery-item-large .flip-card-inner {
    min-height: 450px;
}

.gallery-item-medium .flip-card-inner {
    min-height: 380px;
}

.gallery-item-small .flip-card-inner {
    min-height: 320px;
}

/* Card Back - Wishes/Slogans */
.flip-card-back {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFB6C1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.card-back-content {
    text-align: center;
    color: white;
    width: 100%;
    max-width: 90%;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
    display: block;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.card-message {
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-style: italic;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.card-signature {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

/* Wishes Section */
.wishes-section {
    background: var(--bg-light);
}

.wish-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #E0E0E0;
    border-radius: 0.5rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    min-height: 1.5rem;
}

.wishes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.wish-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.wish-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.wish-card-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.wish-card-message {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.0625rem;
    line-height: 1.8;
}

.fun-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.fact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: var(--transition);
}

.fact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.fact-icon {
    font-size: 2.5rem;
}

.fact-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.fact-item p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 0;
}

.my-wish {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-top: 2rem;
    border-left: 4px solid #0066cc;
}

.my-wish h4 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 700;
}

.wish-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wish-author {
    align-items: end;
    display: flex;
    flex-direction: column;
}

.wish-author h5 {
    font-size: 1.125rem;
    color: #1a1a1a;
    margin-top: 0;
    font-weight: 600;
}

.wish-role {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-top: 0;
}

.wish-website {
    color: #0066cc;
    font-size: 0.9375rem;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.25rem;
    transition: var(--transition);
}

.wish-website:hover {
    text-decoration: underline;
    color: #004499;
}

.wish-message {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 0;
}

.wish-message p {
    margin: 0;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    object-fit: cover;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
}

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

.gift-animation {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.modal-body h2 {
    font-family: var(--font-display);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-body p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Tablet & Desktop Styles (min-width: 768px)
   ============================================ */

@media (min-width: 768px) {
    /* Navigation */
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        gap: 2rem;
        padding: 0;
        background: none;
        box-shadow: none;
        transform: none;
    }

    .nav-link {
        padding: 0;
        font-size: 0.9375rem;
    }

    /* Hero */
    .hero-title {
        font-size: 3rem;
    }

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

    .avatar-img {
        width: 12rem;
        height: 12rem;
    }

    /* Section Title */
    .section-title {
        font-size: 2.5rem;
    }

    /* Timeline */
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        padding-left: 0;
    }

    .timeline-year {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-content {
        margin-top: 2rem;
        width: calc(50% - 2rem);
    }

    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: auto;
        margin-right: 2rem;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 2rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Stagger items vertically on tablet */
    .gallery-item:nth-child(even) {
        transform: translateY(40px);
    }
    
    .gallery-item-large .photo-frame {
        min-height: 550px;
    }
    
    .gallery-item-medium .photo-frame {
        min-height: 480px;
    }
    
    .gallery-item-small .photo-frame {
        min-height: 420px;
    }
    
    .gallery-item-large .flip-card-inner {
        min-height: 550px;
    }
    
    .gallery-item-medium .flip-card-inner {
        min-height: 480px;
    }
    
    .gallery-item-small .flip-card-inner {
        min-height: 420px;
    }
    
    .card-title {
        font-size: 1.75rem;
    }
    
    .card-message {
        font-size: 1rem;
    }

    /* Wishes Grid */
    .wishes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* About */
    .about-content {
        flex-direction: row;
        align-items: center;
    }

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

    .about-image {
        max-width: 500px;
    }
}

/* ============================================
   Large Desktop Styles (min-width: 1024px)
   ============================================ */

@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }

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

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

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .gallery-item:nth-child(even) {
        transform: translateY(50px);
    }
    
    .gallery-item-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(1) {
        grid-row: span 2;
    }
    
    .gallery-item:nth-child(3) {
        grid-column: 3;
        grid-row: 1 / 3;
    }
    
    .gallery-item-large .photo-frame {
        min-height: 600px;
    }
    
    .gallery-item-medium .photo-frame {
        min-height: 520px;
    }
    
    .gallery-item-small .photo-frame {
        min-height: 480px;
    }
    
    .gallery-item-large .flip-card-inner {
        min-height: 600px;
    }
    
    .gallery-item-medium .flip-card-inner {
        min-height: 520px;
    }
    
    .gallery-item-small .flip-card-inner {
        min-height: 480px;
    }
    
    .card-title {
        font-size: 2rem;
    }
    
    .card-message {
        font-size: 1.0625rem;
    }
    
    .flip-card-back {
        padding: 2.5rem;
    }

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

/* ============================================
   Accessibility & Utilities
   ============================================ */

/* Focus states for keyboard navigation */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Floating Music Player Button */
.floating-music-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 107, 157, 0.6);
}

.floating-music-btn:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 107, 157, 0.6);
    }
}