/* Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px;
}

/* Media Protection: prevent drag and selection */
img,
video {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Variables */
:root {
    --dark: #0a0a0a;
    --dark-light: #18181b;
    --light: #FDFDFD;
    --light-secondary: #BFBFBF;
    --accent: #c49e3d;
    --accent-hover: #dbb34b;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
}

p {
    font-family: var(--font-body);
    color: var(--dark);
    font-weight: 400;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 400;
}

/* Header */
header {
    padding: 16px 40px;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.floating-nav {
    display: flex;
    margin-left: 50px;
}

.floating-nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.floating-nav a {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    transition: color 0.25s ease;
}

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

/* Hero */
.hero {
    padding: 120px 40px 60px;
    background: var(--dark-light);
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65)), url(../image/hero.jpg);
    background-size: cover;
    background-position: 54% 0%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    color: var(--light);
}

.hero .eyebrow {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 700;
    margin: 16px 0;
    color: var(--light);
    max-width: 750px;
    line-height: 1.15;
}

.hero p {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--light-secondary);
    margin-bottom: 28px;
    max-width: 620px;
    letter-spacing: 0.5px;
    line-height: 1.7;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--dark);
    color: var(--light);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.lower-third {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--light-secondary);
    position: absolute;
    right: 40px;
    bottom: 24px;
    margin: 0;
    text-transform: uppercase;
}

.lower-third::before {
    content: '';
    position: absolute;
    left: -110px;
    width: 100px;
    height: 1px;
    top: 50%;
    background: var(--light-secondary);
}

/* Photography */
.photography {
    padding: 100px 40px;
    background: var(--light);
    text-align: center;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent);
    justify-content: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-label .line {
    width: 60px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 12px;
}

.section-intro {
    font-size: 1rem;
    font-weight: 300;
    color: #555555;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.gallery-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 40px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 440px;
    scroll-snap-align: start;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-item .image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 16px;
    background: #e8e8e8;
}

.gallery-item .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .image-wrapper img {
    transform: scale(1.08);
}

.image-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--dark);
    text-align: center;
    letter-spacing: 1px;
}

.photography .btn-cta {
    margin-top: 24px;
    border: none;
    color: var(--light);
    background: var(--dark);
}

.photography .btn-cta:hover {
    background: var(--accent);
    color: var(--dark);
}

/* Videography */
.videography {
    padding: 100px 40px;
    background: var(--dark);
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    /* Prevents scroll hijacking on touchscreens */
}

.video-background video {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.videography-content {
    position: relative;
    z-index: 2;
    color: var(--light);
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 680px;
}

.videography-content .section-title {
    color: var(--light);
}

.videography-content .section-intro {
    color: var(--light-secondary);
}

.videography-content .btn-cta {
    margin-top: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--light);
    background: transparent;
}

.videography-content .btn-cta:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}

/* Web Development */
.web-development {
    padding: 100px 40px;
    background: var(--light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.web-development-gallery {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 30px 20px;
    scroll-padding: 0px;
    scroll-behavior: smooth;
    max-width: 1500px;
    width: 100%;
}

.web-development-gallery figure {
    margin: 0px;
    box-sizing: border-box;
    position: relative;
    flex: 1;
}

.web-development-gallery figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    transition: transform 0.5s ease;
    display: block;
}

.web-development-gallery figure img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.web-development-title {
    text-align: center;
    margin-top: 14px;
    margin-bottom: 20px;
    font-weight: 300;
    font-family: var(--font-body);
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.25s ease;
}

.web-development-title:hover {
    color: var(--accent);
}

.web-development .btn-cta {
    margin-top: 20px;
    background: var(--dark);
    border: none;
}

.web-development .btn-cta:hover {
    background: var(--accent);
    color: var(--dark);
}

.rotate-icon {
    transform: rotate(315deg);
    transition: all 0.2s ease;
}

.rotate-icon:hover {
    transform: rotate(320deg);
}

/* Contact */
.contact {
    padding: 100px 40px;
    background: var(--accent);
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact .section-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 16px;
    max-width: 720px;
    line-height: 0.9;
}

.contact .section-intro {
    font-size: 1.05rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.85);
    max-width: 580px;
    line-height: 1.6;
}

.contact-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.contact .btn-cta {
    padding: 14px 28px;
    border: 1px solid var(--dark);
    color: var(--light);
    background: var(--dark);
    gap: 10px;
    font-size: 1rem;
}

.contact .btn-cta:hover {
    background: var(--light);
    color: var(--dark);
    border-color: var(--light);
}

.big {
    font-weight: 900;
    font-size: 5rem;
}

/* Sidebar Desktop */
#sidebar-content {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(253, 253, 253, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 12px;
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    align-items: center;
    justify-content: center;
}

#sidebar-content a {
    font-size: 1.3rem;
    color: var(--dark);
    transition: transform 0.25s ease, color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

