/* --- THEME AND COLOR DEFINITIONS --- */
:root {
    /* Light Theme (Default) */
    --color-background: #f4f4f4;
    --color-text-primary: #121212;
    --color-text-secondary: #333333;
    --color-heading: #000000;
    --color-accent: #fdd835;
    --color-card-bg: #ffffff;
    --color-card-border: #fdd835;
    --color-footer-bg: #e0e0e0;
    --color-contact-bg: #ffffff;
    --shadow-light: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-heavy: 0 10px 20px rgba(0,0,0,0.2);
}

body.dark-theme {
    /* Dark Theme */
    --color-background: #121212;
    --color-text-primary: #e0e0e0;
    --color-text-secondary: #cccccc;
    --color-heading: #ffffff;
    --color-accent: #fdd835;
    --color-card-bg: #1e1e1e;
    --color-card-border: #fdd835;
    --color-footer-bg: #121212;
    --color-contact-bg: #1e1e1e;
    --shadow-light: 0 4px 8px rgba(0,0,0,0.3);
    --shadow-heavy: 0 10px 20px rgba(0,0,0,0.4);
}

/* --- GENERAL BODY STYLES --- */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--color-background);
    color: var(--color-text-primary);
    scroll-behavior: smooth;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-heading);
}

a {
    color: var(--color-accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* --- HEADER AND NAVIGATION --- */
header {
    background-color: var(--color-accent);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    transition: box-shadow 0.4s ease; /* ADD THIS LINE */
}

body.dark-theme header {
    box-shadow:
        /* 1. A bright, sharp line to mimic the LED strip itself */
        inset 0 -2px 3px rgba(255, 255, 220, 0.6),

        /* 2. The intense glow right below the header */
        0 5px 10px rgba(253, 216, 53, 0.7),

        /* 3. The main, softer bloom of light */
        0 10px 30px rgba(253, 216, 53, 0.5),

        /* 4. A wide, faint ambient glow */
        0 15px 50px rgba(253, 216, 53, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

nav .logo img {
    height: 2.5rem;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6));
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

nav ul li a {
    color: #000000; /* FIXED: Set link color to black */
    font-weight: bold;
    transition: opacity 0.3s ease;
}
nav ul li a:hover {
    opacity: 0.7; /* Use opacity for hover effect */
    text-decoration: none;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    color: #000000; /* FIXED: Set icon color to black */
}

/* --- MAIN CONTENT SECTIONS --- */
main {
    padding-top: 50px;
}

section {
    padding: 2rem 2rem 0rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.text-section {
    max-width: 800px;
    padding: 2rem;
    font-size: 1.2rem;
    font-style: italic;
    border-left: none;
    border-top: 3px solid var(--color-accent);
    background-color: var(--color-card-bg);
    box-shadow: var(--shadow-light);
    border-radius: 8px;
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 5rem;

}

.text-section p {
    margin: 0;
    color: var(--color-text-secondary);
}

.text-section p + p {
    margin-top: 1rem;
}


/* Hero Section */
#home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('img/hero-background-light.png') no-repeat center center/cover;
    text-align: center;
    transition: background 0.5s ease-in-out;
}

body.dark-theme #home {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('img/hero-background-dark.png') no-repeat center center/cover;
}

#home .hero-content {
    max-width: 800px;
    color: #fff;
}
#home h1 { color: #fff; }

/* Services Section */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}
.service-card {
    background-color: var(--color-card-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--color-card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-light);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}
.service-card h3 {
    margin-top: 0;
    color: var(--color-accent);
}
.service-card p {
    color: var(--color-text-secondary);
}


/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}
.gallery-item {
    background-color: var(--color-card-bg);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 1rem;
    box-shadow: var(--shadow-light);
}
.gallery-item img {
    width: 100%;
    /* height: 225px; */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item p {
    margin-top: 1rem;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

/* Contact Section */
#contact {
    background-color: var(--color-contact-bg);
    border-radius: 8px;
    padding-bottom: 2rem;
    padding-top: 0;
    
}

/* Footer */
footer {
    text-align: center;
    padding: 0.2rem;
    background-color: var(--color-footer-bg);
    border-top: 1px solid #ddd;
}

body.dark-theme footer {
    border-top: 1px solid #333;
}

/* ================================================== */
/* ========== MOBILE NAVIGATION STYLES ========== */
/* ================================================== */

/* --- Default styles for mobile-first approach --- */
.nav-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000000;
}

.nav-close {
    display: block; /* Will be shown inside the menu */
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-primary);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    width: 25%;
    height: 100%;
    background-color: var(--color-background);
    box-shadow: -2px 0 12px var(--shadow-light);
    padding: 4rem 2rem 0;
    transition: right 0.4s ease;
}

.nav-menu .nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    row-gap: 2.5rem;
}

.nav-link {
    color: var(--color-text-primary);
    font-weight: bold;
}

/* Class added by JavaScript to show the menu */
.show-menu {
    right: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* --- Styles for Desktop (769px and up) --- */
@media screen and (min-width: 769px) {
    /* Hide mobile-only elements on desktop */
    .nav-toggle,
    .nav-close {
        display: none;
    }

    /* Reset mobile menu styles for desktop view */
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }

    .nav-menu .nav-list {
        flex-direction: row;
        column-gap: 2rem;
    }

    /* --- NEW RULE ADDED HERE --- */
    /* This ensures the nav links in the header are always black, even in dark mode */
    .nav-right .nav-link {
        color: #000000;
    }
}

/* --- Styles for smaller screens (under 1000px) --- */
@media screen and (max-width: 940px) {
    .text-section {
        margin-left: 2rem;
        margin-right: 2rem;
    }
}

@media screen and (max-width: 420px) {
section h2 {
    font-size: 2rem;
}
}

@media screen and (max-width: 345px) {
nav .logo {
    font-size: 1.3rem;
}
}