/* ============================================
   PORTFOLIO WEBSITE - STYLESHEET
   Dark theme, modern, clean design
   ============================================ */

/* ============= ROOT & VARIABLES ============= */
:root {
    /* Dark theme colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #131825;
    --bg-tertiary: #1e2736;
    
    /* Text colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Accent colors */
    --accent-primary: #10b981;    /* emerald */
    --accent-secondary: #3b82f6;  /* blue */
    --accent-hover: #059669;      /* darker emerald */
    
    /* Shadows - more sophisticated */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    
    /* Border & lines */
    --border-color: #1e2736;
    --border-light: #2d3748;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glow effects */
    --glow-primary: 0 0 32px rgba(16, 185, 129, 0.15);
    --glow-accent: 0 0 24px rgba(59, 130, 246, 0.1);
}

/* ============= BASE STYLES ============= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 2000;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.65;
    overflow-x: hidden;
    letter-spacing: -0.3px;
    opacity: 1;
    animation: fadeInBody 0.6s ease-out;
}

@keyframes fadeInBody {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Respect user's motion preferences for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h2 {
    color: var(--text-primary);
}

h3 {
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

/* ============= LAYOUT & CONTAINER ============= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

/* Tablet */
@media (max-width: 1024px) {
    section {
        padding: 80px 0;
    }
    
    .container {
        padding: 0 20px;
    }
}

/* Small Tablet */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 18px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    section {
        padding: 48px 0;
    }
    
    .container {
        padding: 0 16px;
    }
}

/* ============= NAVIGATION ============= */
.navbar {\n    position: fixed;\n    top: 0;\n    width: 100%;\n    background: rgba(10, 14, 26, 0.8);\n    backdrop-filter: blur(16px);\n    -webkit-backdrop-filter: blur(16px);\n    border-bottom: 1px solid rgba(45, 55, 72, 0.3);\n    z-index: 1000;\n    transition: var(--transition);\n    animation: slideDownNav 0.5s ease-out;\n}\n\n@keyframes slideDownNav {\n    from {\n        opacity: 0;\n        transform: translateY(-12px);\n    }\n    to {\n        opacity: 1;\n        transform: translateY(0);\n    }\n}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    transition: var(--transition-fast);
    letter-spacing: 1px;
}

