@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

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

/* --- THEME COLORS --- */
body {
    --bg: #1c1c1c;
    --text: #ffffff;
    --link: #dcdcdc;
    background: var(--bg);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: background 0.3s, color 0.3s;
}

/* Light mode variables */
body.light {
    --bg: #f2f2f2;
    --text: #111111;
    --link: #333333;
}

/* --- MOBILE FRIENDLY TYPOGRAPHY --- */
h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 600;
}

.subtitle {
    margin-top: 8px;
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 300;
}

.details {
    margin-top: 30px;
    font-size: clamp(0.9rem, 2.8vw, 1.05rem);
    line-height: 1.6;
}

/* fade-in animations */
.fade {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.9s ease forwards;
}

.fade-delay {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 1.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Links */
a {
    color: var(--link);
    text-decoration: underline;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

/* --- DARK/LIGHT MODE BUTTON --- */
#theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 2px solid var(--text);
    color: var(--text);
    font-size: 1.2rem;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

#theme-toggle:hover {
    background: var(--text);
    color: var(--bg);
}
