body {
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--light-bg);
scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

h1, h2, h3, h4, h5, h6 {
color: var(--text-color);
margin-top: 0;
margin-bottom: 0.5em;
line-height: 1.2;
}

a {
color: var(--primary-color);
text-decoration: none;
transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
color: var(--primary-color);
text-decoration: underline;
}

/* Utility Classes */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

.btn {
display: inline-block;
padding: 10px 20px;
border-radius: 5px;
font-weight: 600;
text-align: center;
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
border: 1px solid transparent;
cursor: pointer;
}

.primary-btn {
background-color: var(--primary-color);
color: var(--light-text-color);
border-color: var(--primary-color);
}

.primary-btn:hover {
background-color: darken(var(--primary-color), 10%); /* This won't work in pure CSS, use a slightly darker hex */
background-color: #0056b3; /* Darker blue */
text-decoration: none;
}

.secondary-btn {
background-color: transparent;
color: var(--primary-color);
border-color: var(--primary-color);
}

.secondary-btn:hover {
background-color: var(--primary-color);
color: var(--light-text-color);
text-decoration: none;
}

/* Header & Navigation */
header {
background-color: var(--dark-bg);
color: var(--light-text-color);
padding: 1rem 0;
position: fixed; /* Fixed position like Romina's */
width: 100%;
top: 0;
z-index: 1000;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px; /* Aligned with Romina's content width */
margin: 0 auto;
padding: 0 20px;
}

nav .logo h1 {
margin: 0;
font-size: 1.8rem;
color: var(--light-text-color); /* Ensure logo is white */
}

nav .logo a {
text-decoration: none; /* Remove underline from logo link */
}

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

nav .nav-links li {
margin-left: 30px; /* Spacing between nav items */
}

nav .nav-links li a {
color: var(--light-text-color);
font-weight: 500;
padding: 5px 0;
position: relative;
transition: color 0.3s ease;
}

nav .nav-links li a:hover {
color: var(--primary-color); /* Highlight on hover */
text-decoration: none;
}

/* Underline effect similar to Romina's, if desired */
nav .nav-links li a::after {
content: '';
position: absolute;
width: 0%;
height: 2px;
bottom: -5px;
left: 0;
background-color: var(--primary-color);
transition: width 0.3s ease-out;
}

nav .nav-links li a:hover::after {
width: 100%;
}


/* Hero Section (Welcome/Home) */
.hero-section {
background: url('../images/hero-background.jpg') no-repeat center center/cover;
color: var(--light-text-color);
text-align: center;
padding: 180px 20px 80px; /* More top padding for fixed header */
display: flex;
justify-content: center;
align-items: center;
min-height: 80vh; /* Make it taller like Romina's */
margin-top: 60px; /* Offset for fixed header */
position: relative;
z-index: 1; /* Ensure hero is above background but below header */
}

.hero-section::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6); /* Dark overlay for readability */
z-index: -1;
}

.hero-content {
max-width: 900px;
margin-top: -60px; /* Adjust if needed to center vertically */
}

.hero-content h2 {
font-size: 3.5rem;
margin-bottom: 20px;
color: var(--light-text-color);
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content .tagline {
font-size: 1.5rem;
margin-bottom: 15px;
font-weight: 300;
}

.hero-content .career-goal {
font-size: 1.1rem;
margin-bottom: 40px;
line-height: 1.8;
}

/* General Section Styling */
.portfolio-section {
max-width: 1200px;
margin: 60px auto; /* More margin between sections */
padding: 40px 30px;
background-color: var(--card-bg);
box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Softer shadow */
border-radius: 10px;
}

.section-header {
text-align: center;
margin-bottom: 50px;
}

.section-header h2 {
font-size: 2.8rem;
color: var(--dark-bg);
position: relative;
padding-bottom: 10px;
}

.section-header h2::after {
content: '';
position: absolute;
left: 50%;
bottom: 0;
transform: translateX(-50%);
width: 80px;
height: 4px;
background-color: var(--primary-color);
border-radius: 2px;
}

.section-header p {
font-size: 1.15rem;
color: var(--secondary-color);
max-width: 700px;
margin: 15px auto 0;
}


/* Project/Doc/Competition Grids */
.portfolio-grid, .design-docs-grid, .competition-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Adjusted min-width for cards */
gap: 30px; /* Consistent gap */
padding: 0; /* Remove padding from grid itself, use section padding */
}

.project-card, .doc-card, .competition-card {
background-color: var(--light-bg);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 25px;
text-align: center;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
transition: transform 0.3s ease, box-shadow 0.3s ease;
display: flex; /* Flexbox for internal card layout */
flex-direction: column;
justify-content: space-between; /* Pushes content/links to ends */
}

