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

:root {
    --purple: #b48efa;
    --teal: #6edcd9;
    --light: #e0e6f0;
    --dark: #0a0e1a;
    --muted: #8890a4;
    --pink: #f0a0c0;
}

html {
    scroll-behavior: smooth;
}

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

#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    z-index: 1;
}

.section-hero {
    min-height: 100vh;
    clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
}

.section-about {
    clip-path: polygon(0 4%, 100% 0, 100% 94%, 0 100%);
    margin-top: -4vh;
}

.section-work {
    clip-path: polygon(0 5%, 100% 0, 100% 93%, 0 100%);
    margin-top: -4vh;
}

.section-skills {
    clip-path: polygon(0 4%, 100% 0, 100% 95%, 0 100%);
    margin-top: -4vh;
}

.section-contact {
    clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
    margin-top: -4vh;
    min-height: 70vh;
}

.section-glass {
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(180, 142, 250, 0.15);
    border-radius: 16px;
    padding: 4rem;
    max-width: 900px;
    width: 100%;
    position: relative;
}

.section-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple), var(--teal), transparent);
    opacity: 0.6;
    border-radius: 16px 16px 0 0;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 9vw, 8rem);
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--light), var(--purple), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-dot {
    -webkit-text-fill-color: var(--teal);
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--muted);
    margin-top: 1rem;
}

.scroll-indicator {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--purple), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--teal);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    color: var(--light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.italic-heading {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
}

.section-body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.7;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.project-card {
    background: rgba(180, 142, 250, 0.05);
    border: 1px solid rgba(110, 220, 217, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
    border-color: rgba(180, 142, 250, 0.4);
    transform: translateY(-4px);
}

.project-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--pink);
    display: block;
    margin-bottom: 0.75rem;
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--teal);
    background: rgba(110, 220, 217, 0.08);
    border: 1px solid rgba(110, 220, 217, 0.2);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.skill-item:hover {
    background: rgba(110, 220, 217, 0.15);
    color: var(--light);
}

.contact-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--purple);
    text-decoration: none;
    border-bottom: 1px solid rgba(180, 142, 250, 0.3);
    padding-bottom: 4px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.contact-link:hover {
    color: var(--teal);
    border-color: var(--teal);
}

/* Scroll reveal animations */
.section-glass {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-glass.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .section-glass {
        padding: 2.5rem 1.5rem;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
}
