* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #F5F1E8;
    color: #1F1F1F;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

/* FILM GRAIN */

.grain {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 9999;
}

/* NAVBAR */

nav {
    position: fixed;
    width: 100%;
    padding: 28px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    font-family: "Space Mono", monospace;
    letter-spacing: 3px;
    font-size: 14px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #1F1F1F;
    font-size: 14px;
    letter-spacing: 2px;
    transition: 0.3s;
}

.nav-links a:hover {
    opacity: 0.5;
}

/* HERO */

#hero {
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 140px 8%;
    gap: 80px;
}

.hero-left {
    flex: 1;
}

.film-label {
    font-family: "Space Mono", monospace;
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 30px;
    opacity: 0.6;
}

.hero-left h1 {
    font-size: 92px;
    line-height: 0.95;
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    margin-bottom: 40px;
}

.hero-description {
    font-size: 22px;
    line-height: 1.9;
    color: #5B5B5B;
    max-width: 600px;
    margin-bottom: 50px;
}

/* BUTTONS */

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-buttons a {
    text-decoration: none;
    border: 1px solid #1F1F1F;
    padding: 16px 30px;
    color: #1F1F1F;
    font-size: 14px;
    letter-spacing: 2px;
    transition: 0.3s;
}

.hero-buttons a:hover {
    background: #1F1F1F;
    color: #F5F1E8;
}

/* HERO RIGHT */

.hero-right {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-right img {
    width: 500px;
    object-fit: contain;
    filter: grayscale(10%) contrast(105%);
}

.countdown {
    position: absolute;
    top: -40px;
    right: 20px;
    font-size: 180px;
    font-family: "Cormorant Garamond", serif;
    opacity: 0.08;
}

/* SECTION LABELS */

.section-label {
    font-family: "Space Mono", monospace;
    letter-spacing: 3px;
    font-size: 12px;
    margin-bottom: 20px;
    opacity: 0.6;
}

/* PROJECTS */

#projects {
    padding: 140px 8%;
}

#projects h2 {
    font-size: 72px;
    font-family: "Cormorant Garamond", serif;
    margin-bottom: 80px;
}

/* FILM STRIP */

.film-strip {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
}

.film-strip::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 0;
    width: 10px;
    height: 100%;
    background:
        repeating-linear-gradient(
            to bottom,
            #1F1F1F 0px,
            #1F1F1F 20px,
            transparent 20px,
            transparent 40px
        );
}

/* FILM FRAME */

.film-frame {
    border: 1px solid rgba(0,0,0,0.15);
    padding: 50px;
    background: rgba(255,255,255,0.4);
    transition: 0.4s;
}

.film-frame:hover {
    transform: translateX(10px);
    background: rgba(255,255,255,0.7);
}

.frame-number {
    font-family: "Space Mono", monospace;
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.film-frame h3 {
    font-size: 42px;
    font-family: "Cormorant Garamond", serif;
    margin-bottom: 20px;
}

.film-frame p {
    font-size: 18px;
    line-height: 1.9;
    color: #5B5B5B;
    max-width: 700px;
    margin-bottom: 30px;
}

.film-frame a {
    text-decoration: none;
    color: #1F1F1F;
    font-family: "Space Mono", monospace;
    letter-spacing: 2px;
}

/* ABOUT */

#about {
    padding: 140px 8%;
}

#about h2 {
    font-size: 72px;
    font-family: "Cormorant Garamond", serif;
    margin-bottom: 50px;
}

.about-content {
    max-width: 900px;
    margin-bottom: 70px;
}

.about-content p {
    font-size: 20px;
    line-height: 2;
    color: #5B5B5B;
    margin-bottom: 30px;
}

/* SKILLS */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.skill-box {
    border: 1px solid rgba(0,0,0,0.12);
    padding: 30px;
    line-height: 1.9;
    background: rgba(255,255,255,0.3);
}

.skill-box span {
    display: block;
    margin-bottom: 15px;
    font-family: "Space Mono", monospace;
    font-size: 12px;
    letter-spacing: 2px;
}

/* CONTACT */

#contact {
    padding: 140px 8%;
    text-align: center;
}

