/* === UNAL Ancizar Sans Variable Font === */
@font-face {
    font-family: "Ancizar Sans";
    src: url("/fonts/AncizarSans-VariableFont_wght.ttf") format("truetype-variations");
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

/* === Global Variables === */
:root {
    --page-bg: #fff5f0;
    --card-bg: #ffffff;
    --text: #000000;
    --muted: #666;
    --hover: #3046a4;
    /*Color Palette*/
    --rose: #a43049;
    --burnt: #b7472dff;
    --lemon: #c29f39ff;
    --clover: #35a034ff;
    --teal: #309EA4;
    --lapis: #3730a4ff;
    --violet: #7730a4ff;
    --magenta: #a43075ff;
    /**/
    --max-width: 980px;
    --radius: 12px;
}

a:link,
a:visited {
    color: #309ea4;
}

a:hover {
    color: #309ea4;
}

a:active {
    color: #2f44a3;
}

/* === Reset & Base === */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    padding-top: 60px;
}

.a {
    text-decoration: none;
    color: inherit;
}

body {
    font-family: "Ancizar Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--teal);
    color: #fff;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* === Headings === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.4em 0;
    color: var(--text);
}


h1 {
    font-size: 40px;
}

h2 {
    font-size: 34px;
}

h3 {
    font-size: 30px;
    
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 12px;
}





/* === Header === */
.site-header {
    background: var(--card-bg);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
}

.brand {
    font-weight: 700;
    font-size: 40px;
    text-decoration: none;
    color: var(--text);
}


/* === Navigation === */
.main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: inline-block;
    padding: 8px 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius);
    transition: color 0.18s ease, transform 0.15s ease, background-color 0.2s ease;
}

.main-nav a:hover {
    color: var(--hover) !important;
    background-color: rgba(48, 70, 164, 0.1);
    transform: translateY(-2px);
}

.main-nav a.active {
    color: var(--teal);
}

/* Submenu */
.main-nav li {
    position: relative;
}

.main-nav .submenu {
    display: none;
    position: absolute;
    top: calc(100% - 8px);
    right: 0;
    flex-direction: column;
    gap: 8px;
    padding: 16px 12px;
    background: var(--card-bg);
    border-radius: var(--radius);
    margin-top: 8px;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-top: 16px;
}

.main-nav li:hover .submenu {
    display: flex;
}

.main-nav .submenu a {
    padding: 8px 12px;
    font-weight: 600;
    font-size: 20px;
    white-space: nowrap;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 44px;
    height: 36px;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    height: 3px;
    background: var(--text);
    margin: 6px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 740px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 20px;
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        background: var(--card-bg);
        border-radius: var(--radius);
        display: none;
        min-width: 180px;
        width: auto;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        overflow: hidden;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 16px;
    }

    .main-nav a {
        padding: 8px 12px;
    }

    .main-nav a:hover {
        color: var(--hover);
        background-color: rgba(48, 70, 164, 0.1);
    }

    /* Mobile submenu */
    .main-nav .submenu {
        position: static;
        display: none;
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        background: rgba(48, 69, 164, 0.073);
        border-radius: var(--radius);
        margin-top: 8px;
        box-shadow: none;
        list-style: none;
    }

    .main-nav .submenu.open {
        display: flex;
    }

    .main-nav .submenu a {
        font-size: 20px;
        padding: 6px 8px;
    }
}


/* === Hero Video === */
.hero-video {
    max-width: var(--max-width);
    margin: auto auto auto auto;
    cursor: pointer;
    margin-bottom: 40px;
}

.hero-video video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--radius);
}


/* === About Section === */
.about-section {
    background: #fff5f0;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.about-inner {
    display: flex;
    width: 100%;
    max-width: var(--max-width);
    gap: 15px;
    align-items: stretch;
}

.about-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-right {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    transition: opacity .3s ease;
}

.about-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
}

@media (max-width: 980px) {
    .about-right {
        opacity: 0;
        pointer-events: none;
        display: none;
    }

    .about-left {
        flex: 1 1 100%;
    }

    .about-text-box p {
        font-size: 20px !important;
    }
}

.about-title-box,
.about-text-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 32px;
}

.about-title-box h2 {
    font-weight: 700;
    font-size: 40px;
    margin: 0;
}

.about-text-box p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 1.2em;
}

.about-text-box p:last-child {
    margin-bottom: 0;
}

/* === Work Section === */
#work {
    margin-bottom: 40px;
}

.work-title-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 32px;
    text-align: center;
    margin-bottom: 20px;
}

.work-title-box h2 {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    justify-items: center;
}

.video-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    ;
}

.video-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
}


