/* At the very top of css/styles.css */
@font-face {
    font-family: 'Alegreya Sans';
    src: url('../fonts/AlegreyaSans-Regular.woff2') format('woff2'),
         url('../fonts/AlegreyaSans-Regular.woff') format('woff'),
         url('../fonts/AlegreyaSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
/* If you have other weights (e.g., Bold), add their @font-face rules here */


/* Basic Reset & Box-Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Alegreya Sans', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

h1, h2, h3, h4, h5 {
    font-family: 'Alegreya Sans', sans-serif;
}

/* --- Header Styles --- */
header {
    background-color: rgba(255,255,255,0.98); /* Default: White background */
    color: #333; /* Default text color: Dark grey */
    padding: 1.5rem 40px;
    display: flex;
    justify-content: flex-start; /* Align items to the left */
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for all properties */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow when white */
}

/* Scrolled State for Header (controlled by JavaScript) */
header.scrolled {
    background-color: rgba(15, 15, 15, 0.9); /* Transparent dark background on scroll */
    color: #fff; /* White text on scroll */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* More prominent shadow on scroll */
}

/* Site Logo/Title (Image) */
header h1 {
    margin: 0; /* Remove default margin */
    /* font-size and color are handled by the image styling */
}

header h1 img {
    height: 40px; /* Adjust desired logo height */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Remove any extra space below the image */
    transition: filter 0.3s ease; /* Smooth transition for color change */
}

/* Style the logo image when the header is scrolled */
header.scrolled h1 img {
    filter: brightness(0) invert(1); /* Turns a dark logo white (adjust if your logo is already white) */
}

/* Navigation Links */
nav {
    background-color: transparent; /* Remains transparent */
    padding: 0;
    border-radius: 0;
    margin-left: 40px; /* Add space between logo and nav on desktop */
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li:last-child {
    margin-right: 0;
}

/* Nav links - Default state (white header) */
nav ul li a {
    color: #ed4903; /* Orange text for links */
    text-decoration: none;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #000000; /* Black text on hover */
}

/* Nav links - Scrolled state (dark header) */
header.scrolled nav ul li a {
    color: #fff; /* White text when scrolled */
}

header.scrolled nav ul li a:hover,
header.scrolled nav ul li a:focus {
    color: #d1d1d1; /* Lighter grey hover when scrolled */
}


/* --- Main Content Area --- */
main {
    padding-top: 100px; /* Push content below fixed header */
    padding-left: 20px;
    padding-right: 20px;
    max-width: 1200px; /* CHANGE THIS VALUE: Example of making it wider */
    margin: 0 auto; /* Center the content */
    background-color: transparent;
    box-shadow: none;
}

section {
    margin-bottom: 20px;
    padding: 20px;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
}

/* --- Hero Section - Image Left, Text Right --- */
#hero {
    background-color: transparent;
    padding: 0;
    position: relative;
    overflow: visible;
}

/* Organic circle shape offset behind the photo */
.hero-circle-shape {
    position: absolute;
    width: 140%;
    height: 140%;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -65%);
    background: #ed4903;
    border-radius: 50% 40% 60% 30% / 60% 30% 70% 40%;
    opacity: 0.3;
    z-index: 0;
    animation: organicPulse 8s ease-in-out infinite;
}

@keyframes organicPulse {
    0%, 100% {
        border-radius: 50% 40% 60% 30% / 60% 30% 70% 40%;
        transform: translate(-35%, -65%) scale(1);
    }
    25% {
        border-radius: 60% 30% 50% 40% / 50% 40% 60% 30%;
        transform: translate(-35%, -65%) scale(1.02);
    }
    50% {
        border-radius: 40% 60% 30% 50% / 70% 40% 50% 60%;
        transform: translate(-35%, -65%) scale(0.98);
    }
    75% {
        border-radius: 50% 40% 60% 30% / 60% 30% 70% 40%;
        transform: translate(-35%, -65%) scale(1.01);
    }
}

.hero-image img {
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(-15px, 20px) rotate(-5deg);
    }
    75% {
        transform: translate(30px, 10px) rotate(3deg);
    }
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px; /* Or whatever width you set for main */
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.hero-image {
    flex: 1; /* Image takes 1 part of the available space */
    max-width: 25%; /* CHANGE THIS VALUE: Reduced from 33.33% to 25% */
    position: relative;
    overflow: visible;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 2; /* Text takes 2 parts of the available space */
    max-width: 75%; /* CHANGE THIS VALUE: Increased from 66.66% to 75% to compensate */
    padding-left: 40px; /* Space between image and text */
}

/* Info tags styling */
.info-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin: 20px 0 0 0;
    width: 100%;
    max-width: 600px;
}

