/* ========================================
   CSS Variables & Reset
   ======================================== */

:root {
    /* Colors - Matte Green Palette */
    --bg-primary: #0a0f0d;
    --bg-secondary: #141f1a;
    --bg-card: #1a2822;
    --green-matte: #2d4a3e;
    --green-accent: #4a7c59;
    --green-glow: #6b9b7a;
    --green-bright: #8bc49f;
    --text-primary: #e8f0eb;
    --text-secondary: #a3b5aa;
    --text-muted: #5a6b60;

    /* Typography */
    --font-display: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* ========================================
   Particle Canvas
   ======================================== */

.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   Floating Shapes
   ======================================== */

.floating-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
    z-index: 0;
}

/* Hero Section Shapes */
.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -150px;
    background: radial-gradient(circle, var(--green-matte) 0%, transparent 70%);
    opacity: 0.3;
    animation: float1 20s ease-in-out infinite, rotate1 60s linear infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 20%;
    right: -100px;
    background: radial-gradient(circle, var(--green-accent) 0%, transparent 70%);
    opacity: 0.2;
    animation: float2 25s ease-in-out infinite, rotate2 80s linear infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 10%;
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
    opacity: 0.25;
    animation: float3 18s ease-in-out infinite;
}

.shape-4 {
    width: 80px;
    height: 80px;
    top: 30%;
    left: 20%;
    background: var(--green-bright);
    opacity: 0.1;
    animation: float4 15s ease-in-out infinite, rotate1 40s linear infinite;
}

.shape-5 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 15%;
    background: radial-gradient(circle, var(--green-matte) 0%, transparent 70%);
    opacity: 0.2;
    animation: float5 22s ease-in-out infinite;
}

/* About Section Shapes */
.shape-6 {
    width: 250px;
    height: 250px;
    top: -50px;
    right: -80px;
    background: radial-gradient(circle, var(--green-accent) 0%, transparent 70%);
    opacity: 0.15;
    animation: float2 28s ease-in-out infinite;
}

.shape-7 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: -40px;
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
    opacity: 0.2;
    animation: float3 20s ease-in-out infinite;
}

/* Skills Section Shapes */
.shape-8 {
    width: 180px;
    height: 180px;
    top: 10%;
    left: -60px;
    background: radial-gradient(circle, var(--green-matte) 0%, transparent 70%);
    opacity: 0.2;
    animation: float1 24s ease-in-out infinite;
}

.shape-9 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--green-accent) 0%, transparent 70%);
    opacity: 0.15;
    animation: float5 30s ease-in-out infinite, rotate2 90s linear infinite;
}

/* Floating Animations */
@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -20px); }
    50% { transform: translate(-20px, 30px); }
    75% { transform: translate(20px, 20px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-40px, 20px); }
    66% { transform: translate(30px, -30px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -25px) scale(1.05); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-15px, 25px); }
    50% { transform: translate(25px, 15px); }
    75% { transform: translate(10px, -20px); }
}

@keyframes float5 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-35px, -25px); }
}

@keyframes rotate1 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate2 {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* ========================================
   Layout
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-xl) 0;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) 0;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
    transition: background var(--transition-base);
}

.nav.scrolled {
    background: rgba(10, 15, 13, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--green-bright);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green-bright);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 50%, var(--bg-secondary) 0%, var(--bg-primary) 70%);
    padding: var(--space-xl) var(--space-md);
}

.hero-content {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--green-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.hero-stack {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    color: var(--green-accent);
    font-size: 0.875rem;
    font-weight: 500;
}

.stack-divider {
    color: var(--text-muted);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeIn 1s ease 0.5s forwards;
    opacity: 0;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--green-accent), transparent);
    animation: scrollPulse 2s ease infinite;
}

/* ========================================
   About Section
   ======================================== */

.about {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.section-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green-bright);
    margin-bottom: var(--space-md);
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    max-width: 600px;
}

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

.skills-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.skills-list li {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    padding-left: var(--space-sm);
    position: relative;
}

.skills-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--green-accent);
    border-radius: 50%;
}

/* ========================================
   Experience Section
   ======================================== */

.experience {
    background: var(--bg-primary);
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.experience-card {
    background: var(--bg-card);
    border: 1px solid var(--green-matte);
    border-radius: 8px;
    padding: var(--space-md);
    transition: border-color var(--transition-base);
}

.experience-card:hover {
    border-color: var(--green-accent);
}

.experience-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
    .experience-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.experience-info {
    flex: 1;
}

.experience-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.experience-company {
    color: var(--green-bright);
    font-weight: 500;
}

.experience-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

@media (min-width: 768px) {
    .experience-meta {
        text-align: right;
    }
}

.experience-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.experience-location {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.experience-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--green-matte);
}

.tag {
    font-size: 0.75rem;
    color: var(--green-bright);
    background: rgba(139, 196, 159, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* ========================================
   Skills Section
   ======================================== */

.skills {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.skills-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: calc(-1 * var(--space-sm));
    margin-bottom: var(--space-lg);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skills-category {
    background: var(--bg-card);
    border: 1px solid var(--green-matte);
    border-radius: 8px;
    padding: var(--space-md);
}

.category-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.skills-subcategory {
    margin-bottom: var(--space-md);
}

.skills-subcategory:last-child {
    margin-bottom: 0;
}

.subcategory-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.skills-category .skills-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skills-category .skills-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(45, 74, 62, 0.3);
}

.skills-category .skills-list li:last-child {
    border-bottom: none;
}

.skills-category .skills-list li::before {
    display: none;
}

.skill-name {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.skill-years {
    font-size: 0.75rem;
    color: var(--green-bright);
    background: rgba(139, 196, 159, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* ========================================
   Contact Section
   ======================================== */

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

.contact-content {
    max-width: 600px;
}

.contact-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-link {
    display: flex;
    flex-direction: column;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--green-matte);
    transition: border-color var(--transition-fast);
}

.contact-link:hover {
    border-color: var(--green-bright);
}

.contact-link:hover .link-value {
    color: var(--green-bright);
}

.link-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.link-value {
    font-size: 1rem;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--bg-primary);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--green-matte);
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 640px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 5rem;
    }

    .nav-links {
        gap: var(--space-sm);
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .contact-text {
        font-size: 1rem;
    }
}
