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

/* ================= ROOT COLORS ================= */
:root {
    --primary: #ff7e5f;
    --secondary: #feb47b;
    --dark: #1a1a1a;
    --light: #ffffff;
    --bg: #f5f5f5;
    --text: #222;
}

/* ================= DARK MODE ================= */
body.dark {
    --bg: #121212;
    --light: #1e1e1e;
    --text: #f1f1f1;
}

/* ================= GLOBAL ================= */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

html {
    scroll-behavior: smooth;
}

/* ================= LOADER ================= */
#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: background 0.3s ease;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================= NAVBAR (glassmorphism) ================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.dark .navbar {
    background: rgba(20, 20, 20, 0.7);
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

/* ================= NAV LINKS ================= */
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 20px;
    color: var(--text);
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -5px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

/* ================= HAMBURGER ================= */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--light);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 10px 0;
    }
}

/* ================= THEME TOGGLE ================= */
#theme-toggle {
    margin-left: 15px;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    background: transparent;
    font-size: 1.2rem;
}

/* ================= HERO ================= */
.hero {
    height: 90vh;
    background: url("images/hero.webp") center/cover no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--light);
    text-align: center;
    padding: 0 15px;
}

.hero-small {
    height: 55vh;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 15px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease forwards;
}

.hero-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.hero-buttons a {
    text-decoration: none;
}

button.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

button.secondary:hover {
    background: white;
    color: black;
}

/* ================= SECTIONS ================= */
section {
    padding: 50px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: sectionFade 1s ease forwards;
}

section:nth-of-type(1) { animation-delay: 0.2s; }
section:nth-of-type(2) { animation-delay: 0.4s; }
section:nth-of-type(3) { animation-delay: 0.6s; }
section:nth-of-type(4) { animation-delay: 0.8s; }

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
}

section h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background: var(--primary);
    display: block;
    margin: 10px auto;
}

/* ================= GRADIENT TEXT ================= */
.gradient-text {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
}

/* ================= FEATURES ================= */
.feature-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature {
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.feature:hover {
    transform: translateY(-8px) scale(1.02);
}

/* ================= SERVICES ================= */
.service-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.service {
    background: var(--light);
    padding: 20px;
    width: 250px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.service:hover {
    transform: translateY(-8px) scale(1.02);
}

/* ================= TESTIMONIALS ================= */
.testimonials {
    background: var(--bg);
}

.testimonial-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial {
    background: var(--light);
    padding: 20px;
    width: 280px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    font-style: italic;
    transition: 0.3s;
}

.testimonial h4 {
    margin-top: 10px;
    font-style: normal;
    color: var(--primary);
}

.testimonial:hover {
    transform: translateY(-8px) scale(1.02);
}

/* ================= NEWSLETTER ================= */
.newsletter {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.newsletter p {
    margin: 10px 0 20px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 250px;
}

.newsletter-form button {
    background: black;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.newsletter-form button:hover {
    background: #333;
}

/* ================= CTA ================= */
.cta {
    text-align: center;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border-radius: 20px;
    margin: 40px;
}

/* ================= BLOG CARDS ================= */
.card-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: var(--light);
    width: 280px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.card img {
    width: 100%;
}

.card h3 {
    margin: 15px;
}

.card p {
    margin: 0 15px 20px;
    font-size: 0.9rem;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ================= FORMS ================= */
form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    width: 100%;
    margin: auto;
}

form input,
form button {
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
}

form input {
    border: 1px solid #ccc;
    outline: none;
    transition: 0.3s;
}

form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 6px var(--primary);
}

form textarea {
    margin: 10px 0;
    padding: 10px;
    resize: none;
    border-radius: 5px;
    border: 1px solid #ccc;
    outline: none;
    transition: 0.3s;
    min-height: 120px;
    font-family: 'Poppins', sans-serif;
}

form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 6px var(--primary);
}

/* ================= BUTTONS ================= */
button {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    background: var(--light);
    color: var(--dark);
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

button:hover {
    background: var(--dark);
    color: var(--light);
    transform: scale(1.05);
}

button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ================= SCROLL REVEAL ================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= ANIMATIONS ================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ================= FOOTER ================= */
.footer {
    background: var(--dark);
    color: var(--light);
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 40px;
}

.footer h2,
.footer h3 {
    margin-bottom: 10px;
}

.footer p {
    font-size: 0.9rem;
    color: #ccc;
}

.footer-links a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin: 5px 0;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
}
