/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Arial", sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    transition: background 0.4s, color 0.4s;
}

/* THEME VARIABLES */
:root {
    --bg: #f5f5f5;
    --text: #222;
    --accent: #ff4b4b;
}

[data-theme="dark"] {
    --bg: #121212;
    --text: #f0f0f0;
    --accent: #ff7777;
}

/* DARK MODE BUTTON */
#themeToggle {
    position: fixed;
    top: 20px;
    right: 25px;
    font-size: 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1000;
    transition: 0.3s;
}

#themeToggle:hover {
    transform: scale(1.15);
}

/* HERO SECTION WITH ROTATING BACKGROUNDS */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    animation: slideshow 20s infinite;
    position: relative;
}

@keyframes slideshow {
    0%   { background-image: url("https://images.unsplash.com/photo-1487058792275-0ad4aaf24ca7"); }
    33%  { background-image: url("https://images.unsplash.com/photo-1518779578993-ec3579fee39f"); }
    66%  { background-image: url("https://images.unsplash.com/photo-1498050108023-c5249f4df085"); }
    100% { background-image: url("https://images.unsplash.com/photo-1487058792275-0ad4aaf24ca7"); }
}

.hero .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
}

/* LOGO */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 110px;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.5));
}

/* HERO TEXT */
.hero .content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-align: center;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.tagline span {
    color: var(--accent);
    font-weight: bold;
}

/* BUTTON */
.btn {
    padding: 12px 28px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    margin-top: 20px;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.btn:hover {
    transform: scale(1.1);
}

/* CONTENT SECTION */
.section {
    padding: 60px 20px;
    text-align: center;
}

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

/* FOOTER */
footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* ANIMATIONS */
.fade-in {
    animation: fadeIn 1.5s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 1.5s ease forwards;
    transform: translateY(30px);
    opacity: 0;
}

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

.pop {
    animation: popIn 1s ease forwards;
    opacity: 0;
}

@keyframes popIn {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    hero h1 {
        font-size: 2rem;
    }

    .logo {
        width: 85px;
    }
}
