/* DESIGN SYSTEM: EDITORIAL PASTEL 
    Primary: Charcoal (#2D3436)
    Background: Soft Paper (#FDFBF7)
    Accent 1: Sage Green (#81B29A) - For Data/Growth
    Accent 2: Terra Cotta/Clay (#E07A5F) - For Action/Highlights
*/

:root {
    --bg-color: #FDFBF7;
    --bg-secondary: #F4F1EA;
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --accent-primary: #81B29A; 
    --accent-secondary: #E07A5F;
    --white: #FFFFFF;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-pad {
    padding: 5rem 0;
}

.bg-cream {
    background-color: var(--bg-secondary);
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    background-color: var(--text-primary);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    margin-left: 1rem;
    font-size: 0.95rem;
}

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

/* NAVBAR */
.navbar {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links .btn-primary {
    padding: 0.6rem 1.5rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
}

.eyebrow {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.hero .highlight {
    font-style: italic;
    color: var(--text-secondary);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* SKILLS */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--accent-primary);
}

.skill-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tags span {
    display: inline-block;
    background: var(--bg-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-top: 1rem;
    color: var(--text-secondary);
}

/* EXPERIENCE */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-left: 2px solid #ddd;
    padding-left: 2rem;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    background: var(--accent-secondary);
    border-radius: 50%;
    border: 3px solid var(--white);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.job-details {
    list-style: disc;
    margin-left: 1rem;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.job-details li {
    margin-bottom: 0.5rem;
}

.tech-stack-mini small {
    display: inline-block;
    margin-right: 10px;
    margin-top: 10px;
    font-weight: 600;
    color: var(--accent-primary);
}

/* PROJECTS */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.project-image {
    height: 200px;
    background-color: #ddd;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-1-bg { background-color: #D8E2DC; } /* Sage */
.project-2-bg { background-color: #FFE5D9; } /* Peach */

.overlay {
    font-size: 3rem;
    color: rgba(255,255,255,0.6);
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-meta {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.link-arrow {
    font-weight: 600;
    color: var(--accent-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* SPLIT LAYOUT (Edu & Certs) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.cert-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.cert-list i {
    color: var(--accent-primary);
    margin-top: 4px;
}

/* FOOTER */
footer {
    padding: 6rem 0 3rem;
    text-align: center;
}

.contact-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-cta p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.social-links {
    margin: 3rem 0;
}

.social-links a {
    font-size: 1.5rem;
    margin: 0 1rem;
    color: var(--text-primary);
}

.social-links a:hover {
    color: var(--accent-secondary);
}

.copyright {
    font-size: 0.8rem;
    color: #ccc;
}

/* ANIMATION UTILS */
.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);
}

/* DELAYS */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .split-layout { grid-template-columns: 1fr; gap: 2rem; }
    .project-grid { grid-template-columns: 1fr; }
    
    .timeline { 
        padding-left: 1.5rem;
        margin-left: 0;
    }
    
    .timeline-item::before {
        left: -1.95rem;
    }
    
    .btn-secondary { margin-left: 0; margin-top: 1rem; display: block; text-align: center;}
}