.info-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background-color: transparent;
    color: #ed4903;
    font-size: 0.95em;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tag-separator {
    color: #ed4903;
    font-size: 1.2em;
    font-weight: 300;
    opacity: 0.6;
}

.info-icon {
    color: #ed4903;
    flex-shrink: 0;
}

/* ... rest of your CSS, including media queries ... */

/* Adjustments for smaller screens */
@media only screen and (max-width: 600px) {
    .hero-container {
        flex-direction: column; /* Stack image and text vertically */
        padding: 20px; /* Adjust padding for smaller screens if needed */
    }

    .hero-image,
    .hero-text {
        max-width: 100%; /* Take full width on small screens */
        padding-left: 0; /* Remove left padding on text */
    }

    .hero-text {
        margin-top: 20px; /* Add space between image and text when stacked */
    }

    .about-hero .about-hero__image-wrap {
        max-width: 100%;
    }

    .about-hero__photos {
        max-width: 300px;
        margin: 0 auto;
    }
}


/* --- Project Gallery Section (#work) --- */
#work {
    padding: 30px 0; /* Adjust padding for gallery section */
    margin-top: 40px;
}

#work h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

/* Grid for Project Items - Explicitly 2 Columns for desktop */
.work-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-content: center;
    max-width: 1200px; /* CHANGE THIS TO MATCH main's new max-width */
    margin: 0 auto;
}

/* Project Item - Base Styling (for the <a> tag) */
.project-item {
    position: relative; /* Crucial for positioning the overlay text */
    display: block; /* Make the link a block to contain content */
    overflow: hidden; /* Hide anything that overflows (like image zoom) */
    background-color: transparent; /* No background for the item itself */
    border: none;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit color, though overlay defines text color */
    height: 300px; /* Set a consistent height for each project item */
}

/* Image styling within Project Item */
.project-item img {
    width: 100%;
    height: 100%; /* Image fills the project-item container */
    object-fit: cover; /* Crop to fit, maintain aspect ratio */
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease-in-out; /* Smooth transition for zoom */
}

/* Darkening overlay on hover (::before pseudo-element) */
.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Start fully transparent */
    transition: background-color 0.4s ease-in-out; /* Smooth transition for darkening */
    z-index: 1; /* Below the text, above the image */
}

.project-item:hover::before {
    background-color: rgba(0, 0, 0, 0.9); /* Darken to 40% opacity on hover */
}

.project-item:hover img {
    transform: scale(1.05); /* Slightly zoom in on hover */
}

/* Project Overlay Text - Hidden by default, appears on hover */
.project-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; /* Use flexbox to center content */
    flex-direction: column; /* Stack title and category vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    text-align: center;
    color: #fff; /* White text for the overlay */
    padding: 20px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.4s ease-in-out; /* Smooth transition for opacity */
    z-index: 2; /* Ensure text is on top of the image and darkening overlay */
}

.project-item:hover .project-overlay-text {
    opacity: 1; /* Fully visible on hover */
}

.project-overlay-text h3 {
    margin: 0 0 5px 0;
    color: #fff; /* White title */
    font-size: 1.8em; /* Larger title */
    text-transform: capitalize;
    line-height: 1.2;
}

.project-overlay-text p.category {
    margin: 0;
    color: #eee; /* Slightly off-white for category */
    font-size: 0.85em;
    letter-spacing: 0.5px;
    text-transform: none;
}


/* --- Contact Form Section --- */
#contact-form {
    padding: 30px;
    margin-top: 40px;
}

#contact-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

#contact-form p {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.1em;
    color: #666;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #45a049;
}

/* --- Project Detail Page Styles (for project1.html etc.) --- */

