/* =========================
   GLOBAL VARIABLES
========================== */
:root {
    --bg-color: #ffffff;
    --text-color: #111827;
    --muted-text: #6b7280;
    --accent: #2563eb;
    --border-color: #e5e7eb;

    --card-bg: #ffffff;
    --card-bg-muted: #f9fafb;
    --surface-dark: #1e293b;

    --max-width: 1100px;
    --header-height: 80px;

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-pill: 20px;

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

/* =========================
   RESET & BASE
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

a:not(.btn) {
    color: var(--accent);
    text-decoration: none;
}

a:not(.btn):visited {
    color: var(--accent);
}

/* Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* =========================
   GLOBAL LAYOUT
========================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem;
}

section {
    padding: 2rem 1.5rem;
}

h1, h2, h3 {
    line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

/* =========================
   HEADER / NAVIGATION
========================== */
header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

/* =========================
   HERO
========================== */
.hero {
    padding-top: 6rem;
    padding-bottom: 4rem;
    text-align: center;
}

section:not(#home, #about) .container {
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin: 0 auto 1.5rem auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--muted-text);
    max-width: 700px;
    margin: 0.5rem auto 1.5rem auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: background var(--transition-base);
    min-width: 160px;
    text-decoration: none;
}

.btn:hover {
    background-color: #1d4ed8;
}

/* =========================
   EXPERIENCE
========================== */
.experience-card {
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: var(--card-bg-muted);
    border-radius: var(--radius-md);
    max-width: 800px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    will-change: transform;
}

.experience-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.experience-card h3 {
    margin-bottom: 0.25rem;
}

.experience-card p:first-of-type {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}

/* =========================
   SKILLS
========================== */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-badge {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    background-color: var(--card-bg-muted);
    transition: var(--transition-fast);
}

.skill-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(37, 99, 235, 0.05);
}

/* =========================
   PROJECTS
========================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--card-bg);
    transition: transform var(--transition-base);
    text-align: left;
    will-change: transform;
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-image {
    height: 200px;
    background-color: var(--surface-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-text);
    overflow: hidden;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.status-container {
    margin-bottom: 1.25rem;
}

.status-badge {
    height: 20px;
    width: auto;
    display: block;
    border: none;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.project-content p {
    font-size: 0.95rem;
    color: var(--muted-text);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-footer {
    margin-top: auto;
}

.project-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
}

.project-link:hover {
    text-decoration: underline;
}

/* =========================
   INTERESTS & PHOTOGRAPHY
========================== */
.photography-section {
    margin-top: 1.5rem;
}

.photography-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mini-gallery {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.mini-gallery img {
    width: 250px;
    height: 250px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.mini-gallery img:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

/* =========================
   CONTACT
========================== */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* =========================
   MEDIA QUERIES
========================== */
@media (max-width: 767px) {
    .nav-toggle { display: block; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 1.5rem;
        display: none;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

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

    .mini-gallery { gap: 0.5rem; }

    .mini-gallery img {
        width: 30%;
        height: auto;
    }
}

@media (min-width: 768px) {
    .hero h1 { font-size: 3.5rem; }

    .contact-links {
        flex-direction: row;
        gap: 2.5rem;
    }

    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        padding: 0;
    }
}

/* =========================
   DARK MODE
========================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #111827;
        --text-color: #f9fafb;
        --muted-text: #9ca3af;
        --accent: #3b82f6;
        --border-color: #374151;
        --card-bg: #1f2937;
        --card-bg-muted: #1f2937;
    }

    header { background-color: var(--bg-color); }
}
