/* Design System & Variable Tokens */
:root {
    /* Colors (Light Theme - Default) */
    --bg-dark: #f8f9fa;
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-color: rgba(0, 0, 0, 0.08);
    --primary-orange: #e68c00;
    --primary-orange-glow: rgba(230, 140, 0, 0.15);
    --text-main: #1c1c1e;
    --text-muted: #6b6b75;
    
    /* Interactive Elements */
    --btn-bg: rgba(0, 0, 0, 0.02);
    --btn-border: rgba(0, 0, 0, 0.06);
    --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    --blob-opacity-orange: 0.08;
    --blob-opacity-purple: 0.05;
    --blob-opacity-accent: 0.04;

    --font-outfit: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Variables */
body.dark-theme {
    --bg-dark: #0a0a0c;
    --bg-card: rgba(18, 18, 24, 0.45);
    --border-color: rgba(255, 255, 255, 0.07);
    --text-main: #f3f3f5;
    --text-muted: #8d8d99;
    
    --btn-bg: rgba(255, 255, 255, 0.03);
    --btn-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    --blob-opacity-orange: 0.15;
    --blob-opacity-purple: 0.12;
    --blob-opacity-accent: 0.08;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    font-family: var(--font-outfit);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Background Animated Blobs */
.background-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    transition: opacity 0.5s ease;
    animation: float-blob 20s infinite alternate ease-in-out;
}

.blob-orange {
    width: 500px;
    height: 500px;
    background-color: var(--primary-orange);
    top: -10%;
    right: 10%;
    opacity: var(--blob-opacity-orange);
    animation-delay: 0s;
}

.blob-purple {
    width: 600px;
    height: 600px;
    background-color: #7c3aed;
    bottom: -20%;
    left: 10%;
    opacity: var(--blob-opacity-purple);
    animation-delay: -5s;
}

.blob-accent {
    width: 400px;
    height: 400px;
    background-color: var(--primary-orange);
    bottom: 30%;
    right: -10%;
    opacity: var(--blob-opacity-accent);
    animation-delay: -10s;
}

@keyframes float-blob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-50px, 40px) scale(1.08);
    }
    100% {
        transform: translate(30px, -60px) scale(0.92);
    }
}

/* Floating Theme Switcher Button */
.theme-toggle {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    border-color: var(--primary-orange);
    box-shadow: 0 6px 16px var(--primary-orange-glow);
}

.theme-toggle:active {
    transform: translateY(0);
}

/* Top Navigation */
.top-nav {
    position: absolute;
    top: 32px;
    left: 32px;
    display: flex;
    gap: 16px;
    z-index: 100;
}

.nav-btn {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--btn-border);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.nav-btn-primary {
    background: var(--primary-orange);
    color: white !important;
    border: none;
}

.nav-btn-primary:hover {
    background: #cc7a00;
    color: white;
    box-shadow: 0 6px 16px var(--primary-orange-glow);
}

/* Main Container & Glassmorphic Card */
.container {
    width: 100%;
    max-width: 600px;
    padding: 24px;
    z-index: 10;
    position: relative;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 56px 48px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
    animation: fade-in-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Logo Styles & Animation */
.logo-container {
    margin-bottom: 40px;
    display: inline-block;
}

.logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.05));
    animation: logo-float 6s ease-in-out infinite;
}

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

/* Typography */
h1 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-main) 40%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

p.description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 440px;
    margin: 0 auto 48px auto;
    transition: color 0.5s ease;
}

/* Social Links styling */
.social-header {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 18px;
    transition: color 0.5s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-item {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-item:hover {
    transform: translateY(-4px) scale(1.05);
    background: var(--primary-orange);
    color: #ffffff;
    border-color: var(--primary-orange);
    box-shadow: 0 8px 20px var(--primary-orange-glow);
}

/* Footer Copyright */
.copyright {
    margin-top: 56px;
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.6;
    letter-spacing: 0.02em;
    transition: color 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 560px) {
    .theme-toggle {
        top: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .top-nav {
        top: 20px;
        left: 20px;
        gap: 10px;
    }

    .nav-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .card {
        padding: 48px 24px 36px 24px;
        border-radius: 24px;
    }
    
    h1 {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    p.description {
        font-size: 14px;
        margin-bottom: 36px;
    }

    .logo {
        max-width: 220px;
    }
}
