/* Color variables: Mitch Koko style (Monochrome & Clean) */
:root {
    color-scheme: light dark;
    --bg-color: #f7f7f5;
    --bg-accent: #efefec;
    --text-color: #111111;
    --text-muted: #666666;
    --btn-border: #e4e4e0;
    --btn-bg: #ffffff;
    --btn-hover-bg: #111111;
    --btn-hover-text: #ffffff;
    --card-hover: #f0f0ec;
    --shadow-soft: 0 8px 24px rgba(17, 17, 17, 0.08);
    --shadow-strong: 0 14px 32px rgba(17, 17, 17, 0.16);
    --shadow-button: 0 10px 22px rgba(17, 17, 17, 0.14), 0 2px 0 rgba(17, 17, 17, 0.08);
    --shadow-button-hover: 0 18px 36px rgba(17, 17, 17, 0.2), 0 3px 0 rgba(17, 17, 17, 0.12);
    --ring: rgba(17, 17, 17, 0.14);
}

[data-theme="dark"] {
    --bg-color: #0f1110;
    --bg-accent: #161816;
    --text-color: #f5f5f2;
    --text-muted: #a0a0a0;
    --btn-border: #2a2c2a;
    --btn-bg: #151715;
    --btn-hover-bg: #ffffff;
    --btn-hover-text: #111111;
    --card-hover: #1b1d1b;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-strong: 0 16px 40px rgba(0, 0, 0, 0.45);
    --shadow-button: 0 12px 26px rgba(0, 0, 0, 0.5), 0 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-button-hover: 0 20px 40px rgba(0, 0, 0, 0.6), 0 3px 0 rgba(0, 0, 0, 0.45);
    --ring: rgba(245, 245, 242, 0.12);
}

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

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at top, rgba(17, 17, 17, 0.04), transparent 55%),
        linear-gradient(180deg, var(--bg-accent) 0%, var(--bg-color) 40%);
    color: var(--text-color);
    font-family: "DM Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Layout Helper: Centering for index.html */
.centered-layout {
    justify-content: center;
    align-items: center;
}

/* Theme Toggle Button (Top Right) */
#theme-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.6rem 0.7rem;
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    z-index: 100;
}

#theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    border-color: var(--ring);
}

/* Main Container */
main {
    width: 100%;
    max-width: 560px;
    padding: 2.5rem;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--btn-border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(6px);
}

[data-theme="dark"] main {
    background: rgba(21, 23, 21, 0.7);
}

/* Typography */
h1 {
    font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    text-align: center;
}

p.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 500;
    text-align: center;
}

/* Buttons & Links */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-links a, .app-card {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border: 1px solid var(--btn-border);
    border-radius: 16px;
    background: var(--btn-bg);
    box-shadow: var(--shadow-button);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease,
        color 0.2s ease, border-color 0.2s ease;
    text-align: center;
}

.nav-links a:hover, .app-card:hover {
    background-color: var(--btn-hover-bg);
    color: var(--btn-hover-text);
    border-color: var(--btn-hover-bg);
    box-shadow: var(--shadow-button-hover);
    transform: translateY(-3px);
}

nav {
    width: 100%;
    max-width: 560px;
    margin: 0 auto 2rem;
}

nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

nav a:hover {
    color: var(--text-color);
    border-color: var(--btn-border);
    background-color: var(--card-hover);
}

@media (max-width: 720px) {
    main {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin: 0 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* --- NEW: Hero Statement (Rotating Text) Styles --- */

.hero-statement {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 500;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem; /* Space between static text and rotating text */
    height: 30px; /* Fixed height prevents layout shift during rotation */
}

.rotating-text {
    color: var(--text-color); /* Make the changing word stand out */
    font-weight: 700;
    display: inline-block;
    position: relative;
    /* CSS Animation for the fade/slide effect */
    animation: fadeSlide 3s infinite ease-in-out;
}

/* The Keyframes for the animation */
@keyframes fadeSlide {
    0%, 10% {
        opacity: 0;
        transform: translateY(10px); /* Start slightly below */
    }
    20%, 80% {
        opacity: 1;
        transform: translateY(0);    /* Hold in place */
    }
    90%, 100% {
        opacity: 0;
        transform: translateY(-10px); /* Exit slightly above */
    }
}