/* True Minimalist Theme */
:root {
    --bg-color: #ffffff;
    --text-main: #000000;
    --text-light: #555555;
    --border-color: #e5e5e5;
    --stylish-green: #254F22; /* Updated precise dark green */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-child {
    border-bottom: none;
    padding-bottom: 150px;
}

/* Specific fix for Hero section to take up full screen */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0; 
    margin-top: -90px; /* Pulls it up slightly to account for the navbar */
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 15px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 500px;
}

/* Navbar */
nav {
    padding: 30px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* About Section */
.about-flex {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%; 
    /* Grayscale filter removed for full color */
}

/* Grids */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Minimalist Cards */
.card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
    border-color: var(--text-main);
}

/* Card Header & Link Icon */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.link-icon {
    color: var(--text-light);
    transition: color 0.2s, transform 0.2s;
    margin-top: 3px;
}

.card:hover .link-icon {
    color: var(--text-main);
    transform: translate(3px, -3px); /* Snaps slightly up and right on hover */
}

.tech-stack {
    display: block;
    font-size: 0.8rem;
    color: var(--text-main);
    font-weight: 600;
    margin-top: auto;
    padding-top: 20px;
}

/* Reviews */
.review-item p {
    font-style: italic;
    font-size: 0.95rem;
}

.review-item small {
    font-weight: 600;
    color: var(--text-main);
}

/* Buttons */
.contact-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

button, .btn-outline {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 24px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s;
}

button:hover, .btn-outline:hover {
    opacity: 0.8;
}

.btn-green {
    background-color: var(--stylish-green);
    color: #ffffff;
    border: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

/* Responsive */
@media (max-width: 600px) {
    .about-flex { flex-direction: column-reverse; text-align: center; }
    .grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.5rem; }
    #hero { height: auto; padding: 100px 0; margin-top: 0; }
}

/* Hero Section Layout & Animation */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-icon {
    color: var(--stylish-green);
    margin-bottom: 25px;
    animation: float 4s ease-in-out infinite;
}

/* The subtle breathing/floating animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.hero-name {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 5px;
}

.hero-role {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Adjustments for smaller screens */
@media (max-width: 600px) {
    .hero-name { font-size: 3rem; }
    .hero-role { font-size: 1.2rem; }
}

/* --- PROJECT PAGE SPECIFIC STYLES --- */

/* Back Link in Nav */
.back-link {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-main);
}

/* Project Header Layout */
.project-header {
    padding-top: 50px;
    padding-bottom: 50px;
}

.project-meta {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.meta-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Project Images & Content */
.project-content h2 {
    margin-top: 50px;
    margin-bottom: 20px;
}

.image-container {
    margin: 60px 0;
}

.project-img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    display: block;
}

.image-caption {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 15px;
    font-style: italic;
}

/* Next Project Footer */
.next-project {
    text-align: center;
    padding-bottom: 100px;
}

.next-link {
    display: inline-block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    margin-top: 10px;
    transition: color 0.2s, transform 0.2s;
}

.next-link:hover {
    color: var(--stylish-green);
    transform: translateX(5px);
}

@media (max-width: 600px) {
    .project-meta { flex-direction: column; gap: 20px; }
    .next-link { font-size: 1.5rem; }
}