.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}


@media (max-width: 980px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* === Projects Section === */

#projects {
    margin-bottom: 40px;
}

.projects-inner {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.projects-inner.reverse {
    flex-direction: row-reverse;
}

/* Left & Right columns */
.projects-left,
.projects-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.projects-left img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 0px;
    object-fit: cover;
    flex: 1;
}

#projectsGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title-box-1,
.section-title-box-2 {
    border-radius: var(--radius);
    padding: 22px 20px 20px 22px;
}

.section-title-box-1 h3,
.section-title-box-2 h3 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    height: 85px;
    position: relative;
}

.section-title-box-1 {
    background: var(--teal);
}

.section-title-box-2 {
    background: var(--rose);
}

.section-text-box-1,
.section-text-box-2 {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 24px 32px;
    flex: 1;
    margin-top: -44px;
}

.section-text-box-1,
.section-text-box-2 p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 1.2em;
    font-weight: 600;
    color: #000000;
}

.section-text-box p:last-child {
    margin-bottom: 0;
}

.photo-item {
    flex: 1 1 calc(25% - 10px);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
}

.photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* Responsive adjustments */
@media (max-width: 980px) {

    .projects-inner,
    .projects-inner.reverse {
        flex-direction: column;
    }

    #projectsGrid {
        flex: unset;
        justify-content: space-between;
    }

    .photo-item {
        flex: 1 1 calc(33% - 10px);
    }

    .section-text-box-1 p,
    .section-text-box-2 p {
        font-size: 20px !important;
    }


    .section-title-box-2 {
        margin-top: 44px;
    }
}

@media (max-width: 700px) {

    .projects-inner,
    .projects-inner.reverse {
        flex-direction: column;
    }

    #projectsGrid {
        flex: unset;
    }

    /* more photos per row to avoid long vertical stretch */
    .photo-item {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 500px) {
    .photo-item {
        flex: 1 1 100%;
    }
}

/* Responsive */
@media (max-width: 980px) {

    .projects-inner,
    .projects-inner.reverse {
        flex-direction: column;
    }

    .projects-left,
    .projects-right {
        width: 100%;
    }

    .projects-left img {
        width: 100%;
        margin-top: 16px;
    }
}

/* Contact Card */
#contact {
    margin-bottom: 40px;
}

.contact-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;

}

.contact-card .section-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.contact-card .section-lead {
    font-size: 18px;
    line-height: 1.6;
}

.contact-button {
    display: inline-block;
    background-color: var(--card-bg);
    color: var(--text);
    text-decoration: none;
    font-style: inherit;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.contact-button:hover {
    background-color: rgba(48, 70, 164, 0.1);
    color: var(--hover);
    transform: scale(101%)
}



/* === Lightbox Base Styles === */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(12px) brightness(0.9);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease, backdrop-filter 0.3s ease;
}

.lightbox-overlay.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    background: var(--page-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Universal Lightbox Navigation */
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1000;
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    fill: rgba(0, 0, 0, 0.6);
    transition: fill 0.25s ease, transform 0.25s ease;
}

.lightbox-close:hover svg,
.lightbox-close:focus svg {
    fill: var(--rose);
    transform: scale(110%);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1000;
    transition: transform 0.25s ease;
}

.lightbox-nav svg {
    width: 26px;
    height: 26px;
    fill: rgba(0, 0, 0, 0.6);
    transition: fill 0.25s ease, transform 0.25s ease;
}

.lightbox-nav:hover svg {
    fill: var(--teal);
}

.lightbox-nav-prev {
    left: 20px;
}

.lightbox-nav-next {
    right: 15px;
}

/* Mobile adjustments for lightbox navigation */
@media (max-width: 900px) {
    .lightbox-overlay .lightbox-close {
        top: 16px;
        right: 16px;
        background: rgba(255, 255, 255, 0.9);
        z-index: 10002;
        border-radius: 25%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .lightbox-overlay .lightbox-close:hover {
        background: rgba(255, 255, 255, 1);
        color: var(--rose);
    }

    .lightbox-nav {
        top: 16px;
        background: rgba(255, 255, 255, 0.9);
        color: #000;
        border-radius: 25%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    }


    .lightbox-nav-prev {
        left: 8px;
    }

    .lightbox-nav-next {
        right: 8px;
    }

    .lightbox-nav-prev,
    .lightbox-nav-next {
        top: auto;
        bottom: 12px;
        transform: none;
    }

    .lightbox-overlay .lightbox-close {
        top: 12px;
        right: 12px;
    }
}


/* === Photo Lightbox === */
.photo-lightbox {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(12px) brightness(0.9);
    -webkit-backdrop-filter: blur(12px) brightness(0.9);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease, backdrop-filter 0.3s ease;
}

.photo-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.photo-lightbox-content {
    display: flex;
    flex-direction: row;
    max-width: 90vw;
    width: 95%;
    max-height: 85vh;
    background: var(--page-bg);
    border-radius: var(--radius);
    padding: 32px;
    overflow: hidden;
}

.photo-left,
.photo-right {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.photo-left {
    flex: 2;
    margin-right: 32px;
}

.photo-left img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
}

.photo-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    min-height: 0;
    min-width: 0;
}

