:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #22d3ee;
    --background: #0f172a;
    --bg-alt: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --spacing: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: var(--text-main);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

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

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

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 70% 30%, var(--primary-glow) 0%, transparent 50%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero-bg.png') center/cover no-repeat;
    opacity: 0.3;
    z-index: -1;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.hero-profile-img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px var(--primary-glow);
}

.img-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.tagline {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 2.5rem;
}

.contact-strip {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.contact-strip a,
.contact-strip span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-strip i {
    color: var(--primary);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -10px var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px var(--primary);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--text-muted);
}

/* Section Styling */
.section-title {
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* About Section */
.about-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3.5rem;
    border-radius: 24px;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-icon {
    font-size: 3rem;
    color: var(--secondary);
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text-main);
}

.stats {
    display: flex;
    gap: 4rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: 'Outfit';
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.skill-category {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

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

.skill-tags span {
    background: var(--glass);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: var(--transition);
}

.skill-tags span:hover {
    border-color: var(--secondary);
    color: var(--text-main);
    background: rgba(34, 211, 238, 0.1);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

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

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

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary);
}

.timeline-date {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.timeline-content {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.timeline-content h3 {
    margin-bottom: 0.25rem;
}

.company {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.location {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.job-desc {
    list-style: none;
}

.job-desc li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.job-desc li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

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

.project-card {
    background: var(--bg-alt);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.project-info {
    padding: 2.5rem;
}

.project-tag {
    color: var(--secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.75rem;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-tech span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

/* Extra Info */
.extra-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.lang-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.level {
    height: 6px;
    width: 150px;
    background: var(--glass-border);
    border-radius: 10px;
    position: relative;
}

.level::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
}

.level-full::after {
    width: 100%;
}

.level-partial::after {
    width: 70%;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: #070b14;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.contact-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-item p {
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* GitHub Stats Section */
.github-stats-container {
    padding: 60px 0;
    margin-top: 40px;
}

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

.github-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.github-title i {
    font-size: 2.5rem;
    color: var(--text-main);
}

.github-title h2 {
    font-size: 2rem;
    margin: 0;
}

.github-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.repo-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.repo-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.repo-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.repo-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.repo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.repo-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.repo-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.repo-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .extra-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: flex;
        z-index: 1001;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: var(--glass);
        border-radius: 8px;
        border: 1px solid var(--glass-border);
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background: #0f172a;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: var(--transition);
        z-index: 1000;
        backdrop-filter: blur(20px);
        background: rgba(15, 23, 42, 0.98);
        display: flex;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-main);
    }


    .hero h1 {
        font-size: 2.8rem;
    }

    .hero {
        height: auto;
        padding: 150px 0 100px;
    }

    .contact-strip {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }

    .about-card {
        padding: 2rem;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
    }

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

    .hero-flex {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .contact-strip {
        justify-content: center;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    .hero-profile-img {
        width: 180px;
        height: 180px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-dot {
        left: 2px;
    }

    .github-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

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