/* Import CSS Variables and Typography */
:root {
    /* Font Families */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;

    /* Font Sizes */
    --font-size-base: 16px;
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.75rem;
    --font-size-h4: 1.5rem;
    --font-size-h5: 1.25rem;
    --font-size-h6: 1rem;
    --font-size-body: 1rem;
    --font-size-small: 0.875rem;

    /* Line Heights */
    --line-height-normal: 1.5;
    --line-height-heading: 1.2;

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-bold: 700;
    --font-weight-semibold: 600;
    --font-weight-light: 300;

    /* Colors */
    --primary-orange: #FF8C00;
    --primary-black: #000000;
    --secondary-gray: #2C2C2C;
    --accent-gold: #FFD700;
    --background-light-gray: #F5F5F5;
    --text-white: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #555555;
    --text-accent: #FF8C00;
}

/* Reset and Base Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--background-light-gray);
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em 0;
}

/* Header */
header {
    background-color: var(--primary-black);
    color: var(--text-white);
    padding: 10px 20px;
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-image: url('resources/images/banner.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    flex-direction: column; /* Change flex direction to column */
    justify-content: flex-end; /* Align the container to the bottom */
}

.menu-container {
    display: flex;
    justify-content: center; /* Horizontally center the nav */
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.logo h1 {
    font-family: var(--font-primary);
    font-size: var(--font-size-h3);
}

nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 800px; /* Optional: Set max width for better design */
    margin: 0 auto;
    list-style: none;
}


.menu-container a {
    text-decoration: none; /* Remove underline from all links */
    color: var(--text-primary); /* Adjust to your text color */
    font-weight: bold;
    font-size: larger;
    padding: 10px 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    color: var(--text-primary); /* Set the default text color */
    display: block;
}

/* Hover effect */
.menu-container a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Lighten the background */
    color: var(--primary-orange); /* Change text color on hover */
    transform: translateY(-3px); /* Animate the tab upwards */
}

/* Active/Selected tab */
.menu-container a.active {
    background-color: var(--primary-orange); /* Highlight current tab */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4); /* Elevate the active tab */
}


/* Hero Section */
.hero {
    background: url('hero-background.jpg') no-repeat center center/cover;
    color: var(--text-white);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px; /* To account for fixed header */
}

.hero-image {
    width: 100%; /* or set a specific width, e.g., 300px */
    max-width: 600px;
    margin-top: 60px; /* space between the button and the image */
    display: block;
    margin-left: auto;
    margin-right: auto;
}


.hero h2 {
    font-family: var(--font-primary);
    font-size: var(--font-size-h1);
    margin-bottom: 0.5em;
}

.hero p {
    font-size: var(--font-size-h2);
    margin-bottom: 1em;
}

.btn {
    background-color: var(--primary-orange);
    color: var(--text-white);
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 4px;
    font-size: var(--font-size-body);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--accent-gold);
}

/* Sections */
section {
    padding: 4em 0;
}

section h2 {
    font-family: var(--font-primary);
    font-size: var(--font-size-h2);
    text-align: center;
    margin-bottom: 1em;
    color: var(--primary-black);
}

section p {
    font-family: var(--font-secondary);
    font-size: var(--font-size-body);
    text-align: center;
    max-width: 800px;
    margin: 0.5em auto 2em auto;
    color: var(--text-secondary);
}

/* About Section */
.about p {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

/* Services Section */
.services .service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
}

.service-card {
    background-color: var(--text-white);
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 250px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    font-family: var(--font-primary);
    font-size: var(--font-size-h3);
    margin-bottom: 0.5em;
    color: var(--primary-black);
}

.service-card p {
    color: var(--text-secondary);
}

/* Portfolio Section */
.portfolio .portfolio-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
}

.portfolio-card {
    background-color: var(--text-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-card h3 {
    font-family: var(--font-primary);
    font-size: var(--font-size-h3);
    margin: 1em;
    color: var(--primary-black);
}

.portfolio-card p {
    font-family: var(--font-secondary);
    font-size: var(--font-size-body);
    margin: 0 1em 1em 1em;
    color: var(--text-secondary);
}

/* Resume Section */
.resume {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.resume p {
    margin-bottom: 1.5em;
}

/* Testimonials Section */
.testimonials .testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
}

.testimonial-card {
    background-color: var(--text-white);
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px;
    position: relative;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1em;
}

.testimonial-card h4 {
    font-family: var(--font-primary);
    font-size: var(--font-size-h5);
    color: var(--primary-orange);
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
}

.contact form {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.contact input,
.contact textarea {
    padding: 0.75em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: var(--font-size-body);
}

.contact button {
    align-self: flex-start;
}

.contact-info {
    flex: 1 1 300px;
}

.contact-info p {
    margin-bottom: 0.5em;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 10px; /* Adjust the gap between icons as needed */
}

.contact-social img {
    width: 35px;
    height: 35px;
}


/* Footer */
footer {
    background-color: var(--primary-black);
    color: var(--text-white);
    text-align: center;
}

.footer-links {
    margin-bottom: 1em;
}

.footer-links a {
    color: var(--text-white);
    margin: 0 0.5em;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

/* Media Queries */
@media (max-width: 768px) {
    .hero {
        margin-top: 160px; /* Increase margin to ensure space below the header */
        margin-bottom: 160px; /* Adjust margin bottom for mobile devices */
    }

    .contact-content {
        flex-direction: column;
    }

    .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        width: 100%;
        text-align: center;
    }

    header {
        background-image: url('resources/images/logo.jpg');
        background-position: center;
        height: 300px;
    }
    
}

@media (min-width: 769px) {

}

@media (max-width: 480px) {
    .service-card,
    .portfolio-card,
    .testimonial-card {
        flex: 1 1 100%;
    }
}