.project-card:hover, .doc-card:hover, .competition-card:hover {
transform: translateY(-8px);
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.project-card img, .doc-card img, .competition-card img {
max-width: 100%;
height: 200px; /* Fixed height for consistent card appearance */
object-fit: cover; /* Covers the area, cropping if necessary */
border-radius: 5px;
margin-bottom: 20px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.project-card h3, .doc-card h3, .competition-card h3 {
font-size: 1.7rem;
margin-bottom: 10px;
color: var(--dark-bg);
}

.project-card .tools-used {
font-size: 0.9em;
color: var(--secondary-color);
margin-bottom: 15px;
font-style: italic;
}

.project-card .description,
.doc-card .description,
.competition-card .description {
font-size: 1rem;
margin-bottom: 20px;
flex-grow: 1; /* Allows description to take available space */
}

.project-card .project-links,
.doc-card .doc-links,
.competition-card .project-links {
margin-top: auto; /* Pushes links to the bottom */
padding-top: 15px;
border-top: 1px solid var(--border-color);
display: flex;
justify-content: center;
gap: 10px; /* Spacing between buttons */
flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */
}

.reflection {
font-style: italic;
color: #555;
font-size: 0.95em;
text-align: left;
margin-top: 20px;
border-top: 1px dashed #eee;
padding-top: 20px;
/* This reflection is for the main page, often brief */
}

/* Specific styling for the main Reflection Section */
.reflection-content {
max-width: 900px;
margin: 0 auto;
font-size: 1.15rem;
line-height: 1.8;
color: var(--text-color);
}

.reflection-content p {
margin-bottom: 20px;
}

/* Contact Section */
.contact-section {
text-align: center;
padding: 60px 20px;
background-color: var(--dark-bg); /* Dark background for contact */
color: var(--light-text-color);
margin-top: 60px;
border-radius: 10px; /* Match section border-radius */
}

.contact-section h2 {
color: var(--light-text-color);
margin-bottom: 20px;
}

.contact-section p {
font-size: 1.2rem;
margin-bottom: 40px;
}

.contact-links .btn {
margin: 10px;
min-width: 150px; /* Ensure buttons have a minimum width */
}

/* Footer */
footer {
background-color: var(--dark-bg);
color: var(--light-text-color);
text-align: center;
padding: 30px 0;
margin-top: 60px;
font-size: 0.9rem;
}

/* Project Detail Pages (pages/*.html) - Specific Styles */
.project-detail-page {
margin-top: 100px; /* Space for fixed header on detail pages */
padding: 40px 30px;
}

.project-detail-page h2 {
text-align: center;
font-size: 2.8rem;
margin-bottom: 40px;
color: var(--dark-bg);
}

.project-content {
max-width: 900px;
margin: 0 auto;
font-size: 1.1rem;
line-height: 1.7;
color: var(--text-color);
}

.project-content h3 {
font-size: 2rem;
margin-top: 40px;
margin-bottom: 15px;
color: var(--primary-color);
}

.project-content ul {
list-style-type: disc;
margin-left: 25px;
margin-bottom: 20px;
}

.project-content ul li {
margin-bottom: 8px;
}

.project-content .media-gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-top: 30px;
margin-bottom: 30px;
}

.project-content .media-gallery img,
.project-content .media-gallery iframe {
width: 100%;
height: 250px; /* Fixed height for media elements */
object-fit: cover;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project-detail-page .btn {
margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
.hero-content h2 {
font-size: 2.8rem;
}
.section-header h2 {
font-size: 2.2rem;
}
}

@media (max-width: 768px) {}
nav {
flex-direction: column;
align-items: flex-start;
padding: 10px 20px;
}

nav .nav-links {
flex-direction: column;
width: 100%;
margin-top: 15px;
align-items: flex-start;
display: none; /* Hide by default, will be toggled by JS for burger menu */
}

nav .nav-links.active {
display: flex;
}

nav .nav-links li {
margin: 10px 0;
}

.hero-section {
padding: 150px 20px 60px;
min-height: 70vh;
}

.hero-content h2 {
font-size: 2.2rem;
}
.hero-content .tagline {
font-size: 1.2rem;
}
.hero-content .career-goal {
font-size: 1rem;
}

.portfolio-section {
padding: 30px 15px;
margin: 40px auto;
}

.section-header h2 {
font-size: 1.8rem;
}
.section-header p {
font-size: 1rem;
}

.portfolio-grid, .design-docs-grid, .competition-grid {
grid-template-columns: 1fr; /* Single column on small screens */
gap: 25px;
}

.project-card, .doc-card, .competition-card {
padding: 20px;
}

.project-card h3, .doc-card h3, .competition-card h3 {
font-size: 1.4rem;
}

.contact-links .btn {
min-width: unset;
width: 100%;
margin: 5px 0;
}

.project-detail-page {
margin-top: 80px;
padding: 30px 15px;
}
.project-detail-page h2 {
font-size: 2rem;
}
.project-content h3 {
font-size: 1.6rem;
}
.project-content .media-gallery {
grid-template-columns: 1fr;
}