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

:root {
    --bg: #080808;
    --fg: #f5f5f5;
    --accent: #00ff66;
    --secondary: rgba(245, 245, 245, 0.2);
    --font-hero: clamp(3rem, 10vw + 1rem, 10rem);
    --transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

#cursor {
    width: 8px;
    height: 8px;
    background: var(--accent);
    position: fixed;
    top: -4px;
    left: -4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border 0.3s;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -1px;
}

.links a {
    text-decoration: none;
    color: var(--fg);
    font-size: 10px;
    margin-left: 30px;
    letter-spacing: 2px;
    opacity: 0.6;
    transition: 0.3s;
}

.links a:hover {
    opacity: 1;
    color: var(--accent);
}

.panel {
    min-height: 100vh;
    padding: 100px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.panel.hero {
    height: 100vh;
    padding: 0 8%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--font-hero);
    line-height: 0.9;
    font-weight: 700;
    letter-spacing: -0.05em;
}

h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
}

.outline {
    -webkit-text-stroke: 1px var(--fg);
    color: transparent;
}

.marquee {
    width: 100%;
    overflow: hidden;
    background: var(--fg);
    color: var(--bg);
    padding: 20px 0;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.marquee-content {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.accordion {
    border-top: 1px solid var(--secondary);
    max-width: 900px;
}

.accordion-item {
    border-bottom: 1px solid var(--secondary);
}

.accordion-header {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: 0.5s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 40px;
    margin-top: 50px;
}

.offset-item {
    margin-top: 150px;
}

.img-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #111;
    margin-bottom: 20px;
}

.vertical-img {
    aspect-ratio: 3/4;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: var(--transition);
}

.work-item:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.contact-box form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    gap: 30px;
}

input, textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--secondary);
    padding: 15px 0;
    color: var(--fg);
    outline: none;
    font-size: 16px;
}

footer {
    background: #0c0c0c;
    padding: 100px 8% 40px;
    border-top: 1px solid var(--secondary);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-nav {
    display: flex;
    gap: 100px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-col span {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.footer-col a {
    text-decoration: none;
    color: var(--fg);
    font-size: 14px;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--secondary);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--secondary);
}

.dev-link {
    color: var(--fg);
    text-decoration: none;
    font-weight: 700;
}

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

.magnet-btn {
    display: inline-block;
    padding: 18px 35px;
    border: 1px solid var(--secondary);
    color: var(--fg);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    transition: 0.3s;
    background: transparent;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .work-grid, .footer-nav {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 40px;
    }
    .offset-item {
        margin-top: 0;
    }
    footer {
        padding: 60px 8% 20px;
    }
}