:root {
    --bg: #0a0a0a;
    --text: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border: #2a2a2a;
    --accent: #ff6b6b;
    --accent-2: #4ecdc4;
    --accent-3: #ffe66d;
    --accent-4: #a8e6cf;
    --code-bg: #1a1a1a;
    --link: #ff6b6b;
    --link-hover: #ff5252;
    --hero-bg: #1a1a1a;
    --section-bg: #0f0f0f;
}

[data-theme="light"] {
    --bg: #ffffff;
    --text: #0a0a0a;
    --text-secondary: #525252;
    --text-muted: #737373;
    --border: #e5e5e5;
    --accent: #dc2626;
    --accent-2: #059669;
    --accent-3: #d97706;
    --accent-4: #2563eb;
    --code-bg: #f5f5f5;
    --link: #dc2626;
    --link-hover: #b91c1c;
    --hero-bg: #f8f8f8;
    --section-bg: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 20px 0;
}

[data-theme="light"] .nav {
    background-color: rgba(255, 255, 255, 0.9);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.logo-dark {
    display: none;
}

.logo-light {
    display: block;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

.nav-links {
    display: flex;
    gap: 40px;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    padding: 4px;
    transition: transform 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    background: var(--hero-bg);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    opacity: 0.5;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    position: relative;
}

.hero-greeting {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: 'JetBrains Mono', monospace;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--text);
    letter-spacing: -0.03em;
}

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

.hero-typed {
    font-size: 28px;
    color: var(--accent-2);
    margin-bottom: 32px;
    font-weight: 500;
    min-height: 40px;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--accent-2);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-social {
    display: flex;
    gap: 24px;
    margin-bottom: 60px;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hero-number {
    position: absolute;
    right: -80px;
    top: 0;
    font-size: 200px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.1;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
    pointer-events: none;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--accent);
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.3);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover .hero-img {
    transform: scale(1.05);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    color: var(--section-bg);
    z-index: 1;
}

/* Sections */
.section {
    padding: 120px 0;
    background: var(--section-bg);
    position: relative;
}

.section-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
}

.section-number {
    font-size: 120px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.15;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
    margin-top: -20px;
}

.section-label {
    font-size: 16px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 12px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text {
    font-size: 20px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 24px;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'JetBrains Mono', monospace;
}

.info-value {
    font-size: 18px;
    color: var(--text);
    font-weight: 600;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.philosophy-box {
    padding: 32px;
    background: var(--code-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
    margin-bottom: 32px;
}

.philosophy-box:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.15);
}

.philosophy-quote {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
    font-style: italic;
    margin: 0;
    text-align: left;
}

.philosophy-quote::before {
    content: '"';
    font-size: 36px;
    color: var(--accent);
    opacity: 0.3;
    line-height: 0;
    margin-right: 8px;
    vertical-align: -0.2em;
}

.philosophy-quote::after {
    content: '"';
    font-size: 36px;
    color: var(--accent);
    opacity: 0.3;
    line-height: 0;
    margin-left: 8px;
    vertical-align: -0.2em;
}

.experience-box {
    text-align: center;
    padding: 20px;
    background: var(--code-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.experience-box:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.15);
}

.experience-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.stat-box {
    text-align: center;
    padding: 32px;
    background: var(--code-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.focus-box {
    text-align: center;
    padding: 40px 32px;
    background: var(--code-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.focus-box:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.15);
}

.focus-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.focus-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.focus-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.principle-box {
    text-align: center;
    padding: 40px 32px;
    background: var(--code-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.principle-box:hover {
    border-color: var(--accent-2);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(78, 205, 196, 0.15);
}

.principle-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.principle-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.principle-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

.skill-box {
    text-align: center;
    padding: 32px;
    background: var(--code-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.skill-box:hover {
    border-color: var(--accent-3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(217, 119, 13, 0.15);
}

.skill-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent-3);
    color: #0a0a0a;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.experience-box:hover .skill-badge {
    background: var(--accent);
    color: #ffffff;
    transform: scale(1.05);
}

.skill-box:hover .skill-badge {
    background: var(--accent);
    color: #ffffff;
    transform: scale(1.05);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Blog Section */
.blog-posts {
    display: grid;
    gap: 12px;
    margin-bottom: 48px;
}

.blog-post {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.blog-post:hover {
    border-color: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.1);
}

.blog-post-image {
    width: 120px;
    min-width: 120px;
    height: auto;
    overflow: hidden;
    background: var(--border);
    flex-shrink: 0;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-content {
    padding: 16px;
    flex: 1;
    min-width: 0;
}

.blog-post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.blog-post-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-title a:hover {
    color: var(--accent-2);
}

.blog-post-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reading-time {
    padding: 2px 6px;
    background: var(--border);
    border-radius: 3px;
    font-size: 10px;
}

.blog-post-excerpt {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 13px;
    margin: 0;
}

.blog-loading {
    text-align: center;
    padding: 60px 0;
    color: var(--text-secondary);
}

.blog-loading a {
    color: var(--accent);
    text-decoration: none;
}

.blog-footer {
    text-align: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
}

.btn-primary span {
    transition: transform 0.3s ease;
}

.btn-primary:hover span {
    transform: translateX(4px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.project-card {
    padding: 32px;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    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(--accent-3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent-3);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(217, 119, 13, 0.2);
}

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

.project-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-title a {
    color: var(--text);
    text-decoration: none;
}

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

.project-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.project-links a {
    color: var(--accent-3);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Music Section */
.music-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.music-description {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.btn-music {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 20px 40px;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
}

.btn-music:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.3);
}

.music-icon {
    font-size: 28px;
}

.arrow {
    transition: transform 0.3s ease;
}

.btn-music:hover .arrow {
    transform: translateX(6px);
}

.soundcloud-player {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: var(--code-bg);
    border: 1px solid var(--border);
}

.soundcloud-player iframe {
    display: block;
    width: 100%;
    border: none;
}

@media (max-width: 768px) {
    .soundcloud-player iframe {
        height: 300px;
    }
}

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

.contact-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.8;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: var(--accent-4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.2);
}

.link-icon {
    font-size: 32px;
}

.contact-link span:last-child {
    font-size: 16px;
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    background: var(--code-bg);
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

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

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-number {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .section-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-number {
        font-size: 80px;
        margin-top: 0;
    }
}

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

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-typed {
        font-size: 22px;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 36px;
    }

    .section-number {
        font-size: 60px;
    }

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

    .contact-links {
        grid-template-columns: repeat(2, 1fr);
    }
}
