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

:root {
    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --accent-color: #0066cc;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    /* Dark Mode Colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-color: #66b3ff;
    --border-color: #444444;
    --shadow: 0 2px 10px rgba(0, 0, 0, 1);
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: -1;
    transition: opacity 0.3s ease;
}

body.dark-mode::before {
    opacity: 0.15;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    width: 100%;
    position: relative;
    padding: 20px;
}

/* Top Controls */
.top-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 100;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.2);
    color: var(--accent-color);
}

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    transition: color 0.3s ease;
    text-transform: lowercase;
}

.lang-btn.active {
    color: var(--accent-color);
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
}

.lang-separator {
    color: var(--border-color);
    font-size: 12px;
}

/* Main Content */
.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    text-align: center;
    margin-top: -80px;
}

.title {
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.slogan {
    font-size: clamp(20px, 4vw, 36px);
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    width: 100%;
    #background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.footer-text {
    font-size: 14px;
    color: var(--bg-secondary);
    transition: color 0.3s ease;
}

.footer-email {
    font-size: 16px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-email:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .top-controls {
        top: 15px;
        right: 15px;
        gap: 15px;
    }

    .theme-toggle {
        font-size: 20px;
    }

    .language-toggle {
        padding: 5px 10px;
        font-size: 12px;
    }

    .lang-btn {
        font-size: 12px;
        padding: 3px 6px;
    }

    .title {
        font-size: clamp(28px, 6vw, 48px);
    }

    .slogan {
        font-size: clamp(16px, 3vw, 28px);
    }

    .footer {
        padding: 15px;
    }

    .footer-email {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .top-controls {
        top: 10px;
        right: 10px;
        gap: 12px;
    }

    .theme-toggle {
        font-size: 18px;
        padding: 6px;
    }

    .language-toggle {
        padding: 4px 8px;
        font-size: 11px;
    }

    .lang-btn {
        font-size: 11px;
        padding: 2px 4px;
    }

    .title {
        font-size: clamp(24px, 5vw, 36px);
    }

    .slogan {
        font-size: clamp(14px, 2.5vw, 20px);
    }

    .footer-email {
        font-size: 12px;
    }
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}
