:root {
    --bg: #f9fafb;
    --text: #111827;
    --accent: #2563eb;
    --accent-light: #60a5fa;
    --shadow: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at 10% 20%, #e0f2fe, #f3e8ff 25%, #fef9c3 60%, #fff);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

/* Navigation */
nav {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
}

nav a:hover {
    color: var(--accent);
}

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

nav a:hover::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Header */
header {
    text-align: center;
    padding: 5rem 1.25rem 3rem;
    max-width: 800px;
    margin: 0 auto;
}

header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin: 0;
}

header p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #4b5563;
    margin-top: 1rem;
}

/* Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

section {
    margin: 4rem auto;
    max-width: 1000px;
}

section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-weight: 600;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.skill {
    background: rgba(255, 255, 255, 0.8);
    color: var(--accent);
    border: 1px solid var(--accent-light);
    border-radius: 12px;
    padding: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px var(--shadow);
    backdrop-filter: blur(8px);
}

.skill:hover {
    transform: translateY(-3px);
    background: var(--accent);
    color: white;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.repo,
.show-more-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-height: 200px;
}

.repo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.repo:hover {
    transform: translateY(-5px);
}

.repo h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 600;
}

.repo p {
    font-size: 0.95rem;
    color: #555;
    margin: 0.75rem 0 1.25rem;
    flex-grow: 1;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--text);
    color: white;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    font-weight: 500;
    width: fit-content;
}

.github-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.show-more-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent);
    font-size: 1.2rem;
    border: 2px dashed var(--accent-light);
    text-align: center;
    gap: 1rem;
    cursor: pointer;
}

.show-more-card:hover {
    background: var(--accent);
    color: white;
    border-color: transparent;
    transform: translateY(-5px);
}

/* Contact & Footer */
.contact p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.contact a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 3rem 1.25rem;
    color: #6b7280;
}

.github-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--text);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.github-float:hover {
    background: var(--accent);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

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

    .github-float {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }
}

@media (min-width: 769px) {
    nav {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}