:root {
    --bg: #262626;
    --surface: #ffffff;
    --surface2: rgba(175, 175, 175, 0.31);
    --text: #333333;
    --section-bg: #f9f9f9;
    --border: #007bff;
    --footer-bg: #333333;
    --footer-text: #ffffff;
    --shadow: rgba(0,0,0,0.1);
    --text2: #ffffff;
}

.dark-mode {
    --bg: #0b0f18;
    --surface: #252a33;
    --surface2:  rgba(51, 51, 51, 0.31);
    --text: #ffffff;
    --section-bg: #2f3647;
    --border: #4f8cff;
    --footer-bg: #11141f;
    --footer-text: #f7f7f7;
    --shadow: rgba(0,0,0,0.45);
    --text2: #ffffff;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: var(--bg);
    color: var(--text);
    background-image: url('lib/background1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

main#mainContent {
    background-image: url('lib/background1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 40px;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--text2);
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    margin: 0;
}

.hero-button {
    margin-top: 28px;
    padding: 16px 30px;
    border: none;
    border-radius: 999px;
    background-color: #4f8cff;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-button:hover,
.hero-button:focus {
    transform: translateY(-2px);
    background-color: #3b70d0;
}

.theme-switcher {
    display: block;
}

@media (max-width: 768px) {
    body {
        background-image: url('lib/background2.png');
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(175, 175, 175, 0.31);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow);
    backdrop-filter: blur(5px);
}

.dark-mode .container {
    background-color: rgba(51, 51, 51, 0.31);
}

h1 {
    color: var(--text2);
}

.about-section {
    margin: 20px 0;
}

.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toggle-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-track {
    width: 72px;
    height: 36px;
    border-radius: 999px;
    background-color: rgba(151, 151, 151, 0.79);
    position: relative;
    transition: background-color 0.25s ease;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.switch-track::before,
.switch-track::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.switch-track::before {
    left: 9px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFD54F' d='M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.8 1.42-1.42zM4 11H2v2h2v-2zm8-7h-2v2h2V4zm9.66 2.05l-1.42-1.42-1.79 1.8 1.42 1.41 1.79-1.79zM12 6a6 6 0 100 12 6 6 0 000-12zm5 11.95l1.79 1.79 1.41-1.41-1.79-1.79-1.41 1.41zM20 11h2v2h-2v-2zm-1.05-6.66l1.42 1.42 1.79-1.8-1.42-1.41-1.79 1.79zM12 2h-2v2h2V2z'/%3E%3C/svg%3E");
}

.switch-track::after {
    right: 11px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23222' d='M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z'/%3E%3C/svg%3E");
}

.switch-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--surface);
    transition: transform 0.25s ease, background-color 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 0;
}

.toggle-switch input:checked + .switch-track {
    background-color: #4f8cff;
}

.toggle-switch input:checked + .switch-track .switch-thumb {
    transform: translateX(34px);
}

.dark-mode .switch-thumb {
    background-color: #ffffff;
}

.dark-mode .switch-track {
    background-color: rgba(79, 140, 255, 0.35);
}

.container-section {
    margin: 50px 0;
    padding: 40px;
    background-color: var(--section-bg);
    border-radius: 8px;
    border-left: 5px solid var(--border);
    transition: all 0.3s ease;
}

.container-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.social-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.social-link {
    width: 140px;
    box-sizing: border-box;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background-color: var(--surface);
    color: var(--text);
    text-decoration: none;
    font: inherit;
    line-height: 1;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    text-align: center;
}

.social-link.discord-link::before {
    content: attr(data-name);
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 5;
}

.social-link.discord-link::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -38px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 10;
}

.social-link.discord-link:hover::before {
    opacity: 1;
}

.social-link.discord-link:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.social-link.discord-link:hover {
    color: transparent;
}

.dark-mode .social-link {
    background-color: #222431;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.16), 0 6px 16px rgba(0,0,0,0.12);
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in.delay-1 { animation-delay: 0.2s; }
.fade-in.delay-2 { animation-delay: 0.4s; }
.fade-in.delay-3 { animation-delay: 0.6s; }
.fade-in.delay-4 { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 30px;
    text-align: center;
    background-color: var(--surface2);
    color: var(--text2);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 20px;
        margin: 0;
        border-radius: 0;
    }
    .container-section {
        padding: 25px;
        margin: 30px 0;
    }
    footer {
        padding: 15px;
        margin-top: 20px;
    }
}