/* ============================================================
   DAVID DOZORETZ — Portfolio Site
   Main Stylesheet
   ============================================================ */

/* === FONTS === */
@font-face {
    font-family: 'Kiona';
    src: url('/fonts/Kiona-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Kiona';
    src: url('/fonts/Kiona-LightItallic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Kiona';
    src: url('/fonts/Kiona-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Kiona';
    src: url('/fonts/Kiona-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Kiona';
    src: url('/fonts/Kiona-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #2F2E2E;
    color: #ffffff;
    font-family: 'Kiona', 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffffff;
}

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

/* === SITE HEADER === */
.site-header {
    background-color: #2F2E2E;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-identity {
    display: flex;
    flex-direction: column;
    line-height: 1;
}


.site-name {
    font-family: 'Kiona', sans-serif;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A09887;
    text-decoration: none;
    margin-left: -2px;
}

.site-name:hover {
    color: #ffffff;
}

.site-tagline {
    font-family: 'Kiona', sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #A09887;
    margin-top: 6px;
}

/* === NAVIGATION === */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
}

.main-nav a {
    font-family: 'Kiona', sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A09887;
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
}

/* Nav item separators */
.main-nav ul li {
    line-height: 1;
}

.main-nav a {
    border-right: 1px solid #000;
    padding: 0 15px;
}

.main-nav ul li:last-child a {
    border-right: none;
}

/* Social icons in nav */
.nav-social-icon {
    font-size: 22px;
    color: #A09887;
    transition: color 0.2s ease;
    line-height: 1;
    vertical-align: -4px;
}

.nav-social-item a:hover .nav-social-icon {
    color: #ffffff;
}

/* Nav social icons */
.nav-social-item {
    display: flex;
    align-items: center;
}

.nav-social-item a {
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.nav-social-item a:hover {
    opacity: 1;
    color: inherit;
}

.nav-social-icon {
    height: 18px;
    width: auto;
    display: block;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* === MAIN CONTENT === */
main {
    flex: 1;
}

/* === DEMO REEL SECTION === */
.demo-reel-section {
    padding: 35px 40px 0;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.section-label {
    font-family: 'Kiona', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #C7C7C7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.demo-reel-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border: 1px solid #000000;
    box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.6);
    background: #000;
}

.demo-reel-video-wrap video,
.demo-reel-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Suppress browser hover overlay darkening on demo reel */
.demo-reel-video-wrap video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
}
.demo-reel-video-wrap video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* === SOUND CONTROL === */
.sound-control-bar {
    padding: 14px 40px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sound-control-label {
    font-family: 'Kiona', sans-serif;
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888888;
}

.sound-toggle-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #aaaaaa;
    font-family: 'Kiona', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 5px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sound-toggle-btn:hover,
.sound-toggle-btn.active {
    border-color: #ffffff;
    color: #ffffff;
}

/* === PORTFOLIO SECTIONS === */
.portfolio-section {
    padding: 30px 40px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.portfolio-section-label {
    font-family: 'Kiona', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #C7C7C7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 10px;
    margin-bottom: 18px;
}

/* === VIDEO GRID === */
.video-grid {
    display: grid;
    gap: 18px;
}

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

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

/* === VIDEO TILE === */
.video-tile {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #000000;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.55);
    background: #000000;
    aspect-ratio: 16 / 9;
    display: block;
}

.video-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 14px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    pointer-events: none;
}

.video-tile-title {
    font-family: 'Kiona', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.3;
}

.video-tile-sub {
    font-family: 'Kiona', sans-serif;
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #cccccc;
    margin-top: 3px;
}

/* === SITE FOOTER === */
.site-footer {
    background-color: #2F2E2E;
    padding: 28px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    font-family: 'Kiona', sans-serif;
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #777777;
}

.footer-social {
    display: flex;
    gap: 22px;
    align-items: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.footer-social a:hover {
    opacity: 1;
}

.footer-social img {
    height: 26px;
    width: auto;
}

/* === ABOUT PAGE === */
.page-section {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-heading {
    font-family: 'Kiona', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.about-bio {
    margin-bottom: 55px;
}

.about-bio p {
    font-family: 'Kiona', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.9;
    color: #cccccc;
    margin-bottom: 18px;
    letter-spacing: 0.06em;
}

.about-credentials {
    margin-top: 25px;
}

.about-credentials ul {
    list-style: none;
    padding: 0;
}

.about-credentials li {
    font-family: 'Kiona', sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #aaaaaa;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 15px;
    position: relative;
}

.about-credentials li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #555555;
}

/* Filmography Table */
.filmography-section {
    margin-top: 10px;
}

.filmography-table {
    width: 100%;
    border-collapse: collapse;
}

.filmography-table thead tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.filmography-table th {
    font-family: 'Kiona', sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #777777;
    padding: 0 20px 12px 0;
    text-align: left;
}

.filmography-table td {
    font-family: 'Kiona', sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.07em;
    color: #bbbbbb;
    padding: 11px 20px 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

.filmography-table tr:hover td {
    color: #ffffff;
}

.filmography-table td:first-child {
    color: #dddddd;
    font-weight: 400;
}

/* === CONTACT PAGE === */
.contact-wrap {
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.contact-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-portrait {
    flex: 0 0 auto;
    width: 260px;
}

.contact-portrait img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field label {
    font-family: 'Kiona', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-transform: capitalize;
}

.form-field input,
.form-field textarea {
    background-color: #8D8C8C;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: 'Kiona', sans-serif;
    font-size: 13px;
    letter-spacing: 0.05em;
    padding: 12px 14px;
    transition: background-color 0.2s ease;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
}

.form-field input:hover,
.form-field textarea:hover,
.form-field input:focus,
.form-field textarea:focus {
    background-color: #7C7380;
    outline: none;
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.submit-btn {
    background-color: #585858;
    border: none;
    color: #ffffff;
    font-family: 'Kiona', sans-serif;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 14px 30px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    margin-top: 6px;
}

.submit-btn:hover {
    background-color: #777777;
}

/* Form success/error messages */
.form-message {
    font-family: 'Kiona', sans-serif;
    font-size: 12px;
    letter-spacing: 0.1em;
    padding: 14px;
    margin-top: 10px;
    display: none;
}

.form-message.success {
    background-color: rgba(180, 90, 212, 0.15);
    border: 1px solid rgba(180, 90, 212, 0.4);
    color: #ffffff;
}

.form-message.error {
    background-color: rgba(200, 60, 60, 0.15);
    border: 1px solid rgba(200, 60, 60, 0.4);
    color: #cc4444;
}

/* === PROJECT / DETAIL PAGES === */
.project-header-bar {
    padding: 30px 40px 0;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.project-title {
    font-family: 'Kiona', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 8px;
}

.project-subtitle {
    font-family: 'Kiona', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #888888;
    text-transform: uppercase;
}

.project-video-section {
    padding: 16px 40px 30px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.project-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border: 1px solid #000000;
    box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.6);
    background: #000;
}

.project-video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-nav-row {
    padding: 0 40px 20px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-nav-link {
    font-family: 'Kiona', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #666666;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-nav-link:hover {
    color: #ffffff;
}

/* === RESPONSIVE === */

@media (max-width: 1024px) {
    .demo-reel-section,
    .portfolio-section,
    .sound-control-bar {
        padding-left: 30px;
        padding-right: 30px;
    }
    .site-header { padding: 20px 30px; }
    .site-footer { padding: 24px 30px; }
    .page-section { padding: 30px; }
    .contact-wrap { padding: 30px; }
    .project-header-bar,
    .project-video-section,
    .project-nav-row { padding-left: 30px; padding-right: 30px; }
}

@media (max-width: 820px) {
    .video-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .site-header { padding: 15px 20px; }

    .site-name { font-size: 20px; }
    .site-tagline { font-size: 10px; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2F2E2E;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 20px;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 18px;
    }

    .nav-toggle {
        display: flex;
    }

    .video-grid.cols-3,
    .video-grid.cols-2 {
        grid-template-columns: 1fr;
    }

    .demo-reel-section,
    .portfolio-section,
    .sound-control-bar {
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-footer { padding: 20px; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-social { justify-content: center; }

    .page-section { padding: 20px; }
    .contact-wrap { padding: 20px; }

    .project-header-bar,
    .project-video-section,
    .project-nav-row {
        padding-left: 20px;
        padding-right: 20px;
    }

    .filmography-table th:last-child,
    .filmography-table td:last-child {
        display: none;
    }
}

/* === TILE PLAY BUTTON (for YouTube tiles on grid) === */
.tile-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.65);
    border-radius: 50%;
    pointer-events: none;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.tile-play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 17px;
    border-color: transparent transparent transparent #ffffff;
}

.video-tile:hover .tile-play-btn {
    background: rgba(255,255,255,0.18);
    transform: translate(-50%, -50%) scale(1.1);
}

/* === YOUTUBE PLAY BUTTON === */
.yt-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-placeholder img.yt-thumb {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.yt-placeholder:hover img.yt-thumb {
    opacity: 0.9;
}

.yt-play-btn {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    background: rgba(0,0,0,0.75);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.yt-placeholder:hover .yt-play-btn {
    background: rgba(255,255,255,0.2);
    transform: scale(1.08);
}

.yt-play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 0 14px 26px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 6px;
}
