@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

:root {
    --bg: #0a0a0a;
    --text: #e8e8e8;
    --text-secondary: #999;
    --accent: #ff3366;
    --accent-2: #00d9ff;
    --border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, border-color 0.2s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-hover {
    transform: translate(-50%, -50%) scale(2);
    border-color: var(--accent-2);
}

/* Grain texture */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.nav-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

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

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 2rem;
}

.hero-text {
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 2rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line:first-child {
    color: transparent;
    -webkit-text-stroke: 1px var(--text);
    text-stroke: 1px var(--text);
}

.hero-title .line:last-child {
    background: linear-gradient(45deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(20px); }
}

/* Section Title */
.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 4rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--text);
    text-stroke: 1px var(--text);
}

/* Work */
.work {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.work-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.work-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    padding: 3rem 2rem;
    border: 1px solid var(--border);
    border-radius: 0;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: calc(var(--delay) * 0.2s);
}

.work-item:hover {
    border-color: var(--accent);
    background: rgba(255, 51, 102, 0.02);
    transform: translateX(20px);
}

.work-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.work-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.work-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
}

.work-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.work-tags {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.work-tags span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* About */
.about {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-visual {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-element {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    position: relative;
    animation: float 6s ease-in-out infinite;
    filter: blur(60px);
    opacity: 0.3;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Contact */
.contact {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.contact-content {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.contact-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-link {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 3rem;
    position: relative;
    background: linear-gradient(45deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

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

.contact-social {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
}

/* Footer */
.footer {
    padding: 4rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 1.5rem 2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .work {
        padding: 4rem 2rem;
    }

    .work-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 1rem;
    }

    .work-number {
        font-size: 2rem;
    }

    .about {
        padding: 4rem 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact {
        padding: 4rem 2rem;
    }

    .contact-social {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    body {
        cursor: auto;
    }

    .cursor {
        display: none;
    }
}