/* === WINDOM BRAND THEME === */
:root {
    --bg-dark: #1A1D20;        
    --bg-panel: #24272B;       
    --gold-accent: #C29B57;    
    --gold-hover: #D4AF37;     
    --text-main: #EAEAEA;      
    --text-muted: #A0A0A0;     
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--gold-accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 20px auto; 
    color: var(--text-muted);
    text-align: center;
    text-transform: none;
}

/* Header & Navigation */
header {
    background-color: var(--bg-dark);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--gold-accent);
    position: relative; /* Needed for mobile menu dropdown */
}
.logo img {
    max-height: 80px;
    display: block;
}
.nav-links {
    display: flex;
    gap: 25px;
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--gold-hover);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--gold-accent);
    font-size: 2rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 20px 20px 50px 20px;
    text-align: center;
    /* Added var(--bg-dark) as a fallback before the image loads */
    background: linear-gradient(to bottom, rgba(26, 29, 32, 0.8), #000000), var(--bg-dark) url('hero-background.jpg') no-repeat center center/cover;
}
.hero h1 {
    font-size: 3.5rem;
    margin-top: 0; 
    margin-bottom: 15px;
}

/* Portfolio Section */
#portfolio {
    /* Added var(--bg-dark) as a fallback */
    background: linear-gradient(to bottom, rgba(26, 29, 32, 0.8), #000000), var(--bg-dark) url('hero-background.jpg') no-repeat center center/cover;
    border-top: 2px solid var(--gold-accent);
}
#portfolio .container {
    padding-top: 15px; 
}
#portfolio h2 {
    margin-top: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: transparent;
    color: var(--gold-accent);
    padding: 12px 30px;
    text-decoration: none;
    border: 2px solid var(--gold-accent);
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.btn:hover {
    background-color: var(--gold-accent);
    color: var(--bg-dark);
}

/* Container & Grids */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.gallery-card {
    background-color: var(--bg-panel);
    border-radius: 8px;
    overflow: hidden;
    border-bottom: 4px solid var(--gold-accent);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
}
.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.gallery-card .caption {
    padding: 15px;
    text-align: center;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: #000;
    text-align: center;
    padding: 40px 20px; 
    border-top: 2px solid var(--gold-accent);
}
footer h2 {
    margin-bottom: 15px;
    font-size: 1.5rem; 
}
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 30px; 
    font-size: 1.1rem; 
    margin-bottom: 20px;
}
.contact-info p {
    margin: 0; 
}
.contact-info a {
    color: var(--gold-accent);
    text-decoration: none;
}
.contact-info a:hover {
    text-decoration: underline;
}
.footer-logo {
    max-height: 80px; 
    margin-bottom: 15px;
    display: inline-block;
}

.back-to-top {
    display: inline-block;
    margin-top: 15px;
    color: var(--gold-accent);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-bottom: 15px;
}
.back-to-top:hover {
    color: var(--text-main);
}

/* === Responsive Media Queries === */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block; /* Show hamburger icon */
    }
    .nav-links {
        display: none; /* Hide default nav */
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding-top: 20px;
        flex-basis: 100%;
    }
    .nav-links.active {
        display: flex; /* Show nav when JS toggles the active class */
    }
}