/*
Theme Name: Portfolio Engine
Theme URI: https://shrwn.dev
Author: Sherwin
Description: Modern Minimalist Portfolio Engine for a Python/Django & Full-Stack Specialist.
Version: 1.0.0
*/

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-blue-light: #eff6ff;
    --border-color: #e2e8f0;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', Consolas, Monaco, 'Courier New', monospace;
}

html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

/* --- Header & Navigation --- */

/* Hide default WordPress site titles/headers injected by the host theme */
header:not(.site-header), 
.site-title, 
.site-description {
    display: none !important;
}

.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo-brand {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-brand span {
    color: var(--accent-blue);
}

.main-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent-blue);
}

/* --- Hero Section --- */
.hero-section {
    padding: 90px 0 60px;
}

.badge {
    display: inline-block;
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.25rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-primary);
    max-width: 800px;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: var(--accent-blue);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
}

/* --- Tech Stack Section --- */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    transition: border-color 0.2s ease;
}

.tech-card:hover {
    border-color: var(--accent-blue);
}

.tech-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tech-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.tech-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: var(--bg-main);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* --- Experience Timeline --- */
.timeline-section {
    padding: 60px 0 90px;
    border-top: 1px solid var(--border-color);
}

.timeline-wrapper {
    max-width: 800px;
    margin-top: 40px;
    position: relative;
    border-left: 2px solid var(--border-color);
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2px solid #ffffff;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-blue);
    margin-bottom: 6px;
    font-weight: 600;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --- Contact Section --- */
.contact-section {
    padding: 80px 0 100px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 40px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: var(--bg-main);
    color: var(--text-primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}