:root {
    --primary: #5E81AC;
    --secondary: #FF9ADA;
    --accent: #FFCF96;
    --light-bg: #F9F7F7;
    --text: #333333;
    --card-bg: #FFFFFF;
}

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

    ::-webkit-scrollbar {
        width: 6px;
    }
    ::-webkit-scrollbar-thumb {
        background: var(--primary);
    }
    ::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.5);
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--secondary);
    }
}

body {
    font-family: 'Fredoka', sans-serif;
    background-color: var(--light-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(#FFD1D1 1px, transparent 1px), 
        radial-gradient(#D1F0FF 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    padding: 4rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

h1, h2, h3 {
    font-family: 'Paytone One', sans-serif;
    line-height: 1.3;
}

.main-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #5E81AC, #FF9ADA, #FFCF96);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text);
    font-weight: 400;
}

.section-title {
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--primary);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 1rem auto;
    border-radius: 2px;
}

.btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(94, 129, 172, 0.3);
    display: block;
    margin: 2rem auto;
}

.btn:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 154, 218, 0.4);
}

/* Floating decorations */
.decorations {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.balloon {
    position: absolute;
    width: 40px;
    height: 50px;
    background-color: var(--color);
    border-radius: 50%;
    bottom: -60px;
    left: var(--position);
    opacity: 0.7;
    animation: float 15s infinite ease-in-out;
    animation-delay: var(--delay);
}

.balloon::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 80px;
    background: #ddd;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) rotate(20deg);
        opacity: 0;
    }
}

/* Hero Section */
#hero {
    background-color: rgba(255, 255, 255, 0.7);
    text-align: center;
    position: relative;
}

.party-icon{
    width: 70px;
    height: auto;
}

.birthday-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.birthday-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 207, 150, 0.2), rgba(255, 154, 218, 0.2), rgba(145, 196, 255, 0.2));
    z-index: -1;
    border-radius: 20px;
    transform: rotate(-2deg);
}

.hero-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    border: 8px solid white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.1);
}

/* Photo Gallery */
#photo-gallery {
    background-color: white;
}

.polaroid-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.polaroid {
    background: white;
    padding: 15px 15px 40px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 250px;
    transform: rotate(var(--rotation, -2deg));
    transition: all 0.3s ease;
    cursor: pointer;
}

.polaroid:nth-child(2n) {
    --rotation: 3deg;
}

.polaroid:nth-child(3n) {
    --rotation: -5deg;
}

.polaroid:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.polaroid-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 10px;
}

.polaroid-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.polaroid:hover .polaroid-image img {
    transform: scale(1.1);
}

.polaroid-caption {
    text-align: center;
    font-size: 0.9rem;
}

/* Friendship Journey */
#friendship-journey {
    background-color: rgba(255, 255, 255, 0.7);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 3px;
}

.timeline-item {
    padding: 2rem 0;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 5px rgba(94, 129, 172, 0.2);
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
    text-align: right;
    transform: translateX(-30px);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    transform: translateX(30px);
}

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

/* Quote Section */
#quotes {
    background: linear-gradient(135deg, rgba(255, 207, 150, 0.2), rgba(255, 154, 218, 0.2), rgba(145, 196, 255, 0.2));
}

.quotes-container {
    position: relative;
    max-width: 800px;
    height: 200px;
    margin: 0 auto;
}

.quote-card {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.8;
    opacity: 0;
    transition: all 0.5s ease;
    transform: translateX(50px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.quote-card.active {
    opacity: 1;
    transform: translateX(0);
}

.quote-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(94, 129, 172, 0.2);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Heartfelt Message */
#heartfelt {
    background: white;
    position: relative;
}

.message-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.friend-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-bottom: 2rem;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.friend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-message {
    background: linear-gradient(45deg, rgba(255, 207, 150, 0.1), rgba(255, 154, 218, 0.1));
    padding: 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(94, 129, 172, 0.1);
}

/* Footer */
footer {
    background-color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
}

footer p {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.secret-button {
    font-size: 2rem;
    cursor: pointer;
    display: inline-block;
    margin: 1rem;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

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

.secret-button:hover {
    transform: scale(1.2);
    animation: none;
}

.countdown {
    margin-top: 2rem;
    font-size: 0.9rem;
}

#countdown-timer {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-top: 0.5rem;
}

.made-with-love {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(94, 129, 172, 0.1);
}

.made-with-love p {
    font-size: 0.9rem;
    color: var(--primary);
    opacity: 0.8;
    font-weight: 400;
    margin: 0;
}

/* Audio Control */
#audio-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

#toggle-audio {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#toggle-audio:hover {
    background: var(--primary);
    color: white;
}

/* Party Mode */
body.party-mode {
    animation: colorchange 10s infinite;
}

@keyframes colorchange {
    0% { background-color: #FFD1D1; }
    25% { background-color: #D1EAFF; }
    50% { background-color: #D1FFD6; }
    75% { background-color: #F9F9D1; }
    100% { background-color: #FFD1D1; }
}

body.party-mode .polaroid {
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
    100% { transform: rotate(-2deg); }
}

/* Responsive Designs */
@media (max-width: 768px) {

    *{
        scrollbar-width: none;
        -ms-overflow-style: none;
        ::webkit-scrollbar {
            display: none;
        }
    }


    .timeline::before {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-content {
        width: 80%;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: auto;
        margin-right: 0;
        text-align: left;
        transform: translateX(0px);
    }
    
    .polaroid-gallery {
        gap: 15px;
    }
    
    .polaroid {
        width: calc(50% - 15px);
        padding: 10px 10px 30px 10px;
    }
    
    .polaroid-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .birthday-card {
        padding: 2rem 1rem;
    }
    
    .hero-image {
        width: 180px;
        height: 180px;
    }
    
    .friend-image {
        width: 150px;
        height: 150px;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .quote-card {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .polaroid {
        width: 100%;
    }
}
