/* ==========================
   VARIABILI PER THEME
========================== */
:root {
    --bg-color: #f2f2f2;
    --text-color: #212121;
    --navbar-bg: #6200ea;
    --navbar-link-hover: rgba(255, 255, 255, 0.2);
    --btn-bg: #03dac6;
    --btn-color: #000;
    --btn-hover: #018786;
    --card-bg: #ffffff;
    --card-heading-color: #6200ea;
    --footer-bg: #6200ea;
    --footer-color: #fff;
    --hero-gradient: linear-gradient(135deg, #bb86fc, #6200ea);
}

body.dark-theme {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --navbar-bg: #1f1f1f;
    --navbar-link-hover: rgba(255, 255, 255, 0.1);
    --btn-bg: #03dac6;
    --btn-color: #000;
    --btn-hover: #018786;
    --card-bg: #1e1e1e;
    --card-heading-color: #e0e0e0;
    --footer-bg: #1f1f1f;
    --footer-color: #e0e0e0;
    --hero-gradient: linear-gradient(135deg, #0d1117, #1c1c1c);
}

/* ==========================
   FONT & RESET
========================== */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin: 0 0 16px 0;
}

p {
    margin: 0 0 16px 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================
   NAVBAR
========================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    background-color: var(--navbar-bg);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: white;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--navbar-link-hover);
}

/* HAMBURGER MENU MOBILE */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background: var(--navbar-bg);
        flex-direction: column;
        padding: 20px;
        border-radius: 8px;
        gap: 16px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}
.nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--navbar-bg);
    padding: 16px 0;
}

/* ==========================
   HERO
========================== */
.hero {
    padding: 60px 24px;
    background: var(--hero-gradient);
    color: white;
    text-align: center;
    transition: background 0.3s;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* ==========================
   BUTTON
========================== */
.material-btn {
    display: inline-block;
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 4px;
    background-color: var(--btn-bg);
    color: var(--btn-color);
    transition: transform 0.2s, background 0.2s;
}

.material-btn:hover {
    transform: scale(1.05);
    background-color: var(--btn-hover);
    color: #fff;
}

/* ==========================
   LIGHT/DARK MODE BUTTONS
========================== */
.mode-switch {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
}

.mode-switch button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
}

.mode-switch button:hover {
    transform: scale(1.1);
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .navbar { padding: 8px 16px; }

    .hamburger { display: flex; }
    .nav-links { display: none; }
    .nav-links.mobile-active { display: flex; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.9rem; }
}
