/* ============================================
   WILLIAM VISSER - Portfolio
   Dark Cinematic Theme
   ============================================ */

/* Custom Properties */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: #161622;
    --bg-navbar: rgba(10, 10, 15, 0.9);
    --text-primary: #f0f0f0;
    --text-secondary: #888888;
    --accent: #c9a84c;
    --accent-hover: #d4b55a;
    --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition-base: 0.3s ease;
    --nav-height: 70px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-navbar);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.navbar__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-transform: uppercase;
    white-space: nowrap;
}

.navbar__nav {
    display: none;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar__nav li a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color var(--transition-base);
    position: relative;
    padding: 0.25rem 0;
}

.navbar__nav li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition-base);
}

.navbar__nav li a:hover {
    color: var(--text-primary);
}

.navbar__nav li a:hover::after {
    width: 100%;
}

.navbar__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 20px;
    overflow: hidden;
}

.lang-toggle__btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-stack);
}

.lang-toggle__btn.active {
    background: var(--accent);
    color: var(--bg-dark);
}

.lang-toggle__btn:hover:not(.active) {
    color: var(--text-primary);
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger__line {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.hamburger.active .hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1050;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu__overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu__nav li a {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--transition-base);
    display: block;
    padding: 0.5rem 0;
}

.mobile-menu__nav li a:hover {
    color: var(--accent);
}

/* ============================================
   HERO
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(201, 168, 76, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(22, 22, 34, 0.5) 0%, transparent 50%),
        var(--bg-dark);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, var(--bg-dark) 100%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__name {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 0 60px rgba(201, 168, 76, 0.15);
}

.hero__subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hero__tagline {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounceChevron 2s ease-in-out infinite;
}

.hero__scroll svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-secondary);
    stroke-width: 2;
    fill: none;
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.hero__scroll:hover svg {
    opacity: 1;
    stroke: var(--accent);
}

@keyframes bounceChevron {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(12px);
    }
}

/* ============================================
   SECTIONS (shared)
   ============================================ */

.section {
    padding: 5rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 1rem auto 0;
}

/* ============================================
   ABOUT
   ============================================ */

.about__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.about__portrait {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.1);
}

.about__initials {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.about__text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about__text p:last-child {
    margin-bottom: 0;
}

/* ============================================
   EXPERIENCE / TIMELINE
   ============================================ */

.timeline {
    position: relative;
    padding-left: 2.5rem;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    opacity: 0.4;
}

.timeline__entry {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 1rem;
}

.timeline__entry:last-child {
    margin-bottom: 0;
}

.timeline__entry::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-dark);
    z-index: 1;
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.3);
}

.timeline__period {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.timeline__company {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.timeline__role {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.timeline__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   SKILLS
   ============================================ */

.skills__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.skill-tag {
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 30px;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    transition: all var(--transition-base);
}

.skill-tag:hover {
    border-color: var(--accent);
    background: rgba(201, 168, 76, 0.08);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ============================================
   PORTFOLIO
   ============================================ */

.portfolio {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(22, 22, 34, 0.8) 0%, transparent 50%),
        var(--bg-dark);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.video-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.video-card__thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d0d16;
}

.video-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.video-card:hover .video-card__thumbnail img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base), transform var(--transition-base);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.video-card:hover .video-card__play {
    opacity: 1;
}

.video-card__play::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent var(--bg-dark);
    margin-left: 3px;
}

.video-card__info {
    padding: 1rem 1.25rem;
}

.video-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.video-card__date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ============================================
   VIDEO MODAL
   ============================================ */

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 2010;
    line-height: 1;
}

.video-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.video-modal__video {
    max-width: 90vw;
    max-height: 80vh;
    width: 100%;
    border-radius: 4px;
    outline: none;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
    background:
        radial-gradient(ellipse at 80% 80%, rgba(22, 22, 34, 0.6) 0%, transparent 50%),
        var(--bg-dark);
}

.contact__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 3rem;
    padding: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.contact__info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.contact__info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact__info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 400;
}

a.contact__info-value:hover {
    color: var(--accent);
}

@media (min-width: 768px) {
    .contact__info {
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
    }
}

.contact__form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    background: var(--bg-card);
    border: 1px solid rgba(136, 136, 136, 0.15);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-stack);
    font-size: 0.95rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    outline: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(136, 136, 136, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 6px;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-stack);
    transition: all var(--transition-base);
    margin-top: 0.5rem;
}

.form-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    text-align: center;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.1);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.1);
    color: #e57373;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid rgba(136, 136, 136, 0.08);
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer__text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   RESPONSIVE: Tablet (768px+)
   ============================================ */

@media (min-width: 768px) {
    .section {
        padding: 6rem 2rem;
    }

    .about__grid {
        flex-direction: row;
        align-items: flex-start;
        gap: 3.5rem;
    }

    .about__portrait {
        width: 200px;
        height: 200px;
    }

    .about__initials {
        font-size: 4rem;
    }

    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        padding-left: 3rem;
    }
}

/* ============================================
   RESPONSIVE: Desktop (1024px+)
   ============================================ */

@media (min-width: 1024px) {
    .section {
        padding: 7rem 2rem;
    }

    .navbar__nav {
        display: flex;
    }

    .hamburger {
        display: none;
    }

    .about__portrait {
        width: 220px;
        height: 220px;
    }

    .portfolio__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .timeline {
        max-width: 700px;
    }
}

/* ============================================
   UTILITY
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
