/* ============================================================
   CHRISTIAN VALENTA — PORTFOLIO
   ============================================================ */

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

:root {
    --bg:          #07090f;
    --bg-2:        #0b0f1a;
    --bg-card:     #10161f;
    --cyan:        #00d4ff;
    --violet:      #8b5cf6;
    --gradient:    linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
    --text:        #eef2ff;
    --muted:       #7986a8;
    --border:      rgba(255, 255, 255, 0.07);
    --border-glow: rgba(0, 212, 255, 0.3);
    --radius:      12px;
    --radius-lg:   20px;
    --nav-h:       68px;
    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar            { width: 5px; }
::-webkit-scrollbar-track      { background: var(--bg); }
::-webkit-scrollbar-thumb      { background: var(--violet); border-radius: 3px; }

/* ---- CONTAINERS ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}
.container--narrow {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    height: var(--nav-h);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.nav.scrolled {
    background: rgba(7, 9, 15, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

.nav__logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav__links {
    display: flex;
    gap: 40px;
    list-style: none;
}
.nav__links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.25s;
}
.nav__links a:hover { color: var(--cyan); }

.nav__menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav__menu span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s var(--ease);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    height: 100svh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(7,9,15,0.25) 0%,
            rgba(7,9,15,0.05) 35%,
            rgba(7,9,15,0.65) 75%,
            rgba(7,9,15,1)   100%),
        radial-gradient(ellipse at 50% 40%, transparent 25%, rgba(7,9,15,0.45) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.hero__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 22px;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s forwards;
}

.hero__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(56px, 10vw, 108px);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.035em;
    margin-bottom: 18px;
    opacity: 0;
    animation: fadeUp 0.8s 0.5s forwards;
}

.hero__accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__sub {
    font-size: 15px;
    color: var(--muted);
    letter-spacing: 0.06em;
    margin-bottom: 44px;
    opacity: 0;
    animation: fadeUp 0.8s 0.7s forwards;
}

.hero__cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s 0.9s forwards;
}

.hero__scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeUp 0.8s 1.3s forwards;
}
.hero__scroll span {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero__scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50%       { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn--primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 0 28px rgba(0, 212, 255, 0.18);
}
.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0, 212, 255, 0.35);
}
.btn--outline {
    border: 1px solid var(--border-glow);
    color: var(--cyan);
    background: transparent;
}
.btn--outline:hover {
    background: rgba(0, 212, 255, 0.07);
    transform: translateY(-3px);
}
.btn--full { width: 100%; }

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section { padding: 110px 0; }

.section__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
    display: block;
}
.section__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 60px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg-2); }

.about__grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 64px;
    align-items: center;
}

.about__img-wrap {
    position: relative;
    flex-shrink: 0;
}
.about__img-wrap::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient);
    border-radius: calc(var(--radius-lg) + 3px);
    z-index: 0;
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.25), 0 0 48px rgba(139, 92, 246, 0.15);
    transition: box-shadow 0.5s;
}
.about__img-wrap:hover::before {
    box-shadow: 0 0 36px rgba(0, 212, 255, 0.45), 0 0 72px rgba(139, 92, 246, 0.3);
}
.about__img {
    width: 100%;
    border-radius: var(--radius-lg);
    display: block;
    position: relative;
    z-index: 1;
    filter: grayscale(15%);
    transition: filter 0.5s;
}
.about__img-wrap:hover .about__img { filter: grayscale(0%); }

.about__img-glow {
    position: absolute;
    inset: -24px;
    background: var(--gradient);
    border-radius: 32px;
    opacity: 0.22;
    filter: blur(50px);
    z-index: 0;
}

.about__content .section__title { margin-bottom: 20px; }

.about__text {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 16px;
}
.about__text strong { color: var(--text); font-weight: 600; }

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 32px;
}
.skill {
    padding: 6px 15px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    transition: all 0.25s;
    cursor: default;
}
.skill:hover {
    background: rgba(0, 212, 255, 0.09);
    border-color: rgba(0, 212, 255, 0.32);
    color: var(--cyan);
    transform: translateY(-2px);
}

/* ============================================================
   VIDEO CARDS — SHARED
   ============================================================ */
.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 30px rgba(0,212,255,0.07);
}

.video-card__embed {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.video-card__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.yt-thumb {
    position: absolute;
    inset: 0;
    cursor: pointer;
    overflow: hidden;
}
.yt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.82);
    transition: filter 0.35s ease, transform 0.35s ease;
}
.yt-thumb:hover img {
    filter: brightness(1);
    transform: scale(1.04);
}
.yt-thumb__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    pointer-events: none;
}
.yt-thumb:hover .yt-thumb__play {
    transform: translate(-50%, -50%) scale(1.12);
    background: var(--accent-cyan);
}
.yt-thumb__play svg {
    width: 26px;
    height: 26px;
    fill: #fff;
    margin-left: 4px;
}

.video-card__info { padding: 22px 22px 24px; }

.video-card__tag {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 8px;
}
.video-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
}
.video-card__desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.75;
}

/* ============================================================
   FEATURED WORK
   ============================================================ */
.work { background: var(--bg); }

.videos-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ============================================================
   MORE WORK
   ============================================================ */
.more-work { background: var(--bg-2); }

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.video-card--sm .video-card__info { padding: 14px 16px 18px; }
.video-card--sm .video-card__title {
    font-size: 14px;
    margin-bottom: 0;
}

/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.experience { background: var(--bg); }

.timeline {
    position: relative;
    padding-left: 24px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(to bottom, var(--cyan) 0%, var(--violet) 60%, transparent 100%);
    opacity: 0.35;
}

.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0 28px;
    margin-bottom: 36px;
    align-items: start;
}

.timeline__dot {
    position: absolute;
    left: -24px;
    top: 20px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--cyan);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.55);
    transition: box-shadow 0.3s;
}
.timeline__item:hover .timeline__dot {
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.9);
}
.timeline__dot--edu {
    border-color: var(--violet);
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.55);
}
.timeline__item:hover .timeline__dot--edu {
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.9);
}

.timeline__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 20px;
}
.timeline__date {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.02em;
}
.timeline__loc {
    font-size: 11px;
    color: rgba(121,134,168,0.55);
    letter-spacing: 0.03em;
}

.timeline__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    transition: border-color 0.3s;
}
.timeline__card:hover { border-color: rgba(0,212,255,0.18); }

.timeline__company {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 5px;
}
.timeline__company--edu { color: var(--violet); }

.timeline__role {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.25;
}
.timeline__card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.75;
}
.timeline__card p em { color: var(--text); font-style: italic; }

.timeline__projects {
    list-style: none;
    margin-bottom: 10px;
}
.timeline__projects li {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    padding: 3px 0 3px 18px;
    position: relative;
    line-height: 1.5;
}
.timeline__projects li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient);
    flex-shrink: 0;
}
.timeline__projects + p {
    margin-top: 8px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-2); }

.contact__sub {
    color: var(--muted);
    font-size: 16px;
    margin-top: -44px;
    margin-bottom: 48px;
    line-height: 1.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.form-group label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.form-group input,
.form-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px 16px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    resize: vertical;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(121, 134, 168, 0.4);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--cyan);
    cursor: pointer;
    flex-shrink: 0;
}

.form__success {
    display: none;
    text-align: center;
    color: var(--cyan);
    font-size: 14px;
    padding: 14px;
    background: rgba(0, 212, 255, 0.07);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.18);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 52px 0;
    text-align: center;
}
.footer__name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}
.footer__role {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 22px;
}
.footer__links {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin-bottom: 24px;
}
.footer__links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.25s;
}
.footer__links a:hover { color: var(--cyan); }
.footer__copy {
    font-size: 12px;
    color: rgba(121, 134, 168, 0.35);
}

/* ============================================================
   SCROLL ANIMATION
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger siblings */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.1s; }
.fade-in:nth-child(5) { transition-delay: 0.2s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
        gap: 48px;
    }
    .videos-featured {
        grid-template-columns: 1fr;
        max-width: 580px;
        margin: 0 auto;
    }
    .timeline__item {
        grid-template-columns: 1fr;
        gap: 8px 0;
    }
    .timeline__meta { padding-top: 0; }
}

@media (max-width: 768px) {
    .nav { padding: 0 20px; }
    .nav__links { display: none; }
    .nav__menu { display: flex; }

    /* mobile nav open state */
    .nav__links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(7, 9, 15, 0.97);
        padding: 24px 28px 32px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav__links.open a { font-size: 16px; }

    .section { padding: 72px 0; }

    .hero__title { font-size: clamp(44px, 14vw, 72px); }

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

    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero__cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; }
}