.logo:hover {
    color: var(--accent-hover);
    transform: translateY(-2px);
    text-shadow: 0 0 16px rgba(5, 150, 105, 0.4);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 48px;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: var(--transition-fast);
    letter-spacing: -0.2px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: var(--transition-fast);
    border-radius: 1px;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 12px;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Tablet & Mobile */
@media (max-width: 768px) {
    .nav-container {
        height: 68px;
        padding: 0 16px;
    }

    .logo {
        font-size: 22px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 68px;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: center;
        gap: 0;
        padding: 20px 0;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 14px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        font-size: 14px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
}

/* Mobile */
@media (max-width: 480px) {
    .nav-container {
        height: 64px;
        padding: 0 14px;
    }

    .logo {
        font-size: 20px;
        letter-spacing: 0.5px;
    }

    .nav-menu {
        top: 64px;
        padding: 16px 0;
    }

    .nav-menu li {
        padding: 12px 0;
    }

    .nav-menu a {
        font-size: 13px;
    }

    .mobile-menu-btn span {
        width: 22px;
        height: 2.5px;
    }
}

/* ============= HERO SECTION ============= */
.hero {
    margin-top: 72px;
    padding: 140px 0 100px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.04;
    border-radius: 50%;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(25px) translateX(-15px); }
    50% { transform: translateY(0px) translateX(25px); }
    75% { transform: translateY(-25px) translateX(-5px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(2.8rem, 8vw, 4.2rem);
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInLeft 0.8s ease-out;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 0 40px rgba(16, 185, 129, 0.1);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accent {
    color: var(--accent-primary);
    -webkit-text-fill-color: var(--accent-primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-description {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 520px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn {
    padding: 13px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    letter-spacing: -0.2px;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(16, 185, 129, 0.4), var(--glow-primary);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background-color: rgba(16, 185, 129, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

/* Tablet */
@media (max-width: 1024px) {
    .btn {
        padding: 12px 28px;
        font-size: 14px;
    }
}

/* Small Tablet */
@media (max-width: 768px) {
    .btn {
        padding: 11px 24px;
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
    }
}

.hero-code {
    display: none;
}

@media (max-width: 1024px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-code {
        display: block;
        background-color: var(--bg-tertiary);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        padding: 24px;
        overflow-x: auto;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
}

/* Small Tablet */
@media (max-width: 768px) {
    .hero {
        margin-top: 72px;
        padding: 90px 0 60px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-code {
        padding: 20px;
        font-size: 12px;
    }
    
    .btn {
        width: 100%;
    }
    
    .nav-container {
        padding: 0 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero {
        margin-top: 72px;
        padding: 70px 0 50px;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 6vw, 2.8rem);
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 24px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-code {
        padding: 16px;
        font-size: 11px;
    }
}

/* ============= SECTION TITLES ============= */
.section-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 64px;
    position: relative;
    display: inline-block;
    font-weight: 800;
    letter-spacing: -0.8px;
    animation: fadeInDown 0.6s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.section-intro {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.7;
    letter-spacing: -0.2px;
}

/* Tablet */
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.8rem, 4vw, 2.6rem);
        margin-bottom: 48px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .section-title {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
        margin-bottom: 40px;
    }
    
    .section-title::after {
        width: 50px;
        height: 3px;
        bottom: -10px;
    }
}

pre {
    font-family: "Fira Code", "Inconsolata", "Monaco", monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

code {
    color: var(--accent-primary);
    font-weight: 500;
}
.projects {
    background-color: var(--bg-primary);
}

.project-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 36px;
    margin-bottom: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.project-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md), var(--glow-primary);
    transform: translateY(-10px);
    background-color: var(--bg-secondary);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card.placeholder {
    opacity: 0.4;
    border: 2px dashed var(--border-color);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 16px;
}

.project-title {
    font-size: 22px;
    color: var(--text-primary);
    flex: 1;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.project-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
    letter-spacing: -0.2px;
    line-height: 1.4;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.75;
    font-size: 15px;
}

.project-achievements {
    margin-bottom: 24px;
}

.achievement-intro {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.achievement-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.achievement-list li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 22px;
    position: relative;
    line-height: 1.65;
    letter-spacing: -0.2px;
}

.achievement-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 15px;
}

.project-badge {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.project-card.featured {
    border: 1.5px solid var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.project-card.featured .project-title {
    color: var(--accent-primary);
}

/* Stagger animations for cards */
.project-card:nth-child(1) { animation-delay: 0ms; }
.project-card:nth-child(2) { animation-delay: 100ms; }
.project-card:nth-child(3) { animation-delay: 200ms; }
.project-card:nth-child(4) { animation-delay: 300ms; }
.project-card:nth-child(5) { animation-delay: 400ms; }

.skill-category:nth-child(1) { animation-delay: 0ms; }
.skill-category:nth-child(2) { animation-delay: 100ms; }
.skill-category:nth-child(3) { animation-delay: 200ms; }
.skill-category:nth-child(4) { animation-delay: 300ms; }

.contact-card:nth-child(1) { animation-delay: 0ms; }
.contact-card:nth-child(2) { animation-delay: 100ms; }
.contact-card:nth-child(3) { animation-delay: 200ms; }
.contact-card:nth-child(4) { animation-delay: 300ms; }

.revealed {
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .project-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .project-title {
        font-size: 18px;
    }

    .project-meta {
        font-size: 12px;
        margin-top: 4px;
    }

    .achievement-intro {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .achievement-list li {
        font-size: 13px;
        margin-bottom: 8px;
        padding-left: 20px;
    }
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tech-tag {
    background-color: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.tech-tag:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
    letter-spacing: -0.2px;
}

.project-link:hover {
    color: var(--accent-hover);
    gap: 8px;
}

@media (max-width: 768px) {
    .project-card {
        padding: 24px;
        margin-bottom: 20px;
    }

    .project-title {
        font-size: 18px;
    }

    .project-description {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .project-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 14px;
    }

    .project-badge {
        margin-left: 0;
        font-size: 10px;
        padding: 4px 12px;
    }
    
    .tech-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Large tablet */
@media (max-width: 1024px) {
    .project-card {
        padding: 28px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .project-card {
        padding: 18px;
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .project-title {
        font-size: 16px;
    }

    .project-meta {
        font-size: 11px;
        margin-top: 3px;
    }

    .project-description {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 14px;
    }

    .achievement-intro {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .achievement-list li {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 7px;
        padding-left: 18px;
    }

    .achievement-list li::before {
        font-size: 13px;
    }

    .project-tech {
        gap: 8px;
        margin-bottom: 16px;
    }

    .tech-tag {
        font-size: 11px;
        padding: 5px 10px;
    }

    .project-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .project-link {
        font-size: 13px;
    }
}

/* ============= SKILLS SECTION ============= */
.skills {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.skill-category {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: var(--transition);
    height: fit-content;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Large Tablet / Desktop transition */
@media (max-width: 1024px) {
    .skill-category {
        padding: 28px;
    }
}

.skill-category::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.skill-category:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md), var(--glow-primary);
    transform: translateY(-8px);
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category-title {
    font-size: 18px;
    margin-bottom: 22px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.skill-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 1.5px;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    color: var(--text-secondary);
    margin-bottom: 14px;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
    font-size: 15px;
}

.skill-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
    transition: var(--transition-fast);
}

.skill-list li:hover::before {
    transform: translateX(3px);
}

.skill-level {
    background-color: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    display: inline-block;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-category {
        padding: 28px;
    }

    .skill-category-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .skill-list li {
        font-size: 14px;
        margin-bottom: 12px;
        padding-left: 20px;
    }

    .skill-level {
        font-size: 11px;
        padding: 2px 8px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .skill-category {
        padding: 20px;
        border-radius: 8px;
    }

    .skill-category-title {
        font-size: 15px;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }

    .skill-category-title::after {
        width: 30px;
        height: 2px;
    }

    .skill-list li {
        font-size: 13px;
        margin-bottom: 10px;
        padding-left: 18px;
        line-height: 1.5;
    }

    .skill-level {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* ============= ABOUT SECTION ============= */
.about {
    background-color: var(--bg-primary);
}

.about-content {
    max-width: 820px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 28px;
    color: var(--text-secondary);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 36px;
    margin-top: 60px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
}

.highlight {
    text-align: center;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.highlight-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: -0.2px;
}

@media (max-width: 768px) {
    .about-content p {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .about-highlights {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin-top: 40px;
        padding-top: 32px;
    }

    .highlight-number {
        font-size: 32px;
    }

    .highlight-label {
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .about-content p {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 16px;
    }

    .about-highlights {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin-top: 32px;
        padding-top: 24px;
    }

    .highlight {
        animation: none;
    }

    .highlight-number {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .highlight-label {
        font-size: 12px;
    }
}

/* ============= CONTACT SECTION ============= */
.contact {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.contact-intro {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 56px;
    line-height: 1.75;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 64px;
}

/* Tablet */
@media (max-width: 1024px) {
    .contact-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        margin-bottom: 56px;
    }
}

.contact-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.contact-card:hover {
    border-color: var(--accent-primary);
    background-color: var(--bg-secondary);
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-md), var(--glow-primary);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon {
    font-size: 32px;
    color: var(--accent-primary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card:hover .contact-icon {
    transform: scale(1.15) translateY(-3px);
}

.contact-text {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.2px;
}

.resume-section {
    text-align: center;
    padding: 48px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.resume-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.resume-section:hover::before {
    opacity: 1;
}

.resume-section p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

@media (max-width: 768px) {
    .contact-intro {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .contact-links {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-bottom: 48px;
    }

    .contact-card {
        padding: 24px;
        border-radius: 10px;
    }

    .contact-icon {
        font-size: 28px;
    }

    .contact-text {
        font-size: 14px;
    }

    .resume-section {
        padding: 36px;
    }

    .resume-section p {
        font-size: 15px;
    }
}

/* Large tablet */
@media (max-width: 1024px) {
    .contact-intro {
        font-size: 16px;
        margin-bottom: 48px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .contact-intro {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .contact-links {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 36px;
    }

    .contact-card {
        padding: 20px;
        gap: 12px;
        border-radius: 8px;
    }

    .contact-icon {
        font-size: 26px;
    }

    .contact-text {
        font-size: 13px;
    }

    .resume-section {
        padding: 24px;
        border-radius: 8px;
        margin-top: 0;
    }

    .resume-section p {
        font-size: 14px;
        margin-bottom: 16px;
    }
}

/* ============= FOOTER ============= */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 40px;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.footer a {
    color: var(--accent-primary);
    transition: var(--transition-fast);
}

.footer a:hover {
    color: var(--accent-hover);
}

/* Tablet */
@media (max-width: 768px) {
    .footer {
        padding: 36px 0 32px;
    }

    .footer p {
        font-size: 13px;
        margin-bottom: 6px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .footer {
        padding: 28px 0 24px;
    }

    .footer p {
        font-size: 12px;
        margin-bottom: 4px;
    }
}

/* ============= ACCESSIBILITY & SCROLL ANIMATIONS ============= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Reveal animation for cards on scroll */
.project-card,
.skill-category,
.contact-card {
    opacity: 0;
    animation: slideInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.project-card:nth-child(1) { animation-delay: 0.08s; }
.project-card:nth-child(2) { animation-delay: 0.16s; }
.project-card:nth-child(3) { animation-delay: 0.24s; }
.project-card:nth-child(4) { animation-delay: 0.32s; }

.skill-category:nth-child(1) { animation-delay: 0.08s; }
.skill-category:nth-child(2) { animation-delay: 0.16s; }
.skill-category:nth-child(3) { animation-delay: 0.24s; }
.skill-category:nth-child(4) { animation-delay: 0.32s; }

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .project-card:hover,
    .skill-category:hover,
    .contact-card:hover,
    .btn:hover {
        transform: none;
    }

    .project-card:hover::before,
    .skill-category:hover::before,
    .contact-card:hover::before {
        opacity: 0;
    }

    .project-card:hover,
    .skill-category:hover,
    .contact-card:hover {
        box-shadow: none;
    }
}
