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

:root {
    --bg-gradient: linear-gradient(135deg, #581c87 0%, #3730a3 50%, #be185d 100%);
    --text-primary: white;
    --text-secondary: rgba(196, 181, 253, 0.8);
    --text-tertiary: rgba(196, 181, 253, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --toggle-bg: rgba(255, 255, 255, 0.2);
    --toggle-handle: white;
}

[data-theme="light"] {
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --toggle-bg: rgba(0, 0, 0, 0.1);
    --toggle-handle: #1e293b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    min-height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme transition animation class */
.theme-transition {
    position: relative;
    overflow: hidden;
}

.theme-transition::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    animation: theme-ripple 0.8s ease-out;
}

@keyframes theme-ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/**
 * Theme Toggle Button
 *
 * The button background color represents the theme you'll switch to:
 * - In dark mode: Light background with sun icon (indicates switching to light mode)
 * - In light mode: Dark background with moon icon (indicates switching to dark mode)
 */
.theme-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 30px;
    /* Light background in dark mode (indicates switching to light) */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Dark background in light mode (indicates switching to dark) */
[data-theme="light"] .theme-toggle {
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.theme-icon {
    width: 18px;
    height: 18px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: absolute;
}

/* Sun icon - bright yellow/gold color for better visibility */
.sun-icon {
    color: #fbbf24;
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.7));
    stroke: #fbbf24;
    stroke-width: 2px;
}

/* Moon icon - bright white color for better visibility on dark background */
.moon-icon {
    color: #f8fafc;
    opacity: 0;
    transform: scale(0);
    filter: drop-shadow(0 0 2px rgba(248, 250, 252, 0.5));
}

[data-theme="light"] .sun-icon {
    opacity: 0;
    transform: scale(0);
}

[data-theme="light"] .moon-icon {
    opacity: 1;
    transform: scale(1);
}

.content {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(2rem);
    transition: all 1s ease-out;
}

.content.visible {
    opacity: 1;
    transform: translateY(0);
}

.icon-wrapper {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.icon-container {
    padding: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.globe-icon {
    width: 3rem;
    height: 3rem;
    color: var(--text-primary);
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.main-heading {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    line-height: 1;
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (min-width: 768px) {
    .main-heading {
        font-size: 4.5rem;
    }
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.6;
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (min-width: 768px) {
    .subtitle {
        font-size: 1.5rem;
    }
}

.decorative-line {
    width: 6rem;
    height: 0.25rem;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    margin: 0 auto 2rem;
    border-radius: 9999px;
}

.description {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    max-width: 32rem;
    margin: 0 auto;
    line-height: 1.6;
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dots-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.dot-1 {
    background-color: #a855f7;
}

.dot-2 {
    background-color: #ec4899;
    animation-delay: 0.2s;
}

.dot-3 {
    background-color: #a5b4fc;
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.bg-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    filter: blur(3rem);
}

.bg-circle-1 {
    top: -10rem;
    right: -10rem;
    background-color: rgba(168, 85, 247, 0.05);
    transition: background-color 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bg-circle-2 {
    bottom: -10rem;
    left: -10rem;
    background-color: rgba(236, 72, 153, 0.05);
    transition: background-color 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .bg-circle-1 {
    background-color: rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .bg-circle-2 {
    background-color: rgba(139, 92, 246, 0.1);
}
