/* --- CSS Variables for Consistency --- */
:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --text-color: #333333;
    --background-color: #aac5df;
    --nav-background: rgba(240, 235, 235, 0.9);
    --overlay-color: rgba(0, 0, 0, 0.5);
    --cta-hover-bg: #0056b3;
    --nav-hover-bg: #000000;
    --nav-hover-text: #f5f2f2;
}

/* --- General Body Styling --- */
body {
    font-family: Arial, sans-serif, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('src/background.jpg'); /* Background image for entire page */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-color: var(--background-color); /* Fallback color */
    color: var(--text-color); /* Default text color */
    position: relative;
    min-height: 100vh; /* Ensure body takes at least full viewport height */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Overlay for Entire Page */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3); /* Light overlay */
    z-index: -1;
    pointer-events: none; /* Allow clicks through the overlay */
}

/* --- Navigation Bar --- */
nav {
    display: flex;
    background-color: var(--nav-background); /* Slight transparency using RGBA */
    justify-content: center; /* Center the nav items */
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    backdrop-filter: blur(5px); /* Optional: Blur background for modern browsers */
}

nav a {
    color: #000000;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: var(--nav-hover-bg);
    color: var(--nav-hover-text);
    border-radius: 4px; /* Rounded corners on hover */
}

/* Responsive Navigation (Optional) */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav a {
        width: 100%;
        padding: 10px 16px;
    }
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 20px; /* Adjust padding as needed */
    background-image: url('src/images/hero-background.jpg'); /* Ensure the correct path */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: scroll; /* Change to 'fixed' if parallax effect desired */
    position: relative;
    color: #ffffff; /* Text color for contrast */
    min-height: 80vh; /* Ensure the hero section takes up enough space */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color); /* Dark overlay */
    z-index: 0;
    pointer-events: none; /* Allow interactions with content */
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--cta-hover-bg);
    transform: translateY(-2px); /* Subtle lift on hover */
}

.hero-image img {
    width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

/* Responsive Adjustments for Hero Section */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 20px;
    }
    
    .hero-image img {
        width: 80%;
        margin-top: 20px;
    }
    
    .hero-content h1 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8em;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* --- Brief Intro Section --- */
/* Example Styling: Adjust as per your HTML structure */
.brief-intro {
    padding: 50px 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    color: #333333;
}

.brief-intro p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.2em;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

@media (max-width: 600px) {
    .brief-intro p {
        font-size: 1em;
    }
    
    .social-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- Portfolio Section --- */
/* Example Styling: Adjust based on your portfolio HTML structure */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-link {
    text-decoration: none;
    color: inherit;
}

.portfolio-item {
    background-color: rgb(201, 211, 233);
    border-radius: 10px;
    box-shadow: 0px 0px 5px 0px #aaa;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.portfolio-item:hover {
    transform: scale(0.95); /* Zoom out by 5% */
    box-shadow: 0px 8px 16px rgba(102, 96, 96, 0.2);
    z-index: 1;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
    display: block;
    object-fit: cover;
}

.portfolio-item h2 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin: 15px;
    text-align: center;
}

.portfolio-item p {
    color: #666666;
    font-size: 1em;
    margin: 0 15px 15px;
    text-align: center;
    flex-grow: 1;
}

/* Remove Float Clearfix */
.portfolio-container::after {
    content: "";
    display: table;
    clear: both;
}

/* --- Footer Styling --- */
footer {
    background-color: #ffffff;
    color: #070000;
    text-align: center;
    padding: 20px 10px;
    opacity: 0.8;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #0f0000;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* --- Responsive Typography and Elements --- */
@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .portfolio-item h2 {
        font-size: 1.3em;
    }

    .portfolio-item p {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        padding: 8px;
    }

    .portfolio-item h2 {
        font-size: 1.2em;
    }

    .portfolio-item p {
        font-size: 0.9em;
    }
}