/* Adjust header for project pages (if needed) */
.project-header {
    background-color: #ffffff; /* Consistent with main page default header */
    color: #333;
    padding: 1.5rem 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.project-header h1 {
    margin-left: 0;
}

.project-header h1 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-header h1 a:hover {
    color: #999;
}

.project-header h1 img {
    height: 40px;
    width: auto;
    display: block;
    transition: filter 0.3s ease;
}

/* Hero Image Section with Overlapping Text - Specific to each project */
.hero-project-cover {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0; /* Remove negative margin as header padding-top pushes main */
    padding-top: 95px; /* Add padding-top to push content below fixed header */
    box-sizing: border-box; /* Ensure padding is included in height */
}

.hero-project-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-text-overlay {
    position: relative;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 600px;
    transform: translateY(100px);
    margin-bottom: -100px;
}

.hero-text-overlay h2 {
    color: #2c3e50;
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-text-overlay p {
    color: #555;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hero-scroll-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.hero-scroll-button:hover {
    background-color: #0056b3;
}


/* Project Details Section (main text content area) */
.project-details {
    max-width: 960px;
    margin: 0 auto 50px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.project-details h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
    font-size: 1.2em;
    font-weight: normal;
}

.project-content-area {
    padding: 20px 0;
}

.project-content-area h4 {
    color: #2c3e50;
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.project-content-area p {
    margin-bottom: 1.5em;
    line-height: 1.8;
    color: #444;
}

.project-content-area ul {
    list-style: disc;
    margin: 0 0 1.5em 25px;
    color: #444;
}

.project-content-area ul li {
    margin-bottom: 0.5em;
}

.process-step {
    background-color: #f9f9f9;
    border-left: 5px solid #8FBC8F;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.process-step h5 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.live-project-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.live-project-button:hover {
    background-color: #45a049;
}

.back-button {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #0056b3;
}

/* --- Footer Styles --- */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

/* --- About Page --- */
.about-hero {
    margin-top: 0;
    margin-bottom: 0;
    padding: 1.25em 4em 1.75em;
}

.about-hero .hero-container {
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

/* Tags share the same measure as body copy */
.about-hero__text .info-tags {
    max-width: 720px;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
    margin-top: 1.25rem;
    margin-bottom: 0;
    justify-content: flex-start;
}

@media only screen and (max-width: 600px) {
    .about-hero .hero-container {
        align-items: center;
    }

    .about-hero .about-hero__image-wrap {
        max-width: 100%;
        min-width: 0;
    }

    .about-hero__portrait {
        width: min(100%, 300px);
    }
}

/* Single portrait with organic shapes (like sticker-style hero) */
.about-hero .about-hero__image-wrap {
    max-width: 38%;
    min-width: 260px;
    flex: 0 0 auto;
    overflow: visible;
}

.about-hero__portrait {
    --about-brand: #ed4903;
    --about-blue-green: #3a9e99;
    position: relative;
    width: min(100%, 360px);
    min-height: 400px;
    margin: 0 auto;
    padding: 1rem 1.25rem 0.5rem;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero__shape {
    position: absolute;
    pointer-events: none;
}

/* Blue-green outline — larger, offset behind the frame */
.about-hero__shape--echo {
    z-index: 0;
    top: 10%;
    left: 54%;
    width: 82%;
    height: 64%;
    transform: translate(-38%, -8%) rotate(-7deg);
    background: transparent;
    border: 2.5px solid var(--about-blue-green);
    border-radius: 32px;
}

/* Brand color rounded frame behind the portrait */
.about-hero__shape--frame {
    z-index: 1;
    top: 18%;
    left: 44%;
    width: 68%;
    height: 54%;
    transform: translate(-52%, 2%) rotate(-9deg);
    background: var(--about-brand);
    border-radius: 28px;
}

/* Bottom-right blue-green accent */
.about-hero__shape--corner-br {
    z-index: 1;
    bottom: 16%;
    right: 2%;
    width: 20%;
    height: 14%;
    background: var(--about-blue-green);
    border-radius: 50% 40% 55% 45%;
    transform: rotate(22deg);
}

.about-hero__portrait-img {
    position: relative;
    z-index: 3;
    width: 86%;
    height: auto;
    display: block;
    object-fit: contain;
}

.about-hero__text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-hero__text p {
    max-width: 720px;
    font-size: 1.1rem;
    color: #444;
}

.about-hero__text p + p {
    margin-top: 1em;
}

.about-hero__list {
    max-width: 720px;
    margin: 0.5em 0 1em;
    padding-left: 1.25em;
    list-style: disc;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
}

.about-hero__list li {
    margin-bottom: 0.4em;
}

.about-cert-details {
    color: #111;
    font-size: 0.95em;
    margin-top: 0.5em;
    max-width: 600px;
    line-height: 1.5;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 1.5rem 0 80px;
    padding-top: 0;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media only screen and (max-width: 992px) {
    .about-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 600px) {
    .about-details {
        grid-template-columns: 1fr;
    }
}

/* About page — auto-scrolling photo strip */
.about-photo-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px 4rem;
}

.about-photo-grid__title {
    text-align: center;
    color: #163942;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
}

.about-gallery-slider {
    overflow: hidden;
    width: 100%;
    border-radius: 8px;
    mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.about-gallery-slider__track {
    display: flex;
    width: max-content;
    gap: 12px;
    animation: about-gallery-scroll 90s linear infinite;
}

.about-gallery-slider__track img {
    width: clamp(140px, 22vw, 220px);
    height: clamp(140px, 22vw, 220px);
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    display: block;
}

@keyframes about-gallery-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-gallery-slider__track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    .about-gallery-slider {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .about-gallery-slider__track img[aria-hidden="true"] {
        display: none;
    }
}

.about-details__card {
    background-color: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.about-details__card h3 {
    color: #ed4903;
    margin-bottom: 12px;
}

.about-details__card ul {
    padding-left: 20px;
    line-height: 1.6;
    color: #444;
}

/* --- Media Queries for Responsiveness --- */
/* Desktop to Tablet transitions */
@media only screen and (max-width: 992px) {
    /* Header/Nav Adjustments */
    header {
        padding: 1.5rem 20px; /* Reduce horizontal padding */
    }
    nav ul li {
        margin: 0 10px; /* Slightly tighter nav links */
    }

    /* Hero Section Adjustments */
    .hero-text {
        padding-left: 20px; /* Reduce padding between image/text */
    }

    /* Work Gallery - 2 columns until 768px */
    .work-container {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns */
        gap: 30px; /* Smaller gap */
    }
    .project-item {
        height: 250px; /* Adjust item height for medium screens */
    }
    .project-overlay-text h3 {
        font-size: 1.5em; /* Smaller title in overlay */
    }
    .project-overlay-text p.category {
        font-size: 0.8em; /* Smaller category text */
    }
}

/* Tablet to Mobile transitions */
@media only screen and (max-width: 768px) {
    /* Header/Nav for Mobile */
    header {
        flex-direction: column; /* Stack header items */
        text-align: center;
        padding: 1rem 15px; /* Adjust padding for smaller screens */
    }
    header h1 {
        margin-bottom: 10px; /* Space between logo and nav */
    }
    nav {
        width: 100%;
        margin-top: 10px;
        margin-left: 0; /* Remove left margin */
    }
    nav ul {
        flex-direction: column; /* Stack nav links vertically */
        align-items: center;
    }
    nav ul li {
        margin: 5px 0;
    }
    main {
        padding-top: 120px; /* Adjust main padding top for taller stacked header */
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section for Mobile */
    .hero-container {
        flex-direction: column; /* Stack image and text vertically */
        padding: 20px 0;
    }
    .hero-image,
    .hero-text {
        max-width: 100%; /* Take full width */
        padding-left: 0;
    }
    .hero-text {
        margin-top: 20px;
    }
    .hero-text h2 {
        font-size: 2em; /* Smaller text on mobile */
    }
    .hero-text p {
        font-size: 1em;
    }
    
    /* Adjust organic circle for mobile */
    .hero-circle-shape {
        width: 120%;
        height: 120%;
        transform: translate(-40%, -60%);
    }

    /* Work Gallery - 1 column on mobile */
    .work-container {
        grid-template-columns: 1fr; /* Stack to a single column */
    }
    .project-item {
        height: 220px; /* Adjust item height for smaller screens */
        max-width: 500px; /* Optional: limit single column width for better readability */
        margin: 0 auto; /* Center single column */
    }

    /* Project Detail Page Hero Adjustments */
    .hero-project-cover {
        height: 350px; /* Shorter hero on mobile */
        padding-top: 120px; /* Adjust for taller header */
    }
    .hero-text-overlay {
        padding: 20px;
        transform: translateY(50px); /* Minimal overlap */
        margin-bottom: -50px;
    }
    .hero-text-overlay h2 {
        font-size: 1.8em;
    }
    .hero-text-overlay p {
        font-size: 0.9em;
    }
    .project-details {
        padding: 15px;
    }
}

/* Smaller Phones */
@media only screen and (max-width: 480px) {
    header {
        padding: 0.8rem 10px; /* Even smaller header padding */
    }
    header h1 img {
        height: 35px; /* Smaller logo */
    }
    nav ul li {
        margin: 0 8px; /* Tighter nav links */
    }
    main {
        padding-top: 110px; /* Adjust main padding */
    }
    .hero-project-cover {
        height: 300px; /* Even shorter hero */
    }
    .hero-text-overlay h2 {
        font-size: 1.5em;
    }
    .hero-text-overlay p {
        font-size: 0.8em;
    }
}