/* --- Dark Theme Color Palette Variables --- */
:root {
    --primary-color: #e53935;     /* Bold Action Red (Accent) */
    --secondary-color: White;   /* Lighter Red/Orange (Subtle Highlight) */
    --text-light: #f5f5f5;        /* Near White Text */
    --text-dark: #121212;         /* Deep Charcoal Background (Header/Footer) */
    --background-dark: #1e1e1e;   /* Main Background */
    --card-background: #2b2b2b;   /* Slightly lighter card background */
}

/* Basic Reset & Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-dark); 
    color: var(--text-light); 
    line-height: 1.6;
}

/* General Link and HR Styles */
a {
    transition: color 0.3s;
}

hr {
    border: none;
    border-top: 1px solid #3a3a3a; 
    margin: 40px auto;
    width: 90%;
}

/* 1. LOGO HEADER STYLES */
.logo-header {
    background-color: var(--text-dark);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary-color); 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: sticky; 
    top: 0;
    z-index: 10;
}

.agency-logo {
    height: 45px; 
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
}

nav a:hover {
    color: var(--primary-color);
}

/* 2. HERO SECTION STYLES - With Background Image and Overlay */
.hero {
    text-align: center;
    padding: 120px 5%;
    position: relative; 
    overflow: hidden;
    color: var(--text-light); 
    
    /* Hero Background Image Properties */
    background-image: url('https://www.appacademy.io/wp-content/uploads/2024/01/657881cbd670f8d90a07af19_software-engineer-vs-web-developer-blog-hero-image.webp'); /* CHANGE THIS PATH */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
}

/* The Semi-Transparent Dark Overlay for Hero */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    background-color: var(--text-dark); 
    opacity: 0.85; 
}

/* Ensure Hero Content is on Top of the Overlay */
.hero h2, .hero h1, .hero p, .hero .cta-button {
    position: relative; 
    z-index: 2;
}

/* HERO Content Styling (remains the same) */
.hero h2 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 5px;
}
.hero h1 {
    font-size: 3.2em;
    color: var(--primary-color); 
    margin-bottom: 15px;
    font-weight: 700;
}
.hero p {
    font-size: 1.2em;
    color: #bdbdbd; 
    max-width: 800px;
    margin: 0 auto 15px;
}
.cta-button {
    display: inline-block;
    background-color: var(--primary-color); 
    color: var(--text-light);
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 8px; 
    font-size: 1.15em;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, transform 0.2s;
    border: 2px solid var(--primary-color); 
    margin-top: 20px;
}
.cta-button:hover {
    background-color: #c62828; 
    transform: translateY(-2px);
}

/* 3. GENERAL CONTENT SECTION STYLES (About Us) */
.content-section {
    padding: 80px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--text-light);

    /* --- ABOUT US SPECIFIC BACKGROUND --- */
    background-image: url('https://www.idm.edu/wp-content/uploads/2021/10/web_design.jpg'); /* <-- CHANGE THIS PATH */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Overlay for About Us section */
.content-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    background-color: var(--text-dark); 
    opacity: 0.8; 
}

/* Ensure content is above the overlay */
.content-section h2, 
.content-section .section-description-wide, 
.content-section .contact-info-footer {
    position: relative;
    z-index: 1;
}

.content-section h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-description-wide {
    max-width: 900px;
    margin: 0 auto 30px;
    font-size: 1.15em;
    color: #bdbdbd;
}

.contact-info-footer {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 30px;
}


/* 4. TEMPLATES/PROJECT SECTIONS STYLES */
/* Base styles for all project sections - applies overlay logic */
.templates-section {
    padding: 80px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--text-light);
}

/* Overlay for all project sections */
.templates-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: var(--text-dark); 
    opacity: 0.85; 
}

/* Ensure content is above the overlay for all project sections */
.templates-section h2, 
.templates-section .section-description, 
.templates-section .template-grid {
    position: relative;
    z-index: 1;
}

/* --- SPECIFIC PROJECT SECTION BACKGROUND IMAGES --- */
#portfolio {
    background-image: url('https://creativecommunityonline.co.za/wp-content/uploads/2023/05/info-3.jpg'); /* <-- CHANGE THIS PATH */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#basic-websites {
    background-image: url('https://www.michaelpage.com.au/sites/michaelpage.com.au/files/2021-10/Web%20Developer.jpg'); /* <-- CHANGE THIS PATH */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#ecommerce {
    background-image: url('https://www.simplilearn.com/ice9/free_resources_article_thumb/is_web_development_good_career.jpg'); /* <-- CHANGE THIS PATH */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#academic-portals {
    background-image: url('https://mishpacha.com/wp-content/uploads/2022/07/So-You-Want-to-Be-a%E2%80%A6-Web-Developer-R.jpg'); /* <-- CHANGE THIS PATH */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
/* --- END SPECIFIC BACKGROUNDS --- */


.templates-section h2 {
    font-size: 2.5em;
    color: var(--text-light);
    margin-bottom: 10px;
}

.section-description {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #9e9e9e;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px;
    margin-top: 40px;
}

.template-card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    padding: 25px;
    text-align: left;
    transition: all 0.3s ease-in-out;
    border: 1px solid #333; 
    overflow: hidden;
}

.template-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    border-color: var(--primary-color); 
}

.template-card img {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #444; 
}

.template-card h3 {
    color: var(--secondary-color); 
    margin-top: 0;
}

.live-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

.live-link:hover {
    color: var(--secondary-color); 
}

/* 8. MESSAGE US / CONTACT FORM STYLES */
.contact-form-section {
    padding: 80px 5%;
    text-align: center;
    background-color: var(--background-dark);
}

.message-form {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 30px;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.message-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-light);
}

.message-form input[type="email"],
.message-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 1em;
    background-color: #333; 
    color: var(--text-light);
    box-sizing: border-box; 
    transition: border-color 0.3s;
}

.message-form input[type="email"]:focus,
.message-form textarea:focus {
    border-color: var(--primary-color); 
    outline: none;
}

.submit-button {
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

/* 9. FOOTER STYLES */
#contact-footer {
    text-align: center;
    padding: 30px;
    background-color: var(--text-dark);
    color: #9e9e9e;
    font-size: 0.9em;
}

.footer-contact {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--text-light);
}

/* ---------------------------------------------------- */
/* HAMBURGER MENU & MOBILE STYLES */
/* ---------------------------------------------------- */

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    color: var(--primary-color); 
    cursor: pointer;
    padding: 0 10px;
}

@media (max-width: 768px) {
    
    .hamburger {
        display: block;
        z-index: 1001; 
    }

    .nav-links {
        display: none; 
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 73px; 
        left: 0;
        background-color: var(--text-dark); 
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
        z-index: 1000;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 0;
        margin: 0; 
        border-bottom: 1px solid #333; 
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links.active {
        display: flex; 
    }

    /* Mobile Adjustments for Content */
    .hero {
        padding: 60px 5%;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .template-grid {
        grid-template-columns: 1fr; 
    }

    .contact-info-footer {
        flex-direction: column;
        gap: 10px;
    }
}