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

:root {
    --ocean-deep: #1A5F7A;
    --ocean-mid: #57A0C1;
    --ocean-light: #86C5DA;
    --teal: #2EC4B6;
    --teal-light: #7EDAD0;
    --seafoam: #CBF3F0;
    --sand: #F7F9F9;
    --text-dark: #1A3A4A;
    --text-light: #4A6A7A;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 50%, var(--teal) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Retro scanlines overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--sand);
    letter-spacing: 0.5px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--sand);
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Main Container */
.container {
    text-align: center;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 20px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 0 60px rgba(255, 255, 255, 0.05);
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Pixel Art Family */
.pixel-family {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.character {
    position: relative;
}

.pixel-sprite {
    width: auto;
    height: 120px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(2px 4px 0px rgba(0, 0, 0, 0.15));
}

/* Individual character sizing */
.dad .pixel-sprite {
    height: 130px;
}

.mom .pixel-sprite {
    height: 125px;
}

.son .pixel-sprite {
    height: 120px;
}

.daughter .pixel-sprite {
    height: 115px;
}

.dog .pixel-sprite {
    height: 80px;
}

/* Character animations */
.dad {
    animation: typing 0.6s ease-in-out infinite;
}

.mom {
    animation: breathe 3s ease-in-out infinite;
}

.son {
    animation: sway 1.2s ease-in-out infinite;
}

.daughter {
    animation: dance 0.8s ease-in-out infinite;
}

.dog {
    animation: wag 0.4s ease-in-out infinite;
    margin-left: 10px;
}

/* Animations */
@keyframes typing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02) translateY(-3px);
    }
}

@keyframes sway {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

@keyframes dance {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-3deg);
    }
    50% {
        transform: translateY(-14px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(3deg);
    }
}

@keyframes wag {
    0%, 100% {
        transform: rotate(-3deg);
        transform-origin: center bottom;
    }
    50% {
        transform: rotate(3deg);
        transform-origin: center bottom;
    }
}

/* Typography */
h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--sand);
    margin-bottom: 15px;
    text-shadow:
        2px 2px 0px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(46, 196, 182, 0.3);
    letter-spacing: 1px;
    font-weight: 600;
}

.tagline {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--seafoam);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

/* Decorations */
.decorations {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.heart {
    color: var(--teal-light);
    animation: pulse 1.5s ease-in-out infinite;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.star {
    color: var(--seafoam);
    animation: twinkle 2s ease-in-out infinite;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: rotate(15deg) scale(1.1);
    }
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding: 25px 30px;
}

.family-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.family-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.initial {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--sand);
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--sand);
    transition: all 0.2s ease;
}

.icon-link:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.icon-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.icon-link.disabled:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: none;
}

.icon {
    width: 20px;
    height: 20px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .navbar {
        padding: 12px 20px;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .pixel-family {
        gap: 10px;
    }

    .pixel-sprite {
        height: 80px;
    }

    .dad .pixel-sprite,
    .mom .pixel-sprite {
        height: 90px;
    }

    .son .pixel-sprite {
        height: 85px;
    }

    .daughter .pixel-sprite {
        height: 80px;
    }

    .dog .pixel-sprite {
        height: 55px;
    }

    .container {
        padding: 25px 15px;
        margin: 15px;
        border-radius: 15px;
    }

    .decorations {
        gap: 15px;
    }

    .family-links {
        gap: 25px;
    }

    .initial {
        font-size: 1.5rem;
    }

    .icon-link {
        width: 32px;
        height: 32px;
    }

    .icon {
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 900px) {
    .pixel-family {
        gap: 35px;
    }

    .pixel-sprite {
        height: 150px;
    }

    .dad .pixel-sprite {
        height: 160px;
    }

    .mom .pixel-sprite {
        height: 155px;
    }

    .son .pixel-sprite {
        height: 150px;
    }

    .daughter .pixel-sprite {
        height: 145px;
    }

    .dog .pixel-sprite {
        height: 100px;
    }

    .family-links {
        gap: 60px;
    }
}

/* Camera button (Easter egg) */
.camera-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.camera-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.camera-btn.active {
    background: rgba(46, 196, 182, 0.3);
    color: #fff;
    border-color: var(--teal);
}

/* Photo mode styles */
.photo-face {
    width: auto;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.character.photo-mode {
    animation: none !important;
}

.character.photo-mode .photo-face {
    animation: float 3s ease-in-out infinite;
}

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

/* Photo sizes per character */
.dad.photo-mode .photo-face {
    height: 130px;
    width: 130px;
}

.mom.photo-mode .photo-face {
    height: 125px;
    width: 125px;
}

.son.photo-mode .photo-face {
    height: 115px;
    width: 115px;
}

.daughter.photo-mode .photo-face {
    height: 110px;
    width: 110px;
}

.dog.photo-mode .photo-face {
    height: 90px;
    width: 90px;
    border-radius: 40%;
}
