/* --- 0. Global Reset and Variables (RED DARK MODE) --- */
:root {
    --primary-light: #f8f9fa;   /* Light text color (Off-white) */
    --secondary-dark: #1a1a1d; /* Deep Black/Charcoal for Main Background */
    --accent-color: #ff304f;   /* Electric Red for Energy/Pop */
    --text-color: #c5c6c7;     /* Light gray for body text */
    --light-bg: #262629;       /* Slightly lighter section background */
    --white: #ffffff;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.6); /* Darker shadow for depth */
}

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--secondary-dark); /* Main Dark Background */
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--primary-light); /* Light headings */
    margin-bottom: 0.5em;
    letter-spacing: 1px;
}

h2 { font-size: 2.5em; }
h3 { color: var(--primary-light); }

.sub-heading {
    color: var(--accent-color); /* Red pop */
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

/* --- 1. Navigation Bar --- */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar {
    background: var(--secondary-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.logo {
    font-size: 1.8em;
    font-family: var(--font-heading);
    color: var(--accent-color); /* Red Logo pop */
}

.navbar nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar nav a:hover {
    color: var(--accent-color);
}

/* NAVIGATION CTA BUTTON STYLES */
.nav-cta {
    background: var(--accent-color);
    color: var(--primary-light) !important; /* Set Default Text to White */
    padding: 8px 15px;
    border-radius: 5px;
    margin-left: 15px;
    font-weight: 700 !important;
    transition: background 0.3s, color 0.3s; /* Include color transition */
}

.nav-cta:hover {
    background: var(--primary-light);
    color: var(--secondary-dark) !important; /* Hover Text is Dark */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--primary-light);
    cursor: pointer;
}

/* --- 2. Hero Section (With Background Image Effect) --- */
.hero {
    /* All image files are now .png */
    background: linear-gradient(rgba(26, 26, 29, 0.8), rgba(26, 26, 29, 0.8)),
                url('assets/img/hero-background.png') no-repeat center center/cover fixed;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

/* STYLES FOR THE LARGER HERO LOGO (positioned above H1) */
.hero-logo {
    height: 100px;
    width: auto;
    margin-bottom: 15px;
    /* Increased white glow effect (increased blur and alpha) */
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.9)); 
}

.hero-content h1 {
    font-size: 4.5em;
    color: var(--white);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    display: block; 
    margin-bottom: 0.1em;
}

.hero-content h2 {
    font-size: 1.8em;
    color: var(--accent-color); /* Red Pop */
    font-weight: 400;
    margin-bottom: 30px;
}

/* --- KEYFRAMES FOR PULSING GLOW EFFECT --- */
@keyframes pulse-red-glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 48, 79, 0.7); /* Base intensity */
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 48, 79, 1); /* Max intensity */
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 48, 79, 0.7); /* Return to base */
    }
}

/* --- 3. CTA Button (Pulsing Red Glow Effect) --- */
.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--secondary-dark);
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    
    /* Apply the pulse animation */
    animation: pulse-red-glow 2s infinite alternate; 
}

.cta-button:hover {
    background: var(--primary-light);
    color: var(--secondary-dark);
    box-shadow: 0 0 20px rgba(248, 249, 250, 0.6);
    animation: none; /* Stop pulsing on hover for better interaction */
}

.cta-button i {
    margin-left: 8px;
}

.text-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
    display: inline-block;
    margin-top: 15px;
    transition: color 0.3s;
}

.text-link:hover {
    color: var(--primary-light);
    border-color: var(--primary-light);
}

/* --- 4. Section Styling --- */
.section {
    padding: 100px 0;
}

/* Meet Matthew Section Styling */
.meet-matt {
    background-color: var(--secondary-dark);
    text-align: left;
}

.meet-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.matt-image-container {
    flex: 1;
    min-width: 300px;
}

