/* =========== Global Styles & Variables =========== */
:root {
    --primary-text: #222222;
    --secondary-text: #555555;
    --border-color: #EAEAEA;
    --background-color: #FFFFFF;
    --card-background: #FDFDFD;
    --font-main: 'Inter', sans-serif;
}

/* =========== Base & Reset =========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--primary-text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: var(--primary-text);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--secondary-text);
}

img {
    max-width: 100%;
    display: block;
}

/* =========== Header =========== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
	position: sticky;
	background-color: white;
	border-bottom: 1px solid var(--border-color);
	top: 0;
	z-index: 1000;
}

.logo {
    font-weight: 500;
    font-size: 1.25rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

/* =========== Hero Section =========== */
.hero {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.2;
    max-width: 18ch; /* Limit width for better readability */
    margin-bottom: 1rem;
}

.hero h2 {
	font-size: 1.5rem;
	font-weight: 400;
	margin-bottom: 1.5rem;
	color: var(--primary-text);
	max-width: 50ch;
}

.hero p {
    font-size: 1.125rem;
    color: var(--secondary-text);
    max-width: 45ch;
}

.hero-socials {
    margin-top: 2rem;
}

.hero-socials p {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    /* width: 40px; */
    /* height: 40px; */
    /* border: 1px solid var(--border-color); */
    /* border-radius: 50%; */
    /* font-size: 0.8rem; */
    /* font-weight: 500; */
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.social-icons a:hover {
    background-color: #f5f5f5;
    border-color: #ddd;
}

/* =========== Featured Work Section =========== */
.featured-work {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 500;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--card-background);
    overflow: hidden; /* Ensures image respects border-radius */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

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

/* =========== Footer =========== */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    gap: 2rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-contact p {
    color: var(--secondary-text);
}

.footer-contact .email {
    font-weight: 500;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

/* =========== Responsive Styles =========== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }

    header, footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .main-nav ul, .footer-nav ul {
        padding-left: 0;
    }
}

 .project-header {
	padding-top: 4rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--border-color);
}

.project-header h1 {
	font-size: 3.5rem;
	font-weight: 500;
	line-height: 1.2;
	margin-bottom: 0.5rem;
}

.project-header .tagline {
	font-size: 1.25rem;
	color: var(--secondary-text);
	margin-bottom: 2rem;
}

.project-meta {
	display: flex;
	gap: 4rem;
}

.meta-item strong {
	display: block;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--secondary-text);
	margin-bottom: 0.25rem;
}

.meta-item span {
	font-size: 1rem;
	font-weight: 500;
}

.project-content {
	padding: 4rem 0;
}

.project-content h2 {
	font-size: 2rem;
	font-weight: 700;
	/* margin-top: 3rem; */
	margin-bottom: 1rem;
}

.project-content h3 {
	font-size: 1rem;
	font-weight: 400;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	color: var(--primary-text);
	text-transform: uppercase;
}

.project-content p {
	margin-bottom: 1.5rem;
	max-width: 75ch; /* Limit width for readability */
}

.project-content ul {
	list-style: disc;
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
	max-width: 75ch;
}

.project-content li {
	margin-bottom: 0.5rem;
	color: var(--secondary-text);
}

.project-content img {
	margin: 2rem 0;
	border-radius: 12px;
}

.project-content strong {
	color: var(--primary-text);
}

.project-content .highlight {
	padding: 1.5rem;
	background-color: #f7f7f7; /* Slightly lighter than card-background */
	border-left: 4px solid var(--primary-text);
	margin: 2rem 0;
	/* font-style: italic; */
	font-size: 1.125rem;
	max-width: 900px;
}

/* Responsive adjustments for project meta */
@media (max-width: 768px) {
	.project-header h1 {
		font-size: 2.5rem;
	}

	.project-meta {
		flex-direction: column;
		gap: 1.5rem;
	}
}

/* =========== About Page Styles =========== */

.about-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Photo on the left, text on the right */
    gap: 4rem;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr; /* Stack on smaller screens */
        gap: 2rem;
    }
}

.about-photo {
    /* Placeholder styling for the photo area */
    border-radius: 12px;
    height: 324px; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content h1 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.about-content p {
    margin-bottom: 1.5rem;
    max-width: 75ch;
    font-size: 1.05rem;
}

.about-content ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.about-content ul li {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

.about-cta {
    margin-top: 4rem;
    text-align: center;
}

.about-cta h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary-text);
    color: var(--background-color);
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background-color: var(--secondary-text);
    color: var(--background-color);
}

/* =========== Mobile Menu Styles =========== */

.menu-toggle {
    display: none; /* Hidden by default, shown only in mobile media query */
	position: relative;
    background: none;
    border: none;
    cursor: pointer;
    /* padding: 0.5rem; */
    z-index: 1001; /* Ensure it's above the menu */
    align-items: center;
    justify-content: center;
	width: 40px;
    height: 40px; 
}

.hamburger {
    position: relative;    
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-text);
    transition: background-color 0.3s ease;
	margin: 0 auto;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
	left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-text);
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Transform the hamburger into a close 'X' */
.menu-open .hamburger {
    background-color: transparent;
}

.menu-open .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.menu-open .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    header {
        /* Keep existing header rules for flex/alignment */
        flex-direction: row; /* Ensure logo and toggle are horizontal */
        justify-content: space-between;
        align-items: center;
    }
    
    /* Display the hamburger button */
    .menu-toggle {
        display: flex;        /* show on mobile */
        width: 44px;          /* hit area for accessibility */
        height: 44px;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        position: relative;   /* anchor if you want absolute centering of child */
    }
    
    /* Full-screen menu overlay */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--background-color);
        z-index: 999;
        display: none; /* Initially hidden */
        padding-top: 5rem;
        overflow-y: auto;
    }

    /* Display the menu when the 'menu-open' class is applied to the body */
    .menu-open .main-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .main-nav ul {
        flex-direction: column; /* Stack links vertically */
        gap: 2.5rem;
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    .main-nav ul li a {
        font-size: 1.5rem;
        font-weight: 500;
        padding: 0.5rem 0;
        display: block;
    }

    /* Hiding elements that shouldn't scroll with the menu */
    .menu-open body {
        overflow: hidden; /* Prevents background scrolling when menu is open */
    }
}