/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Colors - Human + Machine (Refined Warmth) */
    --bg-color: #FAFAFA;
    --card-bg: #FFFFFF;
    /* 100% Opaque */
    --text-primary: #0F172A;
    /* Slate 900 - Sharp and professional */
    --text-secondary: #475569;
    /* Slate 600 - Readable */

    /* Expressive Accents - Sophisticated Sunset */
    --accent-primary: #EA580C;
    /* Burnt Orange */
    --accent-secondary: #D946EF;
    /* Fuchsia */
    --accent-tertiary: #6366F1;
    /* Indigo */

    --color-pina-orange: #FB923C;
    /* Pina Orange */

    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-hover: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));

    --border-color: #E2E8F0;

    /* Spacing */
    --container-width: 1000px;
    /* Reverted to 1000px */
    --section-gap: 120px;
    /* Increased for cleaner look */

    /* Effects */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(234, 88, 12, 0.1), 0 8px 10px -6px rgba(234, 88, 12, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FFFFFF;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    /* Dune Background Effect - Top Dune + 3 Bottom Dunes */
    background-image:
        /* Top Dune (Top Left - Elliptical ~100px) */
        radial-gradient(ellipse at top left, var(--accent-primary) 60%, transparent 61%),

        /* Dune 1 (Foreground - Sharp Burnt Orange) */
        radial-gradient(100% 60% at 50% 105%, rgba(234, 88, 12, 0.8) 25%, transparent 25.5%),
        /* Dune 2 (Mid - Vibrant Pina Orange) */
        radial-gradient(140% 90% at 20% 110%, rgba(251, 146, 60, 0.7) 50%, transparent 50.5%),
        /* Dune 3 (Back - Soft & High Reaching) */
        radial-gradient(160% 120% at 80% 120%, rgba(251, 146, 60, 0.4) 80%, transparent 80.5%);

    background-attachment: scroll;
    background-repeat: no-repeat;

    /* Individual positions: Top Left, then 3 Bottoms offset by 350px */
    background-position:
        left top,
        center bottom 20%,
        center bottom 35%,
        center bottom 350px;

    /* Individual sizes: Top wider to cover headshot, Bottoms 100% height */
    background-size:
        600px 300px,
        100% 100%,
        100% 100%,
        100% 100%;

    min-height: 100vh;
}

/* ... existing styles ... */

/* Global Link Styles */
a {
    text-decoration: none;
    color: inherit;
}

a:visited {
    color: inherit;
}

.project-card,
.credential-block,
.timeline-content,
.contact-form {
    background-color: #FFFFFF !important;
    /* Force Opaque White */
    backdrop-filter: none !important;
    /* Remove blur if it interferes with opacity */
}



/* Site Footer */
.site-footer {
    border-top: none;
    margin-top: 0;
    padding: 80px 0 60px;
    background: #FFFFFF;
    /* 100% Opaque */
    width: 100%;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

/* Ensure inner container of footer matches site container */
.site-footer .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.projects {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
    opacity: 0;
    /* Hidden initially */
}

.credentials {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
    opacity: 0;
    /* Hidden initially */
}

/* Smoother Hover Transitions */
.btn,
.project-card,
.credential-item,
.tech-tag {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    background-color: #FFEDD5;
    /* Orange 100 */
    transform: translateY(-8px);
    /* Slightly more lift */
    box-shadow: var(--shadow-hover);
}

h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 100px 24px;
    position: relative;
}

/* 1. Hero Section */
.hero {
    margin-bottom: var(--section-gap);
    position: relative;
    padding: 60px 0;
}

.hero-profile-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 32px;
}

.profile-avatar {
    width: 160px;
    /* Appropriately big yet contained */
    height: 160px;
    border-radius: 50%;
    /* Circular */
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: var(--shadow-card);
}

.profile-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    /* Block letters */
    letter-spacing: 0.05em;
    color: var(--text-primary);
    line-height: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    /* Oversized */
    font-weight: 700;
    margin-bottom: 24px;
    max-width: 800px;
}

.hero-subline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.hero-subline::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gradient-primary);
}

.hero-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    /* Pill shape */
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* 2. Projects Section (Storytelling) */
.projects {
    margin-top: -80px;
}

.section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 80px;
}

.section-title::after {
    content: '';
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(to right, #000000, transparent);
    /* Black on White Grid */
}

/* Modifier for dark backgrounds */
.section-title.white-line::after {
    background: linear-gradient(to right, #FFFFFF, transparent);
    /* White on Dunes */
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    /* Soft corners */
    padding: 40px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
    /* Reserve space for border */
    background-clip: padding-box;
    /* Important for gradient border trick */
    z-index: 1;
    backdrop-filter: blur(8px);
    /* Glassmorphism light */
}

/* Gradient Border Trick */
.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    z-index: -1;
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    background-color: #FFEDD5;
    /* Orange 100 - More visible light orange */
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

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



.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.project-title {
    font-size: 1.75rem;
    font-weight: 600;
}

.project-link-icon {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--accent-primary);
}

.project-card:hover .project-link-icon {
    opacity: 1;
    transform: translateX(0);
}

.project-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 24px;
}

.story-block h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
}

.story-block p {
    font-size: 1rem;
    color: var(--text-primary);
}

.project-metrics {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.project-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-tag {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: #F3F4F6;
    padding: 6px 12px;
    border-radius: 99px;
    font-weight: 500;
    transition: all 0.2s;
}

.project-card:hover .tech-tag {
    background: #FFF7ED;
    /* Orange Light */
    color: var(--accent-primary);
}

/* 3. Credentials Section */
/* Hover & Cursor Updates */
.project-card,
.btn,
a {
    cursor: pointer;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #F8FAFC;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    margin-left: auto;
    /* Push to right */
}

.project-card:hover .card-btn {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: rotate(-45deg);
}

/* Credentials Refinement */
.credentials {
    gap: 40px;
    margin-top: 40px;
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    /* Bigger vertical gap between columns */
    margin-bottom: var(--section-gap);
    align-items: start;
}

.credential-block {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Card Style for Visibility */
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.credential-item {
    margin-bottom: 0;
    /* Handled by parent gap */
    padding-left: 24px;
    border-left: 3px solid var(--border-color);
    transition: all 0.3s ease;
}

.credential-item:hover {
    border-left-color: var(--accent-primary);
    padding-left: 32px;
    /* Slight movement */
}

.credential-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.credential-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.credential-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .project-story {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .credentials-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Contact Section Styles */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 4px;
}

.form-input,
.form-textarea {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    width: 100%;
    /* Ensure full width */
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 40px;
    transition: color 0.2s;
}

/* ... Contact Styles ... */

/* Experience Section */
.experience-container {
    max-width: 800px;
    margin: 0 auto 120px;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
    opacity: 0;
}

.timeline {
    position: relative;
    padding-left: 32px;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 60px;
}

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

.timeline-marker {
    position: absolute;
    left: -41px;
    /* Adjust based on padding + border */
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background: var(--accent-primary);
    box-shadow: 0 0 0 6px rgba(234, 88, 12, 0.2);
}

.timeline-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-card);
    border-color: rgba(234, 88, 12, 0.2);
}

.role-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 4px;
}

.company-name {
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
}

.role-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 16px;
}

.role-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}



.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}