/* ===========================================
   Wedding Website - Modern Minimal + Pencil Style
   =========================================== */

/* Password Gate */
.password-gate {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #fdfcfb 0%, #f8f6f3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.password-gate.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.password-container {
    text-align: center;
    padding: 3rem;
    max-width: 400px;
    width: 90%;
}

.password-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(3rem, 10vw, 5rem);
    color: #4a4a4a;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #4a4a4a 0%, #6b6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.password-subtitle {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: #6b6b6b;
    margin-bottom: 2.5rem;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.password-input-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.password-input {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border: 2px solid #e8e4df;
    border-radius: 50px;
    background: #faf9f7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.password-input:focus {
    outline: none;
    border-color: #c9a87c;
    box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.2);
}

.password-input.error {
    border-color: #e57373;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.password-submit {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    background: #4a4a4a;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-submit:hover {
    background: #b08d5b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(176, 141, 91, 0.3);
}

.password-error {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: #e57373;
    min-height: 1.5rem;
}

/* CSS Variables */
:root {
    --font-sketch: 'Caveat', cursive;
    --font-body: 'Inter', sans-serif;

    --color-bg: #fdfcfb;
    --color-bg-alt: #f8f6f3;
    --color-text: #2c2c2c;
    --color-text-light: #6b6b6b;
    --color-accent: #c9a87c;
    --color-accent-dark: #b08d5b;
    --color-pencil: #4a4a4a;
    --color-paper: #faf9f7;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);

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

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

html {
    scroll-behavior: smooth;
}

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

/* Paper Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    z-index: 9999;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-sketch);
    font-weight: 600;
    color: var(--color-pencil);
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(253, 252, 251, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: var(--shadow-soft);
}

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

.nav-logo {
    font-family: var(--font-sketch);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-pencil);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo:hover {
    color: var(--color-accent);
}

.nav-duck {
    width: 40px;
    height: auto;
    transition: var(--transition);
}

.nav-logo:hover .nav-duck {
    transform: scale(1.1);
}

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

.nav-links a {
    font-family: var(--font-sketch);
    font-size: 1.2rem;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--color-accent-dark);
}

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

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

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-pencil);
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    font-family: var(--font-sketch);
    font-size: 1.5rem;
    color: var(--color-text);
    text-decoration: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 24px 60px;
    position: relative;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

/* Decorative sketchy elements */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.1;
    background-repeat: no-repeat;
    background-size: contain;
}

.hero::before {
    top: 15%;
    left: 10%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20,50 Q35,20 50,50 T80,50' fill='none' stroke='%234a4a4a' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M30,60 Q45,30 60,60' fill='none' stroke='%234a4a4a' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
}

