@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Light theme - Retro Notion inspired colors */
    --bg-primary: #fefefe;
    --bg-secondary: #e6e6e4;
    --bg-hover: #f1f0ec;
    --bg-accent: #fff7ed;
    --text-primary: #2c2c2c;
    --text-secondary: #5a5a5a;
    --text-tertiary: #8a8a8a;
    --border-color: #e8e6e1;
    --accent-color: #d97706;
    --accent-hover: #c2660a;
    --accent-light: #fabb73;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    --divider: #e8e6e1;
    --code-bg: #f5f4f1;
    --retro-orange: #ff8c42;
    --retro-brown: #8b4513;
    --retro-cream: #f5f5dc;
}

[data-theme="dark"] {
    /* Dark theme - Retro Notion dark mode colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #252525;
    --bg-hover: #333333;
    --bg-accent: #2d1b14;
    --text-primary: #f4e4bb;
    --text-secondary: #a8a29e;
    --text-tertiary: #78716c;
    --border-color: #3c3c3c;
    --accent-color: #f59e0b;
    --accent-hover: #fbbf24;
    --accent-light: #451a03;
    --shadow: rgba(0, 0, 0, 0.25);
    --shadow-hover: rgba(0, 0, 0, 0.35);
    --divider: #3c3c3c;
    --code-bg: #2d2d2d;
    --retro-orange: #ff8c42;
    --retro-brown: #cd853f;
    --retro-cream: #2d2d2d;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Monaco', 'Consolas', 'Courier New', monospace;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
    font-weight: 400;
    letter-spacing: -0.005em;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--bg-secondary) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--bg-secondary) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: rgba(254, 254, 254, 0.85);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] header {
    background: rgba(26, 26, 26, 0.85);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    letter-spacing: -0.02em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px var(--shadow);
}

.theme-toggle:hover {
    background: var(--bg-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px var(--shadow-hover);
}

.theme-toggle i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-accent) 0%, transparent 100%);
    opacity: 0.3;
    z-index: -1;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 10%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 24px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

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

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

/* Section Styling */
section {
    padding: 64px 0;
    position: relative;
}

section:not(.hero)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--divider), transparent);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 24px;
}

.section-title::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Card styling */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--retro-orange));
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-hover);
    border-color: var(--accent-light);
}

/* About Section */
.about-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.about-text h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Skills Section */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Projects Section */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.project-item:hover {
    box-shadow: 0 4px 12px var(--shadow);
}

.project-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.project-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.project-links {
    display: flex;
    gap: 16px;
}

.project-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-links a:hover {
    color: var(--accent-hover);
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-content .cta-buttons {
    justify-content: center;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

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

    .hero {
        padding: 60px 0 40px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content .subtitle {
        font-size: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .skills-list {
        justify-content: center;
    }

    .contact-content {
        padding: 32px 24px;
        margin: 0 16px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .project-links {
        flex-direction: column;
        align-items: stretch;
    }

    .social-links {
        gap: 12px;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

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