/* --- Variables & Reset --- */
:root {
    --color-bg: #ffffff;
    --color-bg-light: #f9fafb;
    --color-bg-dark: #111827;
    --color-text-main: #111827;
    --color-text-muted: #4b5563;
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-border: #e5e7eb;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --transition: all 0.3s ease;
    
    /* Modern System Font Stack */
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.bg-light { background-color: var(--color-bg-light); }
.bg-dark { background-color: var(--color-bg-dark); }
.text-center { text-align: center; }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
    letter-spacing: -0.025em;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    color: var(--color-text-main);
    line-height: 1.2;
}

p { color: var(--color-text-muted); }

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--color-text-main);
    letter-spacing: -0.025em;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-muted);
    margin-left: 32px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* --- Hero Section --- */
.hero {
    padding-top: 160px; /* Account for navbar */
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 64px;
}

.hero-image {
    flex: 0 0 280px;
}

.profile-pic {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-bg);
}

.hero-content {
    flex: 1;
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

.focus {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-main);
    margin-bottom: 24px;
}

.tagline {
    font-size: 1.125rem;
    max-width: 600px;
    margin-bottom: 40px;
}

/* --- Buttons --- */
.hero-buttons, .contact-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-text-main);
    background-color: var(--color-bg-light);
}

.btn-text {
    color: var(--color-text-muted);
    font-weight: 500;
}

.btn-text:hover { color: var(--color-primary); }

/* --- About --- */
.about-text {
    font-size: 1.25rem;
    max-width: 800px;
    line-height: 1.8;
}

/* --- Metrics Section --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.metric-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.metric-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.metric-card h3 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.metric-card p {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.project-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #d1d5db;
}

.project-header { margin-bottom: 24px; }

.project-header h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.company {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
}

.project-details {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-details li {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    position: relative;
    padding-left: 16px;
}

.project-details li::before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    border-top: 1px solid var(--color-border);
    padding-top: 48px;
}

.skill-column h4 {
    font-size: 1.125rem;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.skill-column ul { list-style: none; }

.skill-column li {
    margin-bottom: 12px;
    color: var(--color-text-muted);
}

/* --- Contact & Footer --- */
.contact-text {
    font-size: 1.125rem;
    margin-bottom: 32px;
    color: #9ca3af;
}

.light-text { color: white !important; }
.light-outline { border-color: #4b5563; color: white; }
.light-outline:hover { background-color: rgba(255,255,255,0.1); border-color: white; }

.contact-links { justify-content: center; }

.footer {
    background-color: var(--color-bg-dark);
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid #1f2937;
}

.footer p { color: #6b7280; font-size: 0.875rem; }

/* --- JS Animation Classes --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .hero-container { flex-direction: column; text-align: center; gap: 32px; }
    .hero-buttons { justify-content: center; }
    .metrics-grid, .projects-grid, .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .nav-links { display: none; } /* Could add a hamburger menu later */
    .title { font-size: 2.5rem; }
    .metrics-grid, .projects-grid, .skills-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }
}