:root {
    --bg-color: #f8fafc;
    --bg-alt: #ffffff;
    --text-color: #0f172a;
    --text-muted: #475569;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --accent-color: #7c3aed;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --nav-bg: rgba(248, 250, 252, 0.85);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-color: #0b1120;
    --bg-alt: #111827;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --accent-color: #8b5cf6;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: #1e293b;
    --nav-bg: rgba(11, 17, 32, 0.82);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.65;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    position: relative;
}

.bg-glow {
    position: fixed;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 750px;
    height: 450px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, rgba(139, 92, 246, 0.06) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.15rem 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.nav-links .nav-cta {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary-color);
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.nav-links .nav-cta:hover {
    background: var(--primary-color);
    color: #fff;
}

#theme-toggle {
    background: none;
    border: 1px solid var(--card-border);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 5% 3rem;
    position: relative;
    z-index: 1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.hero-content h1 {
    font-size: clamp(2.6rem, 6vw, 4.25rem);
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .subtitle {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-content .description {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 2.2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.2rem;
}

.btn {
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn.primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn.primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

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

.btn.secondary:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-content .social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.hero-content .social-links a {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.hero-content .social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 5.5rem 5%;
    position: relative;
    z-index: 1;
}

.bg-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

/* About Section */
.about-grid {
    max-width: 860px;
    margin: 0 auto;
}

.about-text > p {
    font-size: 1.12rem;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
    text-align: center;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--card-bg);
    padding: 1.4rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.highlight-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.highlight-card i {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.highlight-card h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.highlight-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--primary-color);
}

.skill-category h3 {
    margin-bottom: 1.4rem;
    color: var(--text-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.skill-category h3 i {
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.skill-tags span {
    background: var(--bg-color);
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.skill-tags span:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 14px;
    border: 1px solid var(--card-border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.project-content {
    padding: 1.85rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.folder-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: var(--transition);
}

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

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.tech-stack {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.project-content p:last-child {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Timeline (Experience) */
.timeline {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}

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

.timeline-item {
    position: relative;
    padding-left: 52px;
    margin-bottom: 1.75rem;
}

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

.timeline-dot {
    position: absolute;
    left: 15px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.timeline-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--card-border);
    background: var(--bg-color);
}

.footer-brand {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-brand span {
    color: var(--primary-color);
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.footer-content code {
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
}

.footer-content .social-links a {
    color: var(--text-muted);
    font-size: 1.35rem;
    margin: 0 0.6rem;
    transition: var(--transition);
}

.footer-content .social-links a:hover {
    color: var(--primary-color);
}

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