*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

:root {
    --base: #f7f7f7;
    --black: #11100e;
    --white: #ffffff;
    --red: #da2b26;
    --blue: #1a3685;
    --font-primary: 'Outfit', sans-serif;
}
body {
    
    font-family: 'Outfit', sans-serif;
    background-color: #f7f7f7;
    color: #333;
    margin: 0;
    padding: 0;
}
/* Base styles for the hero section */
.project-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 65vh; /* Full viewport height */
    background-image: url('assets/pexels-scottwebb-1029615.jpg'); /* Replace with your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    ; /* White text for contrast */
}

/* Overlay for better text visibility */
.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(206, 206, 206, 0.5); /* Semi-transparent black overlay */
    z-index: 1;
}

/* Foreground content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

/* Hero heading */
.hero-content h1 {
    color: var(--blue);
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7); /* Text shadow for readability */
}

/* Hero paragraph */
.hero-content p {
    color: var(--base);
    font-size: 1.5rem;
    line-height: 1.6;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7); /* Text shadow for readability */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* Projects gallery section */
.projects-gallery {
    padding: 40px 20px;
    background-color: #f8f8f8;
    text-align: center;
}

.projects-gallery h2 {
    color: var(--blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.projects-container {
    align-items: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center; /* Center the project cards */
}

.project-card {
    background: var(--base);
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

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

.project-card h3 {
    padding: 10px;
    font-size: 1.2rem;
    background: var(--blue);
    color: var(--base);
    text-align: center;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
    align-items: center;
    justify-content: center;
}

.modal-content {
    display: flex;
    flex-direction: column;
    background: var(--base);
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    overflow: hidden;
    position: relative;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--red);
}

.modal-body {
    display: flex;
    height: 100%;
}

/* Left: Image scroll */
.image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--base);
}

.image-container img {
    max-width: 100%;
    max-height: 90%; /* Increase image size */
    border-radius: 5px;
    object-fit: cover;
}

.scroll-btn {
    position: absolute;
    background: var(--blue);
    color: var(--base);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
}

.scroll-btn#prev-btn {
    left: 20px;
}

.scroll-btn#next-btn {
    right: 20px;
}

/* Right: Description */
.description-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.description-container h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--blue);
}

.description-container p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--black);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
    }

    .image-container img {
        max-height: 100%; /* Adjust image size for smaller screens */
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
    }

    .image-container img {
        max-height: 100%; /* Adjust image size for smaller screens */
    }
}