.hero::after {
    bottom: 20%;
    right: 10%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%234a4a4a' stroke-width='1.5' stroke-dasharray='5,5'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='%234a4a4a' stroke-width='1'/%3E%3C/svg%3E");
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-subtitle {
    font-family: var(--font-sketch);
    font-size: 1.3rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: clamp(3.5rem, 12vw, 7rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-title .name {
    display: block;
    background: linear-gradient(135deg, var(--color-pencil) 0%, var(--color-text-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .ampersand {
    display: block;
    font-size: 0.5em;
    color: var(--color-accent);
    -webkit-text-fill-color: var(--color-accent);
    margin: 0.2em 0;
}

.hero-tagline {
    font-family: var(--font-sketch);
    font-size: 1.8rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-date span {
    font-family: var(--font-sketch);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-pencil);
}

.date-line {
    width: 60px;
    height: 1px;
    background: var(--color-accent);
}

.hero-location {
    font-family: var(--font-sketch);
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-family: var(--font-sketch);
    font-size: 0.9rem;
    color: var(--color-text-light);
    letter-spacing: 0.1em;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: rotate(45deg);
}

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

/* Buttons */
.btn {
    font-family: var(--font-sketch);
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-pencil);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(176, 141, 91, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-full {
    width: 100%;
}

/* Story Section */
.story {
    padding: 120px 0;
    background: var(--color-bg);
}

.story-timeline {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.story-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-item.reverse {
    direction: rtl;
}

.story-item.reverse > * {
    direction: ltr;
}

.story-sketch {
    aspect-ratio: 4/3;
    background: var(--color-bg-alt);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 2px dashed var(--color-accent);
}

.story-sketch::before {
    content: '[ sketch ]';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-sketch);
    font-size: 1.5rem;
    color: var(--color-text-light);
    opacity: 0.5;
}

/* Decorative pencil marks */
.story-sketch::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M10,20 Q20,10 30,20 T30,30' fill='none' stroke='%23c9a87c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    opacity: 0.6;
}

.story-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.story-date {
    font-family: var(--font-sketch);
    font-size: 1.1rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 1rem;
}

.story-content p {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* Details Section */
.details {
    padding: 120px 0;
    background: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.detail-section {
    max-width: 600px;
    margin: 0 auto 4rem;
    text-align: center;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-heading {
    font-family: var(--font-sketch);
    font-size: 2rem;
    color: var(--color-pencil);
    margin-bottom: 1rem;
}

.detail-description {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.detail-card {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
    transform: scaleX(0);
    transition: var(--transition);
}

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

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

.detail-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--color-accent);
}

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

.detail-icon-img {
    width: 80px;
    height: 80px;
}

.detail-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.detail-card:hover .detail-icon-img img {
    transform: scaleX(-1);
}

.detail-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.detail-time {
    font-family: var(--font-sketch);
    font-size: 1.4rem;
    color: var(--color-pencil);
    font-weight: 600;
}

.detail-location {
    font-family: var(--font-sketch);
    font-size: 1.2rem;
    color: var(--color-accent);
    margin: 0.5rem 0;
}

.detail-address {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    padding: 120px 0;
    background: var(--color-bg);
    position: relative;
}

.gallery-subtitle {
    text-align: center;
    font-family: var(--font-sketch);
    font-size: 1.3rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, #e8e4df 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--color-accent);
}

.gallery-placeholder span {
    font-family: var(--font-sketch);
    font-size: 1.2rem;
    color: var(--color-text-light);
    opacity: 0.6;
}

/* FAQ Section */
.faq {
    padding: 120px 0;
    background: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.faq-subtitle {
    text-align: center;
    font-family: var(--font-sketch);
    font-size: 1.3rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--color-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question span {
    font-family: var(--font-sketch);
    font-size: 1.3rem;
    color: var(--color-pencil);
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* RSVP Section */
.rsvp {
    padding: 120px 0;
    background: var(--color-bg-alt);
}

.rsvp-subtitle {
    text-align: center;
    font-family: var(--font-sketch);
    font-size: 1.4rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.rsvp-deadline {
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-accent);
    margin-bottom: 3rem;
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    background: var(--color-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

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

.form-group label {
    display: block;
    font-family: var(--font-sketch);
    font-size: 1.2rem;
    color: var(--color-pencil);
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid #e8e4df;
    border-radius: 12px;
    background: var(--color-paper);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.1);
}

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

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: var(--font-sketch);
    font-size: 1.1rem;
    color: var(--color-text);
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #e8e4df;
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.radio-label input:checked + .radio-custom {
    border-color: var(--color-accent);
}

.radio-label input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* Footer */
.footer {
    padding: 60px 0;
    background: var(--color-pencil);
    color: white;
    text-align: center;
    position: relative;
    overflow: visible;
}

.footer-names {
    font-family: var(--font-sketch);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.footer-date {
    font-family: var(--font-sketch);
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.footer-hashtag {
    font-family: var(--font-sketch);
    font-size: 1.1rem;
    color: var(--color-accent);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal-content {
    background: var(--color-bg);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    transform: scale(0.9);
    transition: var(--transition);
}

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

.modal-icon {
    width: 60px;
    height: 60px;
    background: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #28a745;
}

.modal-icon svg {
    width: 30px;
    height: 30px;
}

.modal-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 968px) {
    .details-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .story-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .story-item.reverse {
        direction: ltr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }

    .hero-tagline {
        font-size: 1.4rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }

    .rsvp-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .hero::before,
    .hero::after {
        display: none;
    }
}

/* Pencil sketch animation on scroll */
@keyframes sketch-in {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Penguin Sprites */
.penguin {
    background-image: url('assets/elizabeth_sprites.png');
    background-repeat: no-repeat;
    position: absolute;
    pointer-events: none;
    z-index: 10;
}

/* Sprite positions - each sprite roughly 140x140 in the sheet */
.penguin-wave {
    width: 120px;
    height: 130px;
    background-position: 0 0;
    background-size: 570px auto;
}

.penguin-icecream {
    width: 130px;
    height: 130px;
    background-position: -120px 0;
    background-size: 570px auto;
}

.penguin-sweat {
    width: 140px;
    height: 120px;
    background-position: -255px 0;
    background-size: 570px auto;
}

.penguin-umbrella {
    width: 120px;
    height: 140px;
    background-position: -430px 0;
    background-size: 570px auto;
}

.penguin-laptop {
    width: 140px;
    height: 120px;
    background-position: 0 -145px;
    background-size: 570px auto;
}

.penguin-sleep {
    width: 130px;
    height: 110px;
    background-position: -135px -155px;
    background-size: 570px auto;
}

.penguin-beer {
    width: 120px;
    height: 130px;
    background-position: -275px -140px;
    background-size: 570px auto;
}

.penguin-angry {
    width: 130px;
    height: 140px;
    background-position: -420px -135px;
    background-size: 570px auto;
}

.penguin-heart {
    width: 120px;
    height: 140px;
    background-position: 0 -280px;
    background-size: 570px auto;
}

.penguin-dance {
    width: 130px;
    height: 140px;
    background-position: -130px -280px;
    background-size: 570px auto;
}

.penguin-search {
    width: 130px;
    height: 140px;
    background-position: -275px -285px;
    background-size: 570px auto;
}

.penguin-cry {
    width: 130px;
    height: 140px;
    background-position: -415px -285px;
    background-size: 570px auto;
}

.penguin-peek {
    width: 130px;
    height: 120px;
    background-position: 0 -430px;
    background-size: 570px auto;
}

.penguin-excited {
    width: 120px;
    height: 140px;
    background-position: -135px -420px;
    background-size: 570px auto;
}

.penguin-phone {
    width: 110px;
    height: 140px;
    background-position: -280px -425px;
    background-size: 570px auto;
}

.penguin-box {
    width: 130px;
    height: 130px;
    background-position: -400px -430px;
    background-size: 570px auto;
}

.penguin-blanket {
    width: 150px;
    height: 120px;
    background-position: -70px -570px;
    background-size: 570px auto;
}

.penguin-box2 {
    width: 130px;
    height: 130px;
    background-position: -310px -565px;
    background-size: 570px auto;
}

.penguin-blanket2 {
    width: 160px;
    height: 130px;
    background-position: -55px -700px;
    background-size: 570px auto;
}

.penguin-box3 {
    width: 130px;
    height: 120px;
    background-position: -300px -710px;
    background-size: 570px auto;
}

/* Penguin placements */
.hero-penguin-left {
    left: 5%;
    bottom: 15%;
    transform: scaleX(-1);
    animation: float 3s ease-in-out infinite;
}

.hero-penguin-right {
    right: 5%;
    bottom: 20%;
    animation: float 3s ease-in-out infinite 0.5s;
}

.story-penguin {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.details-penguin-left {
    left: 20px;
    bottom: 20px;
}

.details-penguin-right {
    right: 20px;
    bottom: 20px;
    transform: scaleX(-1);
}

.faq-penguin {
    right: 10%;
    top: 150px;
}

.footer-penguin {
    position: absolute;
    left: 50%;
    top: -60px;
    transform: translateX(-50%);
}

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

.hero-penguin-left {
    animation: float-left 3s ease-in-out infinite;
}

@keyframes float-left {
    0%, 100% {
        transform: scaleX(-1) translateY(0);
    }
    50% {
        transform: scaleX(-1) translateY(-15px);
    }
}

/* Hide penguins on small screens */
@media (max-width: 768px) {
    .hero-penguin-left,
    .hero-penguin-right,
    .story-penguin,
    .details-penguin-left,
    .details-penguin-right,
    .faq-penguin {
        display: none;
    }

    .footer-penguin {
        width: 80px;
        height: 90px;
        background-size: 380px auto;
    }
}

/* Selection styling */
::selection {
    background: var(--color-accent);
    color: white;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-dark);
}
