:root {
    /* Color System - Bold, High-Contrast */
    --primary: #FF3D00;
    --primary-dark: #D32F00;
    --secondary: #0D47A1;
    --accent: #FFD600;
    --dark: #0A0A0A;
    --dark-alt: #1A1A1A;
    --light: #F5F5F5;
    --gray: #757575;
    --success: #00C853;
    
    /* Typography */
    --font-display: 'Archivo Black', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    /* Spacing */
    --section-padding: 8rem 0;
    --container-max: 1200px;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
}

/* Grain Texture Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 0.9;
    color: white;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease-out both;
}

.title-line:nth-child(1) {
    animation-delay: 0.3s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--dark);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--primary));
    animation: scrollMove 2s ease-in-out infinite;
}

@keyframes scrollMove {
    0%, 100% { transform: translateY(0); opacity: 0; }
    50% { transform: translateY(20px); opacity: 1; }
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-number {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    text-transform: uppercase;
    color: var(--dark);
}

/* About Section */
.about {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-card {
    padding: 2rem;
    background: var(--light);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateX(10px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Experience Section */
.experience {
    background: var(--light);
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 4px solid var(--light);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    left: -8rem;
    top: -5px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.5;
}

.timeline-content {
    background: white;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.position-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light);
}

.company {
    color: var(--primary);
    font-weight: 600;
}

.date {
    color: var(--gray);
    font-size: 0.875rem;
}

.responsibilities {
    list-style: none;
    padding: 0;
}

.responsibilities li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.responsibilities li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Skills Section */
.skills {
    background: white;
}

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

.skill-category h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light);
    transition: all 0.3s ease;
}

.skill-list li:hover {
    padding-left: 1rem;
    color: var(--primary);
}

/* Projects Section */
.projects {
    background: var(--dark);
    color: white;
}

.projects .section-number {
    color: var(--primary);
    opacity: 0.3;
}

.projects .section-header h2 {
    color: white;
}

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

.project-card {
    background: var(--dark-alt);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.project-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.project-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Contact Section */
.contact {
    background: var(--light);
}

.contact-intro {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 3rem;
    max-width: 700px;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-left: 4px solid var(--primary);
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.method-icon {
    font-size: 2rem;
}

.method-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.method-value {
    font-weight: 600;
    color: var(--dark);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-text {
    color: var(--gray);
}

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

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .section-header {
        gap: 1rem;
    }
    
    .section-number {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