#sidebar-content a:hover {
    transform: scale(1.15);
    color: var(--accent);
}

#sidebar-content img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 4px;
}


/* Footer */
footer {
    padding: 80px 40px;
    background: var(--dark);
    text-align: center;
    color: var(--light);
}

.footer-socials {
    display: none;
}

.footer-content p {
    color: var(--light-secondary);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.mobile-nav {
    display: none;
}

/* ==========================================================================
   Responsive Mobile Styles (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* Header */
    header {
        padding: 14px 20px;
    }

    .navbar {
        justify-content: center;
    }

    .logo {
        font-size: 1.15rem;
        letter-spacing: 1px;
    }

    .floating-nav {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: 92dvh;
        padding: 95px 20px 40px;
        text-align: left;
    }

    .hero .hero-content {
        padding: 0;
    }

    .hero .eyebrow {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 8vw, 3rem);
        max-width: 100%;
        /* Fix: resets desktop 60% constraint */
        margin: 0 0;
        line-height: 1.15;
    }

    .hero p {
        font-size: 0.8rem;
        max-width: 100%;
        /* Fix: resets desktop 60% constraint */
        margin-bottom: 24px;
        line-height: 1.5;
    }

    .lower-third {
        font-size: 0.4rem;
        right: 20px;
        bottom: 18px;
    }

    .lower-third::before {
        left: -70px;
        width: 60px;
    }

    .btn-cta {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Photography */
    .photography {
        padding: 60px 16px;
    }

    .section-label {
        font-size: 0.7rem;
        margin-bottom: 0;
    }

    .section-title {
        font-size: 2rem;
        margin: 0 0;
    }

    .section-intro {
        font-size: 0.9rem;
    }

    .gallery-grid {
        padding: 24px 8px 16px;
        gap: 16px;
    }

    .gallery-item {
        flex: 0 0 84vw;
        width: 84vw;
        scroll-snap-align: center;
    }

    .gallery-item .image-wrapper {
        aspect-ratio: 3 / 2;
        border-radius: 14px;
    }

    .image-title {
        font-size: 0.8rem;
    }

    /* Videography */
    .videography {
        padding: 60px 20px;
        min-height: 45vh;
        /* Fix: prevents content collision */
    }

    .videography-content {
        padding: 10px 0;
    }

    .videography-content .section-title {
        font-size: 2.1rem;
    }

    .videography-content .section-intro {
        font-size: 0.9rem;
    }

    /* Web Development */
    .web-development {
        padding: 60px 16px;
    }

    .web-development-gallery {
        padding: 10px;
        flex-direction: column;
        gap: 20px;
    }

    .web-development-gallery figure img {
        border-radius: 10px;
    }

    .web-development-gallery figure figcaption {
        font-size: 0.8rem;
        text-align: center;
    }

    .web-development-title {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    /* Contact */
    .contact {
        padding: 60px 20px;
        min-height: auto;
    }

    .contact .section-title {
        font-size: 1.7rem;
        /* Fix: removed typo with comma */
        line-height: 0.9;
    }

    .big {
        font-weight: 900;
        font-size: 3.5rem;
    }

    .contact .section-intro {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .contact-container {
        flex-direction: row;
        width: 100%;
        max-width: 360px;
        gap: 12px;
        margin-top: 24px;
    }

    .contact-container .btn-cta {
        flex: 1;
        width: auto;
        justify-content: center;
        padding: 12px 14px;
        font-size: 0.9rem;
        min-height: 44px;
        white-space: nowrap;
    }

    /* Sidebar: Hide fixed float to prevent collision on mobile */
    #sidebar-content {
        display: none !important;
    }

    /* Footer & Socials */
    footer {
        padding: 40px 20px calc(90px + env(safe-area-inset-bottom, 0px)) 20px;
    }

    .footer-socials {
        display: flex;
        gap: 20px;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
    }

    .footer-socials a {
        font-size: 1.4rem;
        color: var(--accent);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        transition: color 0.25s ease, background 0.25s ease;
    }

    .footer-socials a:hover,
    .footer-socials a:active {
        color: var(--light-secondary);
        background: rgba(196, 158, 61, 0.15);
    }

    .footer-content p {
        font-size: 0.8rem;
    }

    /* Mobile Bottom Navigation Dock */
    .mobile-nav {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mobile-nav-bar {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: auto;
        min-width: 260px;
        max-width: 320px;
        padding: 6px 14px;
        position: fixed;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        background: rgba(18, 18, 18, 0.85);
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 9999px;
    }

    .mobile-nav-bar ul {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 12px;
        list-style: none;
    }

    .mobile-nav-bar ul li {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mobile-nav-bar ul li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        color: var(--light-secondary);
        font-size: 1.15rem;
        transition: all 0.25s ease;
    }

    .mobile-nav-bar ul li a:hover,
    .mobile-nav-bar ul li a:active {
        color: var(--accent);
        background: rgba(196, 158, 61, 0.18);
    }
}