:root {
    --bg-base: #050505;
    --bg-surface: #0a0a0a;
    --bg-card: #0f0f0f;
    --primary: #f0f0f0;
    --accent: #D4FF00;
    /* Electrifying neon yellow for tech feel */
    --accent-dark: #8ba600;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --border-color: #222222;
    --border-hover: #444444;
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

h1,
h2,
h3,
.logo {
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

a {
    transition: all 0.3s ease;
}

/* Background Grids & Textures */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a:not(.btn-solid):not(.lang-toggle a) {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.nav-links a:not(.btn-solid):hover {
    color: var(--accent);
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    padding-left: 16px;
    border-left: 1px solid var(--border-color);
}

.lang-toggle a {
    color: var(--text-secondary);
    text-decoration: none;
}

.lang-toggle a.active {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

.lang-toggle .separator {
    color: var(--border-color);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-text {
    max-width: 900px;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}

.status-indicator {
    width: 6px;
    height: 6px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.15;
    /* Prevents descenders like 'g', 'p', 'y' from cutting off */
    padding-bottom: 12px;
    /* Extra breathing room to fix cutoff */
    margin-bottom: 32px;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.text-accent {
    color: var(--accent);
}

.tagline {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 56px;
    max-width: 650px;
    line-height: 1.8;
}

/* Typography elements */
.social-proof {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-left: 2px solid var(--accent);
    padding-left: 16px;
}

/* BUTTONS */
.cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-outline,
.btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-base);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-base);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-solid {
    background: var(--border-color);
    color: var(--primary);
    padding: 10px 24px;
}

.btn-solid:hover {
    background: var(--primary);
    color: var(--bg-base);
}

/* SKILLS/EXPERTISE SECTION */
.skills-section {
    padding: 140px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.section-header {
    margin-bottom: 100px;
    max-width: 700px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: var(--text-secondary);
}

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

/* Brutalist style cards */
.skill-card {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    padding: 48px 40px;
    position: relative;
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Corner decorations */
.card-borders span {
    position: absolute;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover .card-borders span {
    opacity: 1;
}

.border-top {
    top: -1px;
    left: -1px;
    width: 20px;
    height: 1px;
}

.border-right {
    top: -1px;
    right: -1px;
    width: 1px;
    height: 20px;
}

.border-bottom {
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 1px;
}

.border-left {
    bottom: -1px;
    left: -1px;
    width: 1px;
    height: 20px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.skill-icon {
    font-size: 2rem;
    color: var(--primary);
}

.skill-card:hover .skill-icon {
    color: var(--accent);
}

.skill-badge {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    letter-spacing: 0;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* BACKGROUND SECTION */
.background-section {
    padding: 140px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.background-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.col-title {
    color: var(--accent);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

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

.timeline-dot {
    position: absolute;
    top: 6px;
    left: -29px;
    width: 12px;
    height: 12px;
    background: var(--bg-base);
    border: 2px solid var(--accent);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* CTA BLOCK */
.cta-section {
    padding: 140px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-base);
}

.cta-box {
    border: 1px solid var(--border-color);
    padding: 100px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(20, 20, 20, 1) 0%, rgba(5, 5, 5, 1) 100%);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-box h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 24px;
}

.cta-box p {
    font-family: 'Space Mono', monospace;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 1rem;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 80px 0 40px;
}

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

.footer-brand p {
    font-family: 'Space Mono', monospace;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 16px;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-links a:hover {
    color: var(--bg-base);
    background: var(--accent);
    border-color: var(--accent);
}

.footer-bottom {
    text-align: center;
    font-family: 'Space Mono', monospace;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* MODAL (FOR CONTACT FORM) */
.contact-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0;
    max-width: 500px;
    width: 90%;
    color: var(--text-primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    border-radius: 0;
}

.contact-modal::backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    padding: 40px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent);
}

.contact-modal h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(212, 255, 0, 0.1);
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

/* ANIMATIONS */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .container {
        padding: 0 16px;
    }

    .hero-content {
        padding-top: 40px;
    }

    .hero-text {
        width: 100%;
    }

    .hero h1 {
        line-height: 1.2;
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .tagline {
        font-size: 0.95rem;
        word-break: break-word;
        max-width: 100%;
    }

    .availability-badge {
        max-width: 100%;
        flex-wrap: wrap;
        font-size: 0.7rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .cta-group a,
    .cta-group button {
        width: 100%;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 32px 24px;
    }

    .skills-section,
    .background-section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 60px;
    }

    .background-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cta-box {
        padding: 60px 24px;
    }
}