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

:root {
    --animation-speed: 1;
}

body.sloth-mode {
    --animation-speed: 2;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #3d3428;
    background: rgb(229, 222, 209);
    overflow-x: hidden;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Background gradient with slow shift animation */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgb(229, 222, 209) 0%,
        rgb(239, 232, 219) 25%,
        rgb(234, 227, 214) 50%,
        rgb(239, 232, 219) 75%,
        rgb(229, 222, 209) 100%);
    background-size: 400% 400%;
    animation: gradientShift calc(15s * var(--animation-speed)) ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Soft noise texture overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
    z-index: -1;
}

/* Sloth Mode Toggle */
.sloth-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(249, 245, 238, 0.95);
    border: 2px solid rgba(139, 115, 85, 0.2);
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #6b5444;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.sloth-mode-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    background: rgba(249, 245, 238, 1);
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform calc(0.3s * var(--animation-speed)) ease;
}

.sloth-mode-toggle:hover .toggle-icon {
    transform: rotate(15deg);
}

body.sloth-mode .sloth-mode-toggle {
    background: rgba(107, 84, 68, 0.9);
    color: rgb(249, 245, 238);
    border-color: rgba(139, 115, 85, 0.4);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 100px 40px 80px;
    background: linear-gradient(135deg, #8b7355 0%, #6b5444 100%);
    color: rgb(249, 245, 238);
    position: relative;
    overflow: hidden;
    transition: all calc(0.5s * var(--animation-speed)) ease;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

body.sloth-mode .hero-section {
    background: linear-gradient(135deg, #6b5444 0%, #5a4636 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse calc(15s * var(--animation-speed)) ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    50% { transform: scale(1.1) translate(-5%, -5%); opacity: 0.5; }
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 5rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -3px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp calc(0.8s * var(--animation-speed)) ease-out;
}

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

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 2rem;
    opacity: 0.95;
    font-weight: 400;
    position: relative;
    z-index: 1;
    animation: fadeInUp calc(0.8s * var(--animation-speed)) ease-out calc(0.2s * var(--animation-speed)) both;
}

/* Main Content */
main {
    flex: 1;
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

/* Mascot Card */
.mascot-card {
    position: relative;
    text-align: center;
    padding: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.02);
    transform: translateY(0);
    transition: all calc(0.4s * var(--animation-speed)) cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 500px;
    backdrop-filter: blur(10px);
}

.mascot-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.1), rgba(107, 84, 68, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity calc(0.4s * var(--animation-speed)) ease;
}

.mascot-card:hover::before {
    opacity: 1;
}

.mascot-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04);
}

body.sloth-mode .mascot-card {
    filter: brightness(0.85) saturate(0.8);
}

.mascot-image {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
    animation: float calc(3.5s * var(--animation-speed)) ease-in-out infinite;
    transition: filter calc(0.5s * var(--animation-speed)) ease, transform calc(0.8s * var(--animation-speed)) ease;
}

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

body.sloth-mode .mascot-image {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1)) brightness(0.7);
    transform: rotate(180deg);
    animation: floatUpside calc(3.5s * var(--animation-speed)) ease-in-out infinite;
}

@keyframes floatUpside {
    0%, 100% { transform: rotate(180deg) translateY(0px); }
    50% { transform: rotate(180deg) translateY(15px); }
}

/* Zzz Animation */
.zzz-container {
    position: absolute;
    top: 20px;
    right: 40px;
    display: none;
    font-size: 2rem;
    opacity: 0;
}

body.sloth-mode .zzz-container {
    display: block;
    animation: zzzFloat calc(2s * var(--animation-speed)) ease-in-out infinite;
}

body.sloth-mode .zzz-container::before {
    content: 'Z';
    position: absolute;
    animation: zzzFade calc(3s * var(--animation-speed)) ease-in-out infinite;
    color: #6b5444;
}

body.sloth-mode .zzz-container::after {
    content: 'Z';
    position: absolute;
    left: 15px;
    top: -10px;
    font-size: 1.5rem;
    animation: zzzFade calc(3s * var(--animation-speed)) ease-in-out calc(0.5s * var(--animation-speed)) infinite;
    color: #6b5444;
}

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

@keyframes zzzFade {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.6; }
}

/* Email Image */
.email-image-simple {
    display: block;
    margin: 30px auto 0;
    max-width: 100%;
    width: auto;
    height: auto;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #6b5444 0%, #5a4636 100%);
    color: rgb(249, 245, 238);
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

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

footer p {
    position: relative;
    z-index: 1;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

footer a {
    color: rgb(229, 222, 209);
    text-decoration: none;
    transition: all calc(0.3s * var(--animation-speed)) ease;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

footer a:hover {
    color: #fff;
    background: rgba(139, 115, 85, 0.3);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sloth-mode-toggle {
        top: 10px;
        right: 10px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .toggle-text {
        display: none;
    }

    .hero-section {
        padding: 80px 30px 60px;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: -2px;
    }

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

    main {
        padding: 60px 20px;
    }

    .mascot-card {
        padding: 40px 30px;
        border-radius: 20px;
    }

    .mascot-image {
        max-width: 200px;
    }

    .email-image-simple {
        max-width: 250px;
        margin-top: 25px;
    }

    /* Reduce animation intensity on mobile */
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(139, 115, 85, 0.3);
    color: #3d3428;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