/* PROFILE IMAGE STYLING (PULSING RED GLOW) */
.profile-img {
    width: 100%;
    max-height: 450px; 
    object-fit: cover; 
    display: block;
    border-radius: 10px;
    
    /* Apply the pulse animation */
    animation: pulse-red-glow 3s infinite alternate; /* Slower pulse for the image */
    box-shadow: 0 0 15px var(--accent-color); /* Base glow for consistency */
}

.text-content {
    flex: 2;
}

/* Expertise/Qualifications Section */
.expertise-qualifications {
    background-color: var(--light-bg);
    text-align: center;
}

.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.qualification-item {
    background: var(--secondary-dark);
    color: var(--text-color);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    border-top: 5px solid var(--accent-color); /* Bright Red border highlight */
    transition: transform 0.3s, background 0.3s;
}

.qualification-item:hover {
    transform: translateY(-5px);
    background: #333336;
}

.icon-lg {
    font-size: 2.5em;
    color: var(--accent-color); /* Red icons */
    margin-bottom: 15px;
    display: block;
}

.qualification-item h4 {
    color: var(--primary-light);
    margin-bottom: 10px;
}

/* Services Placeholder */
.services-placeholder {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--light-bg);
    color: var(--primary-light);
    padding: 30px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 1.4em;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--accent-color); /* Red accent border on cards */
}

/* --- 5. Contact CTA Section --- */
.contact-cta {
    background: var(--light-bg);
    color: var(--white);
    text-align: center;
}

.contact-cta h2, .contact-cta p {
    color: var(--primary-light);
}

/* CONTACT FORM STYLES */
.contact-form {
    max-width: 600px;
    margin: 30px auto 0;
    text-align: center; /* Center the submit button */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 1em;
    font-family: var(--font-body);
    background: #3a4759;
    color: var(--primary-light);
    text-align: left; /* Keep input text left-aligned */
}

/* Placeholder styling for white text */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--white); /* White text color */
    opacity: 1; /* Ensures full visibility */
}

/* Vendor prefixes for cross-browser support */
.contact-form input::-webkit-input-placeholder,
.contact-form textarea::-webkit-input-placeholder {
    color: var(--white);
}
.contact-form input:-moz-placeholder,
.contact-form textarea:-moz-placeholder {
    color: var(--white);
    opacity: 1;
}
.contact-form input::-moz-placeholder,
.contact-form textarea::-moz-placeholder {
    color: var(--white);
    opacity: 1;
}
.contact-form input:-ms-input-placeholder,
.contact-form textarea:-ms-input-placeholder {
    color: var(--white);
}


/* --- 6. Footer Styles --- */
.site-footer {
    background: #101012; /* Even darker footer background */
    color: var(--text-color);
    text-align: center;
    padding: 30px 0;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-powered-by img {
    height: 40px; /* Adjust size of the Apexia logo */
    width: auto;
    opacity: 0.6; /* Slightly dim the logo */
    transition: opacity 0.3s;
}

.footer-powered-by a:hover img {
    opacity: 1; /* Brighten on hover */
}

.footer-text p {
    margin: 5px 0;
    font-size: 0.9em;
}

.footer-text .small-text {
    font-size: 0.8em;
    color: #4e5e73; /* Subtle color for secondary info */
}


/* --- 7. Responsive Design (Mobile First) --- */
@media (max-width: 900px) {
    .meet-content {
        flex-direction: column;
    }
    .profile-img {
        max-height: 350px;
        margin-bottom: 30px;
    }
    .text-content {
        text-align: center;
    }
    .hero-content h1 {
        font-size: 3.5em;
    }
    .hero-logo {
        height: 80px; /* Smaller logo on tablet */
    }
}

@media (max-width: 768px) {
    .navbar nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: var(--secondary-dark);
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.5);
    }
    .navbar nav.active {
        display: flex;
    }
    .navbar nav a {
        padding: 15px 20px;
        border-bottom: 1px solid #3a4759;
        text-align: center;
    }
    .nav-cta {
        margin-left: 0;
        border-radius: 0;
    }
    .menu-toggle {
        display: block;
    }
    .qualifications-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-logo {
        height: 60px; /* Even smaller logo on mobile */
    }
}