#contact h2 {
    font-size: 72px;
    font-family: "Cormorant Garamond", serif;
    margin-bottom: 30px;
}

.contact-text {
    font-size: 20px;
    line-height: 2;
    color: #5B5B5B;
    max-width: 700px;
    margin: 0 auto 60px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-links a {
    text-decoration: none;
    border: 1px solid #1F1F1F;
    padding: 16px 28px;
    color: #1F1F1F;
    transition: 0.3s;
    font-family: "Space Mono", monospace;
    letter-spacing: 2px;
}

.contact-links a:hover {
    background: #1F1F1F;
    color: #F5F1E8;
}
/* VHS OVERLAY */

.vhs-overlay {
    position: fixed;
    inset: 0;

    background:
        linear-gradient(
            rgba(255,255,255,0.02) 50%,
            rgba(0,0,0,0.02) 50%
        );

    background-size: 100% 4px;

    pointer-events: none;

    opacity: 0.4;

    z-index: 9999;
}

/* FILM NOISE */

.film-noise {
    position: fixed;
    inset: 0;

    opacity: 0.04;

    pointer-events: none;

    z-index: 9998;

    background-image:
        url("https://grainy-gradients.vercel.app/noise.svg");

    animation: noiseMove 0.25s infinite;
}

@keyframes noiseMove {
    0% {
        transform: translate(0,0);
    }

    25% {
        transform: translate(-1%,1%);
    }

    50% {
        transform: translate(1%,-1%);
    }

    75% {
        transform: translate(1%,1%);
    }

    100% {
        transform: translate(0,0);
    }
}

/* CORNER LABEL */

.corner-label {
    position: fixed;

    bottom: 25px;
    right: 30px;

    font-family: "Space Mono", monospace;

    font-size: 11px;

    letter-spacing: 2px;

    opacity: 0.35;

    z-index: 9999;
}

/* HERO IMAGE */

.hero-right {
    position: relative;

    flex: 1;

    display: flex;

    justify-content: center;

    align-items: center;
}

.hero-right img {
    width: 560px;

    object-fit: contain;

    position: relative;

    z-index: 3;

    filter:
        drop-shadow(0 25px 45px rgba(0,0,0,0.15));

    animation: floatImage 6s ease-in-out infinite;
}

/* FLOATING IMAGE */

@keyframes floatImage {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* COUNTDOWN */

.countdown {
    position: absolute;

    top: -40px;
    right: 220px;

    font-size: 260px;

    font-family: "Cormorant Garamond", serif;

    color: rgba(158, 42, 43, 0.08);

    z-index: 5;

    pointer-events: none;

    animation:
        flicker 4s infinite,
        pulse 6s ease-in-out infinite;
}

/* FILM FLICKER */

@keyframes flicker {

    0% {
        opacity: 0.05;
    }

    10% {
        opacity: 0.09;
    }

    20% {
        opacity: 0.04;
    }

    30% {
        opacity: 0.08;
    }

    40% {
        opacity: 0.05;
    }

    100% {
        opacity: 0.05;
    }
}

@keyframes pulse {

    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.04) rotate(-2deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* FLOATING NOTE */

.floating-note {
    position: absolute;

    top: 100px;
    left: 0;

    transform: rotate(-6deg);

    padding: 12px 20px;

    border: 1px solid rgba(0,0,0,0.1);

    background: rgba(255,255,255,0.4);

    backdrop-filter: blur(10px);

    font-family: "Space Mono", monospace;

    font-size: 11px;

    letter-spacing: 2px;

    z-index: 5;
}

/* FILM FRAME HOVER */

.film-frame {
    position: relative;

    overflow: hidden;
}

.film-frame::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(255,255,255,0.2),
            transparent
        );

    transform: translateX(-100%);

    transition: 0.7s;
}

.film-frame:hover::before {
    transform: translateX(100%);
}

.film-frame:hover {
    transform:
        translateX(10px)
        rotate(-0.4deg);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.08);
}

/* PROJECT DEPTH */

.film-frame {
    backdrop-filter: blur(10px);

    background:
        rgba(255,255,255,0.55);
}

/* FILM STRIP GLOW */

.film-strip::before {
    box-shadow:
        0 0 30px rgba(0,0,0,0.12);
}