/* ============================================
   CSS Variables & Base Styles
   ============================================ */
:root {
    /* Soft pastel palette */
    --color-bg: #1a1625;
    --color-bg-light: #2d2640;
    --color-primary: #ff9ecd;
    --color-secondary: #a78bfa;
    --color-accent: #67e8f9;
    --color-warm: #fbbf24;
    --color-text: #f5f5f7;
    --color-text-muted: #a1a1aa;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-main: 'Quicksand', sans-serif;
    --font-accent: 'Playfair Display', serif;

    /* Spacing */
    --section-padding: 100px 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    cursor: default;
    min-height: 100vh;
}

/* Background gradient animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 158, 205, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(103, 232, 249, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ============================================
   Floating Elements
   ============================================ */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-item {
    position: absolute;
    animation: floatAround 20s linear infinite;
    opacity: 0.6;
    font-size: 1.5rem;
    filter: blur(0.5px);
}

@keyframes floatAround {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   Sparkle Trail
   ============================================ */
.sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.sparkle {
    position: absolute;
    pointer-events: none;
    animation: sparkleAnim 1s ease-out forwards;
}

@keyframes sparkleAnim {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
}

/* ============================================
   Glassmorphism Card
   ============================================ */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 20px;
}

.hero-content {
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.greeting {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.stinky-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.stinky-text:hover {
    transform: scale(1.05);
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.heart-bounce {
    display: inline-block;
    animation: heartBeat 1.5s ease infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.15);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 1s ease-out 1s backwards;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 13px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scrollDown 2s ease infinite;
}

@keyframes scrollDown {

    0%,
    100% {
        opacity: 1;
        top: 8px;
    }

    50% {
        opacity: 0.3;
        top: 20px;
    }
}

.scroll-indicator span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ============================================
   Sections Common
   ============================================ */
.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 50px;
    font-style: italic;
}

/* ============================================
   Intro Section
   ============================================ */
.intro-section {
    display: flex;
    justify-content: center;
}

.intro-section .content-card {
    max-width: 600px;
    padding: 50px;
    text-align: center;
}

.intro-section h2 {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.handwritten {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.decorative-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    margin: 30px auto 0;
    border-radius: 2px;
}

/* ============================================
   Reasons Section
   ============================================ */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.reason-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 158, 205, 0.1) 0%,
            rgba(167, 139, 250, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(255, 158, 205, 0.2);
}

.reason-card:hover::before {
    opacity: 1;
}

.reason-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.reason-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-primary);
    position: relative;
    z-index: 1;
}

.reason-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ============================================
   Interactive Section
   ============================================ */
.interactive-section {
    display: flex;
    justify-content: center;
}

.big-card {
    max-width: 500px;
    padding: 50px;
    text-align: center;
}

.big-card h2 {
    font-family: var(--font-accent);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.magic-button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-family: var(--font-main);
    font-weight: 600;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.magic-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 158, 205, 0.4);
}

.magic-button:active {
    transform: scale(0.98);
}

.magic-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.magic-button:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.surprise-message {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-size: 1.1rem;
    color: var(--color-text);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.surprise-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Counter Section
   ============================================ */
.counter-section {
    display: flex;
    justify-content: center;
}

.counter-card {
    padding: 50px;
    text-align: center;
    max-width: 450px;
}

.counter-card h2 {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--color-warm);
}

.counter-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.counter-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.counter-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    transform: scale(1.1);
}

.counter-value {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter-unit {
    font-size: 2rem;
}

.stinky-verdict {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    min-height: 30px;
}

.stinky-meter {
    width: 100%;
    height: 12px;
    background: var(--color-bg-light);
    border-radius: 6px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary), var(--color-warm));
    border-radius: 6px;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%;
}

/* ============================================
   Boop Section
   ============================================ */
.boop-section {
    display: flex;
    justify-content: center;
}

.boop-card {
    max-width: 400px;
    padding: 50px;
    text-align: center;
}

.boop-card h2 {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--color-accent);
}

.boop-target {
    width: 120px;
    height: 120px;
    margin: 30px auto;
    background: linear-gradient(135deg, rgba(255, 158, 205, 0.2), rgba(167, 139, 250, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border: 3px solid var(--color-primary);
}

.boop-target:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 158, 205, 0.5);
}

.boop-target:active {
    transform: scale(0.9);
}

.boop-emoji {
    font-size: 3.5rem;
    transition: transform 0.2s ease;
}

.boop-target.booped .boop-emoji {
    animation: boopPop 0.3s ease;
}

@keyframes boopPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3) rotate(10deg);
    }

    100% {
        transform: scale(1);
    }
}

.boop-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    font-size: 1.1rem;
}

.boop-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.boop-message {
    color: var(--color-text-muted);
    font-style: italic;
    min-height: 25px;
    transition: all 0.3s ease;
}

/* ============================================
   Love Notes Section
   ============================================ */
.notes-section {
    display: flex;
    justify-content: center;
}

.notes-card {
    max-width: 600px;
    padding: 50px;
    text-align: center;
}

.notes-card h2 {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--color-secondary);
}

.typewriter-container {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    margin-bottom: 25px;
}

.typewriter-text {
    font-size: 1.3rem;
    color: var(--color-text);
    font-family: var(--font-accent);
    font-style: italic;
    line-height: 1.6;
}

.typewriter-cursor {
    color: var(--color-primary);
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.next-note-btn {
    background: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-note-btn:hover {
    background: var(--color-secondary);
    color: var(--color-bg);
    transform: translateX(5px);
}

/* ============================================
   Ask Polat Section
   ============================================ */
.ask-section {
    display: flex;
    justify-content: center;
}

.ask-card {
    max-width: 450px;
    padding: 50px;
    text-align: center;
}

.ask-card h2 {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--color-warm);
}

.ask-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.ask-input:focus {
    outline: none;
    border-color: var(--color-warm);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.ask-input::placeholder {
    color: var(--color-text-muted);
}

.shake-btn {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 3px solid var(--color-warm);
    padding: 20px 40px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.shake-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
}

.shake-btn.shaking {
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0) rotate(0);
    }

    20% {
        transform: translateX(-10px) rotate(-5deg);
    }

    40% {
        transform: translateX(10px) rotate(5deg);
    }

    60% {
        transform: translateX(-10px) rotate(-5deg);
    }

    80% {
        transform: translateX(10px) rotate(5deg);
    }
}

.shake-emoji {
    font-size: 2.5rem;
}

.shake-btn span:last-child {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-warm);
}

.answer-bubble {
    margin-top: 25px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-warm);
    font-family: var(--font-accent);
    font-style: italic;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.answer-bubble.show {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   Hug Section
   ============================================ */
.hug-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

.hug-container {
    text-align: center;
}

.hug-prompt {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.hug-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    padding: 25px 50px;
    border-radius: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hug-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 158, 205, 0.5);
}

.hug-btn:hover .hug-arms.left {
    transform: translateX(-10px) rotate(-20deg);
}

.hug-btn:hover .hug-arms.right {
    transform: translateX(10px) rotate(20deg);
}

.hug-arms {
    font-size: 2rem;
    transition: transform 0.4s ease;
}

.hug-text {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 3px;
}

.hug-btn.hugging {
    animation: hugPulse 0.8s ease;
}

@keyframes hugPulse {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(0.95);
    }

    75% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.hug-btn.hugging .hug-arms.left {
    animation: hugArmLeft 0.8s ease;
}

.hug-btn.hugging .hug-arms.right {
    animation: hugArmRight 0.8s ease;
}

@keyframes hugArmLeft {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(20px) rotate(30deg);
    }
}

@keyframes hugArmRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-20px) rotate(-30deg);
    }
}

.hug-message {
    margin-top: 25px;
    min-height: 30px;
    font-size: 1.2rem;
    color: var(--color-primary);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.hug-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Final Section
   ============================================ */
.final-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-content {
    text-align: center;
    max-width: 700px;
    padding: 20px;
}

.letter {
    padding: 50px;
    text-align: left;
    line-height: 1.9;
    font-size: 1.1rem;
}

.letter p {
    margin-bottom: 20px;
}

.letter em {
    color: var(--color-primary);
    font-style: italic;
}

.letter-greeting {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 25px !important;
}

.letter-signature {
    margin-top: 40px;
    text-align: right;
    color: var(--color-text-muted);
}

.signature {
    font-family: var(--font-accent);
    font-size: 2rem;
    font-style: italic;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.final-decoration {
    margin-top: 50px;
}

.big-heart {
    font-size: 5rem;
    display: inline-block;
    animation: heartBeat 1.5s ease infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.big-heart:hover {
    transform: scale(1.2);
}

/* ============================================
   Secret Easter Egg
   ============================================ */
.secret-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.1;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.secret-trigger:hover {
    opacity: 0.3;
}

.secret-trigger::before {
    content: '🦨';
    font-size: 1.2rem;
}

.secret-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.secret-modal.show {
    opacity: 1;
    visibility: visible;
}

.secret-content {
    padding: 50px;
    text-align: center;
    max-width: 450px;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.secret-modal.show .secret-content {
    transform: scale(1);
}

.secret-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-warm);
}

.secret-message {
    color: var(--color-primary);
    font-style: italic;
    margin: 20px 0;
    font-size: 1.1rem;
}

.close-secret {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    padding: 15px 35px;
    font-size: 1rem;
    font-family: var(--font-main);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.close-secret:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 158, 205, 0.4);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet and smaller laptops */
@media (max-width: 1024px) {
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 15px;
    }

    .title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        gap: 10px;
    }

    .greeting {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .reason-card {
        padding: 25px 20px;
    }

    .reason-icon {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .intro-section .content-card,
    .big-card,
    .counter-card,
    .boop-card,
    .notes-card,
    .ask-card {
        padding: 35px 25px;
        margin: 0 10px;
    }

    .letter {
        padding: 30px 25px;
        font-size: 1rem;
        margin: 0 10px;
    }

    .letter-greeting {
        font-size: 1.3rem;
    }

    .counter-value {
        font-size: 3rem;
    }

    .counter-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .magic-button {
        padding: 15px 40px;
        font-size: 1.1rem;
    }

    .boop-target {
        width: 100px;
        height: 100px;
    }

    .boop-emoji {
        font-size: 3rem;
    }

    .typewriter-text {
        font-size: 1.1rem;
    }

    .ask-input {
        font-size: 1rem;
        padding: 12px 15px;
    }

    .shake-btn {
        padding: 15px 30px;
    }

    .shake-emoji {
        font-size: 2rem;
    }

    .hug-btn {
        padding: 20px 40px;
    }

    .hug-text {
        font-size: 1.3rem;
    }

    .big-heart {
        font-size: 4rem;
    }

    .secret-content {
        padding: 35px 25px;
        margin: 0 20px;
    }

    .scroll-indicator {
        bottom: 30px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px 12px;
    }

    .title {
        font-size: clamp(2rem, 15vw, 3rem);
        flex-direction: column;
        gap: 5px;
    }

    .greeting {
        font-size: 1.1rem;
    }

    .subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .intro-section h2 {
        font-size: 2rem;
    }

    .handwritten {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .reason-card {
        padding: 20px 15px;
    }

    .reason-card h3 {
        font-size: 1.2rem;
    }

    .reason-card p {
        font-size: 0.95rem;
    }

    .reason-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .intro-section .content-card,
    .big-card,
    .counter-card,
    .boop-card,
    .notes-card,
    .ask-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .counter-display {
        gap: 15px;
    }

    .counter-value {
        font-size: 2.5rem;
    }

    .counter-unit {
        font-size: 1.5rem;
    }

    .counter-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .stinky-verdict {
        font-size: 1rem;
    }

    .magic-button {
        padding: 14px 35px;
        font-size: 1rem;
        width: 100%;
        max-width: 250px;
    }

    .surprise-message {
        font-size: 1rem;
        padding: 15px 10px;
    }

    .boop-target {
        width: 90px;
        height: 90px;
    }

    .boop-emoji {
        font-size: 2.5rem;
    }

    .boop-count {
        font-size: 1.5rem;
    }

    .notes-card h2,
    .boop-card h2,
    .ask-card h2 {
        font-size: 1.5rem;
    }

    .typewriter-container {
        min-height: 80px;
        padding: 15px;
    }

    .typewriter-text {
        font-size: 1rem;
    }

    .next-note-btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    .ask-input {
        padding: 12px;
        font-size: 1rem;
    }

    .shake-btn {
        padding: 12px 25px;
        width: 100%;
        max-width: 200px;
    }

    .shake-emoji {
        font-size: 1.8rem;
    }

    .shake-btn span:last-child {
        font-size: 1rem;
    }

    .answer-bubble {
        font-size: 1rem;
    }

    .hug-prompt {
        font-size: 1.1rem;
    }

    .hug-btn {
        padding: 18px 35px;
    }

    .hug-arms {
        font-size: 1.5rem;
    }

    .hug-text {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .hug-message {
        font-size: 1rem;
    }

    .letter {
        padding: 25px 20px;
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .letter-greeting {
        font-size: 1.2rem;
    }

    .signature {
        font-size: 1.5rem;
    }

    .big-heart {
        font-size: 3.5rem;
    }

    .final-decoration {
        margin-top: 35px;
    }

    .secret-content {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .secret-content h2 {
        font-size: 1.4rem;
    }

    .secret-message {
        font-size: 1rem;
    }

    .close-secret {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    /* Disable sparkle trail on mobile for performance */
    .sparkle-container {
        display: none;
    }

    /* Reduce floating elements on mobile */
    .floating-item {
        opacity: 0.4;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .title {
        font-size: 2rem;
    }

    .intro-section .content-card,
    .big-card,
    .counter-card,
    .boop-card,
    .notes-card,
    .ask-card {
        padding: 25px 15px;
    }

    .letter {
        padding: 20px 15px;
    }

    .counter-value {
        font-size: 2rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Larger touch targets */
    .counter-btn {
        min-width: 48px;
        min-height: 48px;
    }

    .magic-button,
    .next-note-btn,
    .shake-btn,
    .hug-btn,
    .close-secret {
        min-height: 48px;
    }

    /* Remove hover-only effects */
    .reason-card:hover {
        transform: none;
    }

    .reason-card:active {
        transform: scale(0.98);
        border-color: var(--color-primary);
    }

    .boop-target:hover {
        transform: none;
        box-shadow: none;
    }

    .boop-target:active {
        transform: scale(0.95);
    }

    /* Disable cursor sparkles on touch */
    .sparkle-container {
        display: none;
    }
}

/* Landscape mode on phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 40px 20px;
    }

    .scroll-indicator {
        display: none;
    }

    .final-section {
        min-height: auto;
        padding: 60px 20px;
    }
}


/* ============================================
   Scroll Animations
   ============================================ */
.section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero always visible */
.hero {
    opacity: 1;
    transform: translateY(0);
}