:root {
    /* Technical Precision - Dark Mode Design */
    /* Primary surfaces - charcoal/near-black */
    --surface: #131314;
    --surface-dim: #131314;
    --surface-bright: #39393a;
    --surface-container-lowest: #0e0e0f;
    --surface-container-low: #1b1b1c;
    --surface-container: #1f1f20;
    --surface-container-high: #2a2a2b;
    --surface-container-highest: #353536;
    
    /* Text colors */
    --on-surface: #e4e2e3;
    --on-surface-variant: #c7c6ca;
    --text-color: #e4e2e3;
    --text-light: #c7c6ca;
    
    /* Primary - light gray for accents */
    --primary-color: #c8c6c7;
    --on-primary: #303031;
    --primary-container: #1a1a1b;
    
    /* Secondary - brick red for CTAs and highlights */
    --secondary-color: #ffb3ae;
    --on-secondary: #68000c;
    --secondary-container: #8d1e21;
    --on-secondary-container: #ff9e98;
    
    /* Outline and borders */
    --outline: #909094;
    --outline-variant: #46474a;
    --border-color: #353536;
    
    /* Backgrounds */
    --background: #131314;
    --on-background: #e4e2e3;
    
    /* Utility */
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border: 2px solid transparent;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease,
                border-color 0.2s ease, opacity 0.15s ease;
    opacity: 0;
}

.cursor-dot.cursor-hover {
    width: 28px;
    height: 28px;
    background: transparent;
    border-color: var(--secondary-color);
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 179, 174, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease,
                background 0.3s ease;
    opacity: 0;
}

.cursor-glow.cursor-hover {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 179, 174, 0.18) 0%, transparent 70%);
}

*, *::before, *::after {
    cursor: none !important;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--on-surface);
    line-height: 1.6;
    background-color: var(--background);
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== NAVBAR ====== */
.navbar {
    background: rgba(19, 19, 20, 0.7);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--outline-variant);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--on-surface);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

.logo a:hover {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-menu a,
.nav-link {
    color: var(--on-surface-variant);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 4px;
}

/* ====== HERO SECTION ====== */
.hero {
    background: var(--background);
    color: var(--on-surface);
    padding: 80px 32px;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.hero-subtitle {
    font-size: 32px;
    color: var(--secondary-color);
    font-weight: 600;
    animation: fadeInUp 0.8s ease;
    letter-spacing: -0.01em;
}

.hero-bio {
    font-size: 16px;
    color: var(--on-surface-variant);
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    animation: fadeInUp 1.2s ease;
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeIn 1s ease;
}

.profile-img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    border: 1px solid var(--outline-variant);
    box-shadow: var(--shadow-lg);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--secondary-container);
    color: var(--on-secondary-container);
    border-color: var(--outline-variant);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--on-surface);
    border: 1px solid var(--outline);
}

.btn-secondary:hover {
    background-color: var(--surface-container-high);
    color: var(--on-surface);
    transform: translateY(-2px);
}

/* ====== SECTIONS ====== */
section {
    padding: 80px 32px;
}

section h2 {
    font-size: 32px;
    margin-bottom: 48px;
    text-align: center;
    color: var(--on-surface);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.page-header {
    background: var(--background);
    color: var(--on-surface);
    padding: 60px 32px;
    text-align: center;
    border-bottom: 1px solid var(--outline-variant);
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 18px;
    color: var(--on-surface-variant);
    line-height: 1.6;
}

/* ====== SKILLS SECTION ====== */
.skills-section {
    background-color: var(--background);
}

.skills-carousel {
    max-width: 900px;
    margin: 0 auto;
}

.carousel-container {
    overflow: hidden;
    background: var(--surface-container-low);
    border-radius: 8px;
    border: 1px solid var(--outline-variant);
}

.skills-grid {
    display: flex;
    gap: 16px;
    padding: 24px;
    width: 200%;
    flex-wrap: nowrap;
    animation: scroll-continuous 40s linear infinite;
}

.skills-grid:hover {
    animation-play-state: paused;
}

@keyframes scroll-continuous {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.skill-tag {
    background: var(--surface-container);
    padding: 20px 24px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid var(--outline-variant);
    transition: all 0.3s;
    cursor: default;
    color: var(--on-surface);
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 120px;
    white-space: nowrap;
}

.skill-tag:hover {
    transform: translateY(-4px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
    background: var(--surface-container-high);
}

/* ====== PROJECTS SECTION ====== */
.featured-projects,
.projects-section {
    background-color: var(--background);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--surface-container);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--outline-variant);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 200px;
    background: var(--surface-container-high);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-surface-variant);
    font-size: 48px;
    border-bottom: 1px solid var(--outline-variant);
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--on-surface);
    font-weight: 600;
}

.project-content p {
    color: var(--on-surface-variant);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tech-tag {
    background: var(--surface-container-high);
    color: var(--on-surface-variant);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid var(--outline-variant);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.project-links {
    display: flex;
    gap: 8px;
}

.project-links a {
    flex: 1;
    padding: 10px 12px;
    background: var(--secondary-container);
    color: var(--on-secondary-container);
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--outline-variant);
}

.project-links a:hover {
    filter: brightness(1.1);
    border-color: var(--secondary-color);
}

/* ====== EXPERIENCE SECTION ====== */
.experience-section {
    background-color: var(--background);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: var(--outline-variant);
}

.timeline-item {
    margin-bottom: 48px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    padding-right: 48px;
    width: 48%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    padding-left: 48px;
    width: 48%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--secondary-color);
    border: 3px solid var(--background);
    border-radius: 50%;
    top: 0;
    z-index: 10;
    box-shadow: 0 0 0 1px var(--outline-variant);
}

.timeline-content {
    background: var(--surface-container);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--outline-variant);
    transition: all 0.3s;
}

.timeline-content:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.timeline-content h3 {
    color: var(--on-surface);
    font-size: 20px;
    margin-bottom: 4px;
    font-weight: 600;
}

.timeline-content .company {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.timeline-content .duration {
    color: var(--on-surface-variant);
    font-size: 12px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.timeline-content .description {
    color: var(--on-surface);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.achievements {
    list-style: none;
}

.achievements li {
    padding-left: 20px;
    position: relative;
    color: var(--on-surface-variant);
    margin-bottom: 8px;
    font-size: 14px;
}

.achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ====== CONTACT SECTION ====== */
.contact-section {
    background-color: var(--background);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2,
.contact-form-wrapper h2 {
    color: var(--on-surface);
    margin-bottom: 32px;
    font-size: 28px;
    font-weight: 600;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-detail-icon {
    font-size: 24px;
    color: var(--secondary-color);
    min-width: 30px;
}

.contact-detail-content h4 {
    color: var(--on-surface);
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-detail-content p {
    color: var(--on-surface-variant);
    font-size: 14px;
}

.contact-detail-content a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-detail-content a:hover {
    color: var(--on-surface);
}

/* ====== CONTACT FORM ====== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--on-surface);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--outline-variant);
    border-radius: 4px;
    font-family: 'Inter', inherit;
    font-size: 14px;
    transition: all 0.3s;
    background: var(--surface-container);
    color: var(--on-surface);
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--on-surface-variant);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: var(--surface-container-high);
    box-shadow: 0 0 0 3px rgba(255, 179, 174, 0.1);
}

.form-note {
    color: var(--on-surface-variant);
    font-size: 12px;
    margin-top: 16px;
}

/* ====== FOOTER ====== */
.footer {
    background: var(--surface-container);
    color: var(--on-surface);
    text-align: center;
    padding: 32px 32px;
    margin-top: 48px;
    border-top: 1px solid var(--outline-variant);
    font-size: 14px;
}

.social-links {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: var(--surface-container-high);
    border-radius: 4px;
    border: 1px solid var(--outline-variant);
    align-items: center;
    justify-content: center;
    color: var(--on-surface-variant);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
}

.social-link:hover {
    background: var(--secondary-container);
    border-color: var(--secondary-color);
    color: var(--on-secondary-container);
    transform: translateY(-2px);
}

/* ====== ABOUT PAGE ====== */
.about-section {
    background-color: var(--background);
}

.about-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 64px;
}

.about-photo img {
    width: 220px;
    height: 220px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--outline-variant);
    box-shadow: var(--shadow-lg);
}

.about-intro h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.about-role {
    color: var(--secondary-color);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.about-location {
    color: var(--on-surface-variant);
    font-size: 14px;
    margin-bottom: 20px;
}

.about-bio-text {
    color: var(--on-surface-variant);
    font-size: 15px;
    line-height: 1.75;
    max-width: 620px;
    margin-bottom: 28px;
}

.about-social-links {
    display: flex;
    gap: 12px;
}

.about-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid var(--outline-variant);
    background: var(--surface-container);
    color: var(--on-surface);
    transition: all 0.3s;
}

.about-social-btn:hover {
    border-color: var(--secondary-color);
    background: var(--surface-container-high);
    transform: translateY(-2px);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.about-card,
.github-card {
    background: var(--surface-container);
    border-radius: 8px;
    border: 1px solid var(--outline-variant);
    padding: 32px;
}

.about-card h3,
.github-card h3 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--outline-variant);
}

.currently-heading {
    margin-top: 36px !important;
}

.hobby-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hobby-tag {
    background: var(--surface-container-high);
    color: var(--on-surface);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--outline-variant);
    transition: all 0.3s;
}

.hobby-tag:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.currently-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.currently-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.currently-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.currently-value {
    font-size: 14px;
    color: var(--on-surface);
}

.github-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.github-stat {
    background: var(--surface-container-high);
    border-radius: 4px;
    border: 1px solid var(--outline-variant);
    padding: 16px 12px;
    text-align: center;
}

.github-stat-value {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: var(--on-surface);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.github-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--on-surface-variant);
    text-transform: uppercase;
}

.languages-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    margin-bottom: 16px;
}

.language-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.language-bar-row {
    display: grid;
    grid-template-columns: 90px 1fr 38px;
    align-items: center;
    gap: 12px;
}

.language-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--on-surface);
}

.language-bar-track {
    height: 6px;
    background: var(--surface-container-highest);
    border-radius: 3px;
    overflow: hidden;
}

.language-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-percent {
    font-size: 12px;
    color: var(--on-surface-variant);
    text-align: right;
}

.github-loading,
.github-error {
    color: var(--on-surface-variant);
    font-size: 14px;
    text-align: center;
    padding: 24px 0;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .nav-menu {
        gap: 16px;
        font-size: 12px;
    }

    .about-hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-photo {
        display: flex;
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        padding-left: 48px;
        margin-right: 0;
    }

    .timeline-dot {
        left: 0;
    }

    section {
        padding: 50px 24px;
    }

    section h2 {
        font-size: 28px;
    }

    .skills-grid {
        padding: 16px;
        gap: 12px;
    }

    .skill-tag {
        min-width: 100px;
        padding: 16px 20px;
        font-size: 12px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .navbar-container {
        padding: 0 16px;
    }

    .hero {
        padding: 60px 24px;
    }

    .page-header {
        padding: 40px 24px;
    }

    .page-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .nav-menu {
        gap: 12px;
        font-size: 11px;
    }

    .logo a {
        font-size: 14px;
    }

    section h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .contact-content {
        gap: 24px;
    }

    .hero-buttons {
        gap: 12px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}
