:root {
    --bg-dark: #0a0a0a;
    --text-off-white: #f8f9fa;
    --accent-gold: #c5a059;
    --accent-muted: #8d7a5b;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.3s ease;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-off-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.brand-logo,
.section-heading {
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
}

.tracking-widest {
    letter-spacing: 0.3em;
}

a {
    color: var(--text-off-white);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-gold);
}

.yk-link {
    transition: color 0.3s ease;
}

.yk-link:hover {
    color: var(--accent-gold) !important;
}

.section-padding {
    padding: 100px 0;
}

.grayscale {
    filter: grayscale(100%);
    transition: var(--transition-slow);
}

.grayscale:hover {
    filter: grayscale(0%);
}

/* Navbar */
.custom-navbar {
    transition: var(--transition-fast);
    padding: 1rem 0;
    z-index: 1050;
}

.custom-navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

/* DB Logo Style */
.db-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--text-light) !important;
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.db-logo .d-char {
    color: var(--accent-gold);
    margin-right: -4px;
}

.db-logo .b-char {
    color: var(--text-light);
}

.navbar-brand {
    padding: 0;
}

.nav-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background-color: var(--accent-gold);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
    transform-origin: right;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hero Section - Full Background Reveal */
.hero-section {
    height: 100vh;
    height: 100dvh;
    background: url('../modeling-photos/Derek modeling portfolio/Derek_B34web.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .hero-section {
        background-attachment: scroll;
    }
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
}

.btn-cta {
    border-color: var(--accent-gold);
    background: transparent;
    color: var(--text-off-white);
    transition: all var(--transition-fast);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
}

.btn-cta:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-dark);
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.6);
    text-shadow: none;
}

/* Stats Bar */
.stats-bar {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 1) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(197, 160, 89, 0.2) !important;
    z-index: 10;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-off-white);
}

.stat-item {
    position: relative;
}

@media (min-width: 992px) {
    .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 25%;
        height: 50%;
        width: 1px;
        background-color: rgba(197, 160, 89, 0.3);
    }
}

/* About Section */
.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 1px solid var(--accent-gold);
    border-left: 1px solid var(--accent-gold);
}

/* Portfolio Grid - Masonry Style */
.portfolio-showcase-container {
    padding: 20px;
    column-count: 4;
    column-gap: 20px;
}

@media (max-width: 1200px) {
    .portfolio-showcase-container {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .portfolio-showcase-container {
        column-count: 2;
        column-gap: 10px;
        padding: 10px;
    }
}

.portfolio-item-wrapper {
    break-inside: avoid;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .portfolio-item-wrapper {
        margin-bottom: 10px;
    }
}

.portfolio-item-card.framed {
    background: #000;
    padding: 10px;
    border: 1px solid rgba(197, 160, 89, 0.1);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
}

.portfolio-item-card.framed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    will-change: opacity;
}

.portfolio-item-card.framed::before {
    content: 'ENLARGE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    color: var(--text-off-white);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 3;
    pointer-events: none;
    will-change: opacity, transform;
}

.portfolio-item-card.framed img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    z-index: 1;
    position: relative;
    will-change: transform;
}

.portfolio-item-card.framed:hover {
    border-color: var(--accent-gold);
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
}

.portfolio-item-card.framed:hover::after {
    opacity: 1;
}

.portfolio-item-card.framed:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* Lightbox Styles */
.modal-content.lightbox-content {
    background-color: transparent;
    border: none;
}

.modal-header.lightbox-header {
    border: none;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 1060;
    padding: 0;
}

.btn-close.btn-close-white {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
}

.btn-close.btn-close-white:hover {
    background-color: var(--accent-gold);
    transform: scale(1.1);
}

.lightbox-image {
    max-height: 90vh;
    width: 100%;
    object-fit: contain;
}

.lightbox-body {
    position: relative;
    background-color: transparent;
    cursor: default;
}

.lightbox-image {
    cursor: default;
}

.portfolio-item-card.framed:hover img {
    transform: scale(1.02);
}

/* Contact Form */
.form-floating-custom {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating-custom input,
.form-floating-custom select,
.form-floating-custom textarea {
    background: transparent !important;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    color: var(--text-off-white) !important;
    padding: 1.5rem 0.5rem 0.5rem;
    transition: var(--transition-fast);
}

.form-floating-custom label {
    position: absolute;
    top: 1rem;
    left: 0.5rem;
    pointer-events: none;
    transition: var(--transition-fast);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.form-floating-custom input:focus~label,
.form-floating-custom input:not(:placeholder-shown)~label,
.form-floating-custom textarea:focus~label,
.form-floating-custom textarea:not(:placeholder-shown)~label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.7rem;
    color: var(--accent-gold);
}

.form-floating-custom input:focus,
.form-floating-custom textarea:focus {
    box-shadow: none;
    border-bottom-color: var(--accent-gold);
}

.btn-submit:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-dark);
}

/* Animations Scroll */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: opacity, transform;
}

.fade-up {
    transform: translateY(30px);
}

.fade-left {
    transform: translateX(-30px);
}

.fade-right {
    transform: translateX(30px);
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn-cta {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
    }

    .navbar-collapse {
        background-color: rgba(10, 10, 10, 0.98);
        padding: 2rem 0;
        margin-top: 1rem;
        border-top: 1px solid rgba(197, 160, 89, 0.2);
    }

    .nav-link {
        padding: 0.75rem 0;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
    }

    .section-heading {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .footer {
        padding: 3rem 0;
    }

    .brand-logo {
        font-size: 1.5rem;
    }

    .contact-info li {
        font-size: 0.9rem;
    }
}