
/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root[data-theme="light"] {
    --bg-color: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #333;
    --accent: #893ad2;
    --accent-glow: rgba(137, 58, 210, 0.1);
    --border-color: #e2e8f0;
    --nav-blur: rgba(248, 250, 252, 0.8);
    --transition-speed: 0.3s;
}

:root[data-theme="dark"] {
    --bg-color: #0b0b0d;
    --bg-surface: #121215;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #b48cd9;
    --accent-glow: rgba(137, 58, 210, 0.15);
    --border-color: #1e293b;
    --nav-blur: rgba(11, 11, 13, 0.85);
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}
 @media (prefers-reduced-motion: reduce) {
     html {
         scroll-behavior: auto;
     }
 }

body {
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* --- STICKY NAVIGATION --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--nav-blur);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: border-color var(--transition-speed);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav-links a:hover { color: var(--text-main); }

.theme-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.25rem;
    transition: color var(--transition-speed);
}

.theme-btn:hover { color: var(--accent); }

/* --- HERO SECTION --- */
.hero {
    padding: 10rem 0 7rem 0;
}

.hero-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    max-width: 850px;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.cta-link {
    display: inline-block;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform var(--transition-speed), color var(--transition-speed);
}

.cta-link:hover {
    color: var(--accent);
    transform: translateX(4px);
}

/* --- GRID SECTIONS --- */
.section {
    padding: 6rem 0;
}

.border-top {
    border-top: 1px solid var(--border-color);
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media(min-width: 768px) {
    .grid-layout { grid-template-columns: 1fr 2.2fr; }

}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 700;
}

/* --- APPROACH / ABOUT --- */
.lead-text {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 3rem;
    font-weight: 350;
    color: var(--text-main);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 480px) {
    .skills-grid { grid-template-columns: 1fr 1fr; }
}

.skill-category h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.skill-category p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- EMPLOYMENT TIMELINE --- */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.company-name {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    list-style: none;
}

.timeline-desc li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
}

.timeline-desc li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- SELECTED PROJECTS --- */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

@media(min-width: 600px) {
    .project-card { grid-template-columns: 80px 1fr; }
}

.project-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-badge {
    font-size: 0.75rem;
    font-family: monospace;
    background-color: var(--border-color);
    color: var(--text-muted);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
}

/* --- CONNECT & SOCIALS --- */
.connect-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-prompt {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.email-link {
    font-size: clamp(1.4rem, 4.5vw, 2.4rem);
    color: var(--accent);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.02em;
    word-break: break-all;
    transition: opacity 0.2s ease;
}

.email-link:hover {
    opacity: 0.85;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icon-link {
    color: var(--text-muted);
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.social-icon-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* --- FOOTER --- */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: border-color var(--transition-speed);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media(max-width: 600px) {
    .footer-container { flex-direction: column; }
    .nav-links {
        padding-left: 1rem; 
        gap: 0.35rem;
        font-size: 0.75rem;
    }
    .theme-btn {
        padding: 0;
    }
    .nav-right {
        gap: 0.85rem;
    }
}