/* ==========================================================================
   "Warm Tech" Design System - CSS Variables
   ========================================================================== */
   :root {
    /* Backgrounds: Refined Dark Mode (Navy/Charcoal tones) */
    --bg-dark: #1A1F2C;
    --bg-alt: #222836;
    --bg-card: #2A3143;
    
    /* Text Colors */
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    
    /* Accents - "Warm Tech" Bridge */
    /* Tech Accents */
    --accent-cyan: #38BDF8;
    --accent-purple: #A78BFA;
    /* Warm Accents */
    --accent-sage: #84A98C;
    --accent-terra: #E07A5F;
    
    /* Gradients */
    --gradient-tech: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    --gradient-warm: linear-gradient(135deg, var(--accent-sage), var(--accent-terra));
    
    /* Typography */
    /* Headings: Sleek, modern sans-serif */
    --font-heading: 'Poppins', sans-serif;
    /* Body: Highly readable, slightly warmer serif for human feel */
    --font-body: 'Lora', serif;
    
    /* UI Values */
    --radius-lg: 16px;
    --radius-md: 8px;
    --transition: 0.3s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 1.1rem;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-accent {
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

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

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title.text-left {
    text-align: left;
}

.section-subtitle {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-terra);
    color: #fff;
    border: 2px solid var(--accent-terra);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-terra);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
}

.btn-secondary:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
}

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

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag-tech { background-color: rgba(56, 189, 248, 0.1); color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.2); }
.tag-game { background-color: rgba(167, 139, 250, 0.1); color: var(--accent-purple); border: 1px solid rgba(167, 139, 250, 0.2); }
.tag-ai { background-color: rgba(224, 122, 95, 0.1); color: var(--accent-terra); border: 1px solid rgba(224, 122, 95, 0.2); }
.tag-warm { background-color: rgba(132, 169, 140, 0.1); color: var(--accent-sage); border: 1px solid rgba(132, 169, 140, 0.2); }


/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 31, 44, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-main);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-cyan);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(132, 169, 140, 0.1);
    color: var(--accent-sage);
    border: 1px solid rgba(132, 169, 140, 0.3);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Hero Visual / Headshot */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.headshot-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
}

.headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 4px solid var(--bg-alt);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.accent-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    z-index: 1;
}

.blob-warm {
    background: var(--accent-terra);
    width: 250px;
    height: 250px;
    top: -20px;
    right: -20px;
    animation: pulse 6s infinite alternate;
}

.blob-tech {
    background: var(--accent-cyan);
    width: 200px;
    height: 200px;
    bottom: -10px;
    left: -30px;
    animation: pulse 8s infinite alternate-reverse;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}


/* ==========================================================================
   The Journey (Timeline)
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-sage), var(--accent-cyan));
    border-radius: 2px;
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-alt);
    border: 3px solid var(--accent-cyan);
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.timeline-item:nth-child(1) .timeline-marker { border-color: var(--accent-sage); box-shadow: 0 0 0 4px rgba(132, 169, 140, 0.1); }
.timeline-item:nth-child(2) .timeline-marker { border-color: var(--accent-terra); box-shadow: 0 0 0 4px rgba(224, 122, 95, 0.1); }
.timeline-item:nth-child(3) .timeline-marker { border-color: var(--accent-cyan); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1); }

.timeline-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

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


/* ==========================================================================
   The Workshop (Projects & Code)
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-visual {
    height: 200px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #1A202C; /* fallback */
}

/* Fallback gradients if images are missing */
.game-visual { background: linear-gradient(45deg, #1A202C, #2D3748); border-bottom: 2px solid var(--accent-purple); }
.ai-visual { background: linear-gradient(45deg, #1A202C, #2C3A47); border-bottom: 2px solid var(--accent-terra); }
.app-visual { background: linear-gradient(45deg, #1A202C, #2F3E46); border-bottom: 2px solid var(--accent-sage); }


.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 31, 44, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    margin-bottom: 1rem;
}

.card-body h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}


/* ==========================================================================
   The Philosophy (Counseling Approach)
   ========================================================================== */
.philosophy-container {
    max-width: 800px;
}

.philosophy-text p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.philosophy-text p:first-of-type {
    color: var(--text-main);
    font-size: 1.4rem;
    line-height: 1.6;
}

.philosophy-text p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #131720;
    padding: 5rem 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer h3 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-family: var(--font-body);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-support p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.support-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom {
    background-color: #0E1117;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

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

.social-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

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


/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .headshot-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .nav-links {
        display: none; /* In a full app, implement a mobile menu toggle here */
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-marker {
        left: 0;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
