/* ================= GLOBAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a, #111827);
    color: #e5e7eb;
    overflow-x: hidden;
    overflow-y: hidden;
    /* ADD THIS */
    line-height: 1.7;
}

/* ================= PREMIUM BACKGROUND GLOW ================= */
body::before {
    content: "";
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    z-index: 0;
}

/* ================= LAYOUT ================= */
.layout {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 2;
}

/* ================= SIDEBAR ================= */
.sidebar {
    width: 35%;
    padding: 100px 80px;
    height: 100vh;
    overflow: auto;
    flex-shrink: 0;

}

/* ================= HERO ================= */
.sidebar h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
    background: linear-gradient(90deg, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    margin-top: 14px;
    font-size: 16px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.intro {
    margin: 40px 0 50px;
    color: #b0b3b8;
    font-size: 16px;
}

/* ================= NAVIGATION ================= */
nav a {
    display: block;
    margin-bottom: 20px;
    text-decoration: none;
    color: #93c5fd;
    font-size: 13px;
    letter-spacing: 1.5px;
    transition: 0.3s ease;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #3b82f6;
    transition: 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: #ffffff;
}

/* ================= CONTACT ================= */
.contact-section {
    margin-top: 60px;
}

.social-icons {
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.icon img {
    width: 20px;
    height: 20px;
}

.icon:hover {
    transform: translateY(-6px);
    background: #1f2937;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

/* ================= RESUME BUTTON ================= */
.resume-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.6px;
    transition: all 0.3s ease;
}

.resume-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.4);
}

/* ================= CONTENT ================= */
.content {
    width: 65%;
    padding: 100px 110px;
    height: 100vh;
    overflow-y: auto;

}

/* ================= SECTIONS ================= */
section {
    margin-bottom: 110px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease forwards;
}

section:nth-child(2) {
    animation-delay: 0.1s;
}

section:nth-child(3) {
    animation-delay: 0.2s;
}

section:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    margin-bottom: 28px;
    font-size: 28px;
    font-weight: 700;
}

/* ================= PROJECT CARDS ================= */
.project-card {
    background: linear-gradient(145deg,
            rgba(17, 24, 39, 0.95),
            rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(12px);
    padding: 45px;
    border-radius: 22px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    margin-bottom: 45px;
    transition: all 0.35s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 25px 70px rgba(59, 130, 246, 0.2);
}

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

.title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    transition: 0.3s ease;
}

.project-title:hover {
    color: #3b82f6;
}

.external-link {
    font-size: 16px;
    text-decoration: none;
    color: #93c5fd;
    transition: 0.3s ease;
}

.external-link:hover {
    color: #3b82f6;
}

.github-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(31, 41, 55, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.github-icon img {
    width: 18px;
}

.github-icon:hover {
    background: #1f2937;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.project-card p {
    color: #b0b3b8;
    font-size: 15px;
    margin-bottom: 22px;
}

/* ================= TECH STACK ================= */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-stack span {
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 25px;
    font-size: 13px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    transition: 0.3s ease;
}

.tech-stack span:hover {
    background: rgba(59, 130, 246, 0.3);
}

/* ================= SKILLS ================= */
.skills span {
    display: inline-block;
    margin: 12px 12px 0 0;
    padding: 10px 20px;
    background: #111827;
    border-radius: 25px;
    font-size: 14px;
    border: 1px solid #1f2937;
    transition: 0.3s ease;
}

.skills span:hover {
    border-color: #3b82f6;
    color: #ffffff;
}

/* ================= PARTICLES ================= */
#particles {
    position: fixed;
    width: 100%;
    height: 100%;
    background: url("https://www.transparenttextures.com/patterns/stardust.png");
    opacity: 0.05;
    z-index: 1;
}

/* ================= MOBILE FIX - NO OVERLAP ================= */
@media (max-width: 1000px) {

    body {
        overflow-y: auto;
    }

    .layout {
        display: block;
        height: auto;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        overflow: visible;
        padding: 60px 25px;
    }

    .content {
        position: relative;
        width: 100%;
        height: auto;
        overflow: visible;
        padding: 60px 25px;
        margin: 0;
    }

    /* Remove any fixed scroll behavior */
    .sidebar,
    .content {
        max-height: none;
    }

    /* Reduce large heading size */
    .sidebar h1 {
        font-size: 34px;
        line-height: 1.2;
    }

    h2 {
        font-size: 22px;
    }

    .project-card {
        padding: 25px;
    }

    section {
        animation: none; /* prevents weird stacking animation bug */
        opacity: 1;
        transform: none;
    }
}

/* Hide default scrollbar spacing look */
.sidebar,
.content {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.4) transparent;
}

/* Chrome scrollbar */
.sidebar::-webkit-scrollbar,
.content::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.4);
    border-radius: 10px;
}