/* ========================================= */
/* Modern, Clean Dark Mode CSS Variables     */
/* ========================================= */
:root {
    --primary-color: #00b36e;
    --secondary-color: #4d66cc;
    --accent-color: #C89B3C; 
    --bg-main: #2b2b2b;
    --bg-alt: #363636;
    --text-main: #e4e4e4;
    --text-dark: #ffffff;
    --nav-bg: #1f1f1f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

body {
    color: var(--text-main);
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========================================= */
/* Navigation                                */
/* ========================================= */
nav {
    background-color: var(--nav-bg);
    padding: 0.5rem 5%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px; /* Creates space between the logo and the text */
}

nav img {
    height: 65px; 
    transition: height 0.3s;
}

.brand-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* ========================================= */
/* General Sections & Typography             */
/* ========================================= */
section {
    padding: 4rem 5%;
    flex: 1; 
}

.bg-grey {
    background-color: var(--bg-alt);
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

h1 {
    color: var(--text-dark); 
}

h2 {
    color: var(--primary-color); /* Changes "About Us" and "Get In Touch" back to green */
}

h3 {
    color: var(--accent-color); /* Keeps the smaller card subheadings in gold */
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

/* ========================================= */
/* Hero Section (Home)                       */
/* ========================================= */
.hero-section {
    text-align: center;
    padding: 6rem 5% 4rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 75vh; 

    /* Dark Photographic Background with a fading gradient mask to remove blocky edges */
    background-image: 
        linear-gradient(rgba(43, 43, 43, 0.97), rgba(43, 43, 43, 0.97)), 
        url('hero-bg.png'); 
    background-size: 1500px auto; 
    background-position: center;  
    background-repeat: no-repeat; 
    
    /* Fades the hard rectangular edges of the background image into the dark background */
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 85%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 89%);
}

/* ========================================= */
/* Buttons                                   */
/* ========================================= */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--nav-bg); 
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 1rem;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
}

/* ========================================= */
/* Table                                     */
/* ========================================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    color: var(--text-main);
}

table, th, td {
    border: 1px solid #555555;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: var(--bg-alt);
    color: var(--accent-color);
}

/* ========================================= */
/* Modal (Pop-up)                            */
/* ========================================= */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.7); 
}

.modal-content {
    background-color: var(--bg-main);
    margin: 10% auto; 
    padding: 30px;
    border: 1px solid #555555;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

/* ========================================= */
/* Card Layout Styling (About & Contact)     */
/* ========================================= */
.card-container, .contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto; 
}

@media screen and (min-width: 800px) {
    .card-container, .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background-color: var(--nav-bg); 
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.card h3 {
    margin-top: 0;
    font-size: 1.4rem;
}

/* ========================================= */
/* Contact Form Styling                      */
/* ========================================= */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #555555;
    border-radius: 5px;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 179, 110, 0.3);
}

.contact-form button {
    width: 100%; 
    margin-top: 0.5rem;
}

/* ========================================= */
/* Footer & Developer Credit                 */
/* ========================================= */
footer {
    background-color: var(--nav-bg);
    color: var(--text-main);
    text-align: center;
    padding: 2rem 5%;
    border-top: 1px solid #333333;
    width: 100%;
}

.developer-credit {
    margin-top: 15px;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; 
}

.developer-credit img {
    height: 45px; 
    width: auto;
}

/* ========================================= */
/* Responsive Media Queries (Tablets/Phones) */
/* ========================================= */
@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem 5%;
    }

    nav img {
        height: 55px; 
        margin-bottom: 0.5rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav-links a {
        margin-left: 0; 
    }

    section {
        padding: 3rem 5%; 
    }

    #home {
        padding: 4rem 5%;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.5rem; 
    }
    
    h2 {
        font-size: 1.3rem;
    }

    #home img {
        max-width: 150px;
    }

    .modal-content {
        margin: 20% auto;
        padding: 20px;
        width: 95%; 
    }

    th, td {
        padding: 8px; 
        font-size: 0.9rem;
    }
}