:root {
    --primary: #F04F4F;
    --primary-glow: rgba(240, 79, 79, 0.4);
    
    /* Default Night Theme */
    --bg-dark: #0a0a0f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --box-bg: rgba(0, 0, 0, 0.3);
    --overlay-gradient: linear-gradient(135deg, rgba(10, 10, 15, 0.85) 0%, rgba(10, 10, 15, 0.6) 100%);
    --card-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --logo-gradient: linear-gradient(to right, #fff, #a0a0ab);
    --separator-color: rgba(255, 255, 255, 0.2);
    --social-bg: rgba(255, 255, 255, 0.05);
    --social-bg-hover: rgba(255, 255, 255, 0.1);
}

body.theme-day {
    --bg-dark: #e8eaef;
    --text-primary: #1a1a24;
    --text-secondary: #4a4a5a;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --box-bg: rgba(255, 255, 255, 0.6);
    --overlay-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 240, 245, 0.85) 100%);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --logo-gradient: linear-gradient(to right, #1a1a24, #4a4a5a);
    --separator-color: rgba(0, 0, 0, 0.2);
    --social-bg: rgba(0, 0, 0, 0.05);
    --social-bg-hover: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 0 5rem 0; /* Extra bottom padding for footer */
    transition: background-color 1s ease, color 1s ease;
}

.background-animation {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
    animation: slow-pan-zoom 30s infinite alternate ease-in-out;
}

@keyframes slow-pan-zoom {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.05) translate(-1%, -1%); }
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-gradient);
    z-index: 1;
    transition: background 1s ease;
}

.background-animation::before,
.background-animation::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float-blob 15s infinite ease-in-out alternate;
}

.background-animation::before {
    background-color: var(--primary);
    top: 30%;
    left: 40%;
}

.background-animation::after {
    background-color: #4f5ff0;
    bottom: 30%;
    right: 30%;
    animation-delay: -5s;
}

@keyframes float-blob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10vw, 5vw) scale(1.1); }
    100% { transform: translate(-5vw, 10vw) scale(0.9); }
}

@keyframes move-bg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    animation: fade-in-up 1s ease-out forwards;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease, background 1s ease, box-shadow 1s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap; /* Allows text to wrap when container is small */
}

.logo-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 1s ease;
    line-height: 1.2;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.title .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
    opacity: 0.5;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--box-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 120px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 1s ease;
}

.time-box:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 10px 20px rgba(240, 79, 79, 0.15);
    border-color: rgba(240, 79, 79, 0.3);
}

.time-val {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: color 1s ease;
}

.time-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 600;
}

.separator {
    font-size: 3rem;
    font-weight: 300;
    color: var(--separator-color);
    margin-top: -1.5rem;
    transition: color 1s ease;
}

.contact-info {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    background: var(--box-bg);
    padding: 1.2rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease, background 1s ease;
}

.contact-info:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(240, 79, 79, 0.3);
}

.contact-item svg {
    flex-shrink: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    background: var(--social-bg);
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-links a:hover {
    color: var(--text-primary);
    background: var(--social-bg-hover);
    border-color: var(--glass-border);
    transform: translateY(-3px);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--social-bg-hover);
}

.theme-toggle svg {
    color: var(--text-primary);
    transition: all 0.5s ease;
    position: absolute;
    width: 22px;
    height: 22px;
}

body:not(.theme-day) .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

body:not(.theme-day) .moon-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

body.theme-day .sun-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

body.theme-day .moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

/* Footer Section */
.site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 1.5rem 1rem;
    z-index: 10;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary);
}

.heart-icon {
    display: inline-block;
    color: #ff3b3b;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.3); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Wavy Text Animation */
.wave-text {
    display: inline-block;
    background: linear-gradient(90deg, #d3a144, #e8bd66, #d3a144);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    animation: wave-gradient 3s linear infinite, wave-bob 2.5s ease-in-out infinite;
}

@keyframes wave-gradient {
    to { background-position: 200% center; }
}

@keyframes wave-bob {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(2deg); }
    75% { transform: translateY(2px) rotate(-2deg); }
}

@media (max-width: 768px) {
    .glass-card {
        padding: 2rem 1rem;
    }
    
    .logo {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .countdown-container {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .time-box {
        min-width: 70px;
        flex: 1;
        padding: 1rem 0.5rem;
    }
    
    .time-val {
        font-size: 1.8rem;
    }
    
    .time-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .separator {
        display: none;
    }
    
    .contact-info {
        padding: 1.2rem;
        font-size: 0.9rem;
    }

    .theme-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    .site-footer {
        padding: 1rem;
        font-size: 0.85rem;
    }
}