.photo-right .section-title-box {
    background: #fff;
    padding: 20px 28px;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.photo-right .section-title-box h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #1b1b1b;
}

.photo-right .section-text-box {
    background: #fff;
    padding: 20px 28px;
    border-radius: var(--radius);
    line-height: 1.6;
    color: #333;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* EXIF */
.photo-exif-info {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exif-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.exif-item .meta-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    flex: 0 0 auto;
}

.exif-item .meta-value {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #555;
}

.photo-notes {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.photo-notes-container {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.notes-heading {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .photo-lightbox-content {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        padding-bottom: 40px;
        max-height: 80vh !important;
        gap: 16px;
        overflow-y: auto;
    }

    .photo-left,
    .photo-right {
        width: 100%;
        margin: 0;
        min-height: auto;
        flex: none;
    }

    .photo-left {
        height: auto;
        max-height: 75vh;
        flex-shrink: 0;
    }

    .photo-left img {
        height: auto;
        max-height: 75vh;
    }

    .photo-right {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: visible;

    }

    .photo-right .section-text-box {
        max-height: none;
        flex: none;
        overflow-y: visible;
    }

    .photo-lightbox .lightbox-close {
        top: 16px;
        right: 16px;
        background: rgba(255, 255, 255, 0.9);
        color: #000;
        z-index: 10002;
    }

    .photo-lightbox .lightbox-close:hover {
        background: rgba(255, 255, 255, 1);
        color: var(--hover);
    }

    .photo-palette-box {
        margin-bottom: 20px;
    }
}

/* Color Palette */
.photo-palette-box {
    background: #fff;
    padding: 20px 28px;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.palette-title {
    font-size: 14px;
    font-weight: 700;
    color: #1b1b1b;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.color-palette {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-swatch {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 50px;
    height: 50px;
    border-radius: 6px;
}


/* === Video Lightbox === */
.video-lightbox-content {
    display: flex;
    flex-direction: row;
    max-width: 90vw;
    width: 95%;
    max-height: 85vh;
    background: var(--page-bg);
    border-radius: var(--radius);
    padding: 32px;
    overflow: hidden;
    gap: 32px;
}

.video-left video {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 60vh;
    border-radius: var(--radius);
    display: block;
    background: #000;
}

.video-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    min-height: 0;
    min-width: 220px;
}

/* Typography */
.video-right .section-title-box {
    background: #fff;
    padding: 20px 28px;
    margin-bottom: 16px;
    border-radius: var(--radius);
}

.video-right .section-title-box h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #1b1b1b;
}

.video-right .section-text-box {
    background: #fff;
    padding: 20px 28px;
    border-radius: var(--radius);
    line-height: 1.6;
    color: #333;
    flex: 1;
    overflow-y: auto;
}

.video-right .section-title-box {
    background: #fff;
    padding: 20px 28px;
    border-radius: var(--radius);
    flex-shrink: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.video-right .section-title-box h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #1b1b1b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.video-year {
    font-size: 14px;
    color: #888;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

.video-right .section-text-box {
    background: #fff;
    padding: 20px 28px;
    border-radius: var(--radius);
    line-height: 1.6;
    color: #333;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.video-meta-lines {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-meta-lines .meta-line {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    word-break: break-word;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.video-meta-lines .meta-line:first-child {
    border-top: none;
    padding-top: 0;
}

.video-meta-lines .meta-line-emphasis {
    font-weight: 700;
    color: #222;
    letter-spacing: 0.3px;

}

/* MobileResponsive */
@media (max-width: 980px) {
    .video-lightbox-content {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        max-height: 95vh;
        gap: 16px;
        overflow-y: auto;
    }

    .video-left,
    .video-right {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
    }

    .video-left video {
        max-width: 100%;
        max-height: 40vh;
        border-width: 2px;
    }

    .video-right .section-title-box h2 {
        font-size: 24px;
    }
}



/* === Footer === */
.site-footer {
    border-top: 1px solid #f2e8e4;
    padding: 24px 0;
    margin-top: 40px;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}