/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Roboto:wght@300;400;700&display=swap');

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

body {
    font-family: 'Roboto', sans-serif; /* Set Roboto as the default font for body */
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0; /* Extend across the entire top */
    z-index: 1000;
    background-color: #f9f9f9; /* Off white background */
    padding: 15px 0;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: flex-end; /* Align items to the right */
    margin: 0;
    padding: 0 20px;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #333; /* Default dark text */
    padding: 10px 15px; /* Add padding for clickable area */
    border-radius: 5px; /* Rounded corners */
    transition: all 0.3s ease; /* Smooth hover transition */
}

.navbar ul li a:hover {
    background-color: #333; /* Darker background on hover */
    color: #fff; /* Light text on hover */
}

/* Add spacing for body to prevent content overlap with navbar */
body {
    padding-top: 60px;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        align-items: flex-end;
    }

    .navbar ul li {
        margin: 5px 0;
    }
}

/* Archivo Font Class for Headings */
.archivo-black-regular {
    font-family: "Archivo Black", sans-serif;
    font-weight: 400;
    font-style: normal;
  }

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Header Styles */
header {
    background-color: #d3d3d3; /* Light gray background */
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
    position: relative;
}

/* Name Section */
.header-name {
    flex: 1;
    min-width: 250px;
}

.header-name h1 {
    font-size: 3rem;
    color: #000;
    margin-bottom: 20px;
}

.header-name h2 {
    font-size: 1.5rem;
    color: #555;
}

/* Headshot Image */
.header-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 250px;
    background-color: #d3d3d3; /* Light gray background */
    padding: 20px;
    border-radius: 10px;
}

.header-image img {
    width: 300px; /* Increased size */
    height: 300px; /* Increased size */
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    opacity: 0; /* Initially hidden for fade-in */
    animation: fadeIn 2s forwards;
}

/* Phrases Section */
.header-phrases {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header-phrases .phrase {
    font-size: 1.5rem;
    color: #2c2c2c;
    opacity: 0; /* Initially hidden for fade-in */
    margin-bottom: 10px;
}

.phrase-1 {
    animation: fadeInPhrase 1s forwards;
    animation-delay: 1s;
}

.phrase-2 {
    animation: fadeInPhrase 1s forwards;
    animation-delay: 2s;
}

.phrase-3 {
    animation: fadeInPhrase 1s forwards;
    animation-delay: 3s;
}

/* About Section */
#about {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Anton', sans-serif; /* Use Anton for section headings */
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 400; /* Regular weight for paragraphs */
    color: #333;
}

/* Projects Section */
#projects {
    padding: 60px 20px;
    background-color: #f4f4f4;
}

#projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-family: 'Anton', sans-serif; /* Use Anton for section headings */
}

.project {
    margin-bottom: 40px;
}

.project-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.project-image, .project-details {
    flex: 1 1 45%;
    margin: 10px;
}

/* Ensure all project images are same size */
.project-image {
    width: 100%;
    max-width: 450px;
    height: 300px; /* Fixed height for uniformity */
    overflow: hidden;
    border-radius: 10px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container, cropping if necessary */
}

/* Project Details */
.project-details h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: 'Anton', sans-serif; /* Use Anton for project titles */
}

.project-details p {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 400; /* Regular weight for paragraphs */
    color: #333;
}

.project-details a {
    text-decoration: none;
    color: #fff;
    background-color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.project-details a:hover {
    background-color: #555;
}

/* Projects Section Styling */
.projects-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Full viewport height */
    padding: 20px;
    background-color: #f9f9f9;
    text-align: center;
}

/* View All Projects Styling */
.view-all-projects .project-content {
    max-width: 600px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Button Styling */
.btn-view-all {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-view-all:hover {
    background-color: #0056b3;
}

/* Contact Section */
#contact {
    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Anton', sans-serif; /* Use Anton for section headings */
}

#contact p {
    font-size: 1.1rem;
    margin: 10px 0;
    font-weight: 400; /* Regular weight for paragraphs */
    color: #333;
}

#contact a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

#contact a:hover {
    color: #555;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Fade-in Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInPhrase {
    to {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-container {
        flex-direction: column;
    }

    .header-phrases {
        align-items: center;
    }

    .header-name, .header-image, .header-phrases {
        text-align: center;
    }

    .header-phrases .phrase {
        align-items: center;
    }

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

    .project-image, .project-details {
        flex: 1 1 100%;
    }

    /* Adjust project image height for medium screens */
    .project-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 40px 10px;
    }

    .header-name h1 {
        font-size: 2.5rem;
    }

    .header-image img {
        width: 200px;
        height: 200px;
    }

    .phrase {
        font-size: 1.2rem;
    }

    #projects h2, #about h2, #contact h2 {
        font-size: 2rem;
    }

    .project-details a {
        padding: 8px 16px;
    }

    /* Further adjust project image height for small screens */
    .project-image {
        height: 200px;
    }
}
