/* --- BASE RESET & VARIABLES --- */
:root {
    --bg-color: #0f172a; /* Deep slate background */
    --text-main: #e2e8f0; /* Light text */
    --text-muted: #94a3b8; /* Gray text for paragraphs */
    --accent: #5eead4; /* Teal accent color */
    --card-hover: rgba(255, 255, 255, 0.03); /* Subtle background for hover */
    --card-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth; /* Gives that buttery scroll effect */
}

body {
    background-color: var(--bg-color);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.cursor-halo {
    position: fixed;
    left: 0;
    top: 0;
    width: 480px;
    height: 480px;
    pointer-events: none;
    border-radius: 50%;
    /* Larger, gentler radial glow with low intensity */
    width: 900px;
    height: 900px;
    background: radial-gradient(circle at center, rgba(94,234,212,0.12) 0%, rgba(94,234,212,0.04) 30%, rgba(94,234,212,0.02) 55%, rgba(94,234,212,0) 90%);
    filter: blur(24px);
    mix-blend-mode: screen;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.cursor-halo.visible {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(1.05);
}

h1, h2, h3 {
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* --- LAYOUT (Desktop First) --- */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 2rem;
}

/* Left Column: The Sticky Sidebar */
.left-column {
    flex: 1;
    position: sticky;
    top: 0;
    height: 100vh; /* Takes full height of screen */
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.left-column h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.left-column h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.subtitle {
    max-width: 300px;
    margin-bottom: 4rem;
}

/* Navigation Line Animation */
.page-nav ul {
    list-style: none;
}

.page-nav li {
    margin-bottom: 1rem;
}

.page-nav a {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-indicator {
    display: inline-block;
    width: 2rem;
    height: 1px;
    background-color: var(--text-muted);
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.page-nav a:hover .nav-indicator,
.page-nav a.active .nav-indicator {
    width: 4rem;
    background-color: var(--text-main);
}

.page-nav a:hover .nav-text,
.page-nav a.active .nav-text {
    color: var(--text-main);
}

/* --- SOCIAL LINKS (SVG LOGOS) --- */
.social-links {
    list-style: none;
    display: flex;
    gap: 1.5rem; /* Space between icons */
    align-items: center;
    margin-top: auto; /* Pushes links to the absolute bottom of desktop header */
}

.social-links li {
    display: flex;
    align-items: center;
}

.social-links a {
    display: inline-block;
    width: 1.4rem; /* Controls the uniform size of the icons */
    height: 1.4rem;
    color: var(--text-muted); /* Initial gray color */
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--accent); /* Changes icon color to your theme's teal on hover */
    transform: translateY(-4px); /* Smoothly lifts the icon up slightly */
}

.social-links svg {
    width: 100%;
    height: 100%;
    fill: currentColor; /* Matches the color property set above */
}

/* Right Column: The Scrolling Content */
.right-column {
    flex: 1.2;
    padding: 6rem 0;
}

.section {
    margin-bottom: 11rem;
    scroll-margin-top: 6rem; /* Prevents anchor links from hiding under top of screen */
    padding-top: 1rem;
}

.section p {
    margin-bottom: 1.5rem;
}

/* --- INTERACTIVE CARDS --- */
.card {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 2rem;
    margin-left: -1.5rem; /* Offsets padding so it aligns with text above */
}

.card:hover {
    background-color: var(--card-hover);
    box-shadow: inset 0 1px 0 0 var(--card-border);
}

/* Clickable card cursor and focus styles (enabled when data-link is set) */
.card[data-link],
.project-card[data-link] {
    cursor: pointer;
}

.card[data-link]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.card-timeline {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
    color: var(--text-muted);
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.card:hover .card-content h3 {
    color: var(--accent); /* Changes title to teal on hover */
}

/* Tech Stack Pills */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin-top: 1rem;
}

.tech-stack li {
    background-color: rgba(94, 234, 212, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-weight: 500;
}

/* Project Image Placeholder */
.project-img {
    width: 100%;
    height: 140px;
    background-color: #1e293b;
    border: 2px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
}

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

.card-timeline img {
    border-radius: 8px;
}

.resume-action {
    margin-top: 1.5rem;
    text-align: center;
}

.resume-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding-bottom: 0.15rem;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.resume-button:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}

footer {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 6rem;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 800px) {
    .app-container {
        flex-direction: column;
        padding: 0 1.5rem;
    }
    
    .left-column {
        position: relative;
        height: auto;
        padding: 4rem 0 2rem 0;
    }
    
    .page-nav {
        display: none; /* Hide sticky nav on mobile */
    }
    
    .right-column {
        padding: 2rem 0;
    }
    
    .card {
        grid-template-columns: 1fr; /* Stack dates on top of content */
        gap: 0.5rem;
        margin-left: 0;
        padding: 1rem 0;
    }
    
    .card:hover {
        background-color: transparent; /* Remove hover background on mobile */
        box-shadow: none;
    }
    
    .social-links {
        margin-top: 2rem;
    }
}