/* --- HERO SECTION BASE STYLES --- */
.sdj-hero-premium {
    position: relative;
    min-height: 100vh; /* Full screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow: hidden;
    background: #0f0f0f; /* Fallback color */
    padding: 100px 0;
    width: 100%;
}

/* --- ANIMATED BACKGROUND --- */
.hero-bg-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.hero-image-bg {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transform: scale(1.1); /* Start slightly scaled for "zoom-out" animation */
    animation: slowZoomOut 20s infinite alternate;
}

/* Optional Video style */
.hero-video-bg {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

/* Gradient overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.5) 100%);
}

/* --- CONTENT LAYOUT --- */
.hero-content-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr; /* Text side is wider */
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* "Glassmorphism" Text Card Effect (Like image_5.png) */
.hero-text-animate {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 60px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- TYPOGRAPHY (Matching your serif aesthetic) --- */
.eyebrow {
    color: #c2935c;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
}

.sdj-hero-premium h1 {
    font-family: 'Playfair Display', serif; /* Use elegance serif */
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.gold-text {
    color: #c2935c;
    font-style: italic;
    font-weight: 400;
}

.line-separator {
    width: 60px; height: 3px;
    background: #c2935c;
    margin-bottom: 30px;
}

.sdj-hero-premium h3 {
    font-size: 1.5rem;
    font-weight: 300;
    color: #ddd;
    margin-bottom: 15px;
}

.sdj-hero-premium p {
    font-size: 1.1rem;
    color: #bbb;
    line-height: 1.8;
    max-width: 650px;
    margin-bottom: 45px;
}

/* --- BUTTONS --- */
.hero-btns {
    display: flex; gap: 20px;
}

.btn {
    padding: 16px 35px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #c2935c;
    color: #111;
}

.btn-primary:hover {
    background-color: #d6a76f;
    transform: translateY(-3px);
}

.btn-outline-white {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-white:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- CIRCULAR BADGE ANIMATION (From image_5.png) --- */
.hero-badge-wrapper {
    position: relative;
    display: flex; justify-content: center; align-items: center;
}

.hero-badge-circle {
    width: 200px; height: 200px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
}

.stat-number { font-size: 3.5rem; font-weight: 900; color: #c2935c; }
.stat-label { font-size: 0.8rem; text-transform: uppercase; color: #888; }

.badge-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(194, 147, 92, 0.2);
}

.ring-1 { width: 240px; height: 240px; animation: rotateClockwise 30s linear infinite; }
.ring-2 { width: 280px; height: 280px; animation: rotateCounterClockwise 45s linear infinite; }

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-indicator span { font-size: 0.7rem; text-transform: uppercase; color: #666; letter-spacing: 2px; }
.indicator-line { width: 2px; height: 60px; background: rgba(194, 147, 92, 0.3); margin: 10px auto 0; position: relative; }
.indicator-line::after { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 20px; background: #c2935c; animation: scrollDrop 2s ease-out infinite; }

/* =========================================
   KEYFRAME ANIMATIONS 🔥
   ========================================= */

/* BACKGROUND ANIMATION */
@keyframes slowZoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.0); }
}

/* TEXT REVEALS */
.fade-in { animation: fadeIn 1s ease both; }
.split-reveal { animation: splitReveal 1s ease both; }
.scale-in { animation: scaleIn 0.8s ease both; animation-delay: 0.5s; }
.fade-up-delay { animation: fadeUp 1s ease both; animation-delay: 0.8s; }
.fade-up-delay-2 { animation: fadeUp 1s ease both; animation-delay: 1.1s; }
.fade-up-delay-3 { animation: fadeUp 1s ease both; animation-delay: 1.4s; }
.fade-in-delay { animation: fadeIn 1s ease both; animation-delay: 2s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@keyframes splitReveal {
    from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(20px); }
    to { opacity: 1; clip-path: inset(0 0 0% 0); transform: translateY(0); }
}

/* BADGE ROTATION */
.rotate-in { animation: rotateIn 1.5s ease both; animation-delay: 0.8s; }
@keyframes rotateIn { from { opacity: 0; transform: rotate(-180deg) scale(0); } to { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes rotateClockwise { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotateCounterClockwise { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* SCROLL ANIMATION */
@keyframes scrollDrop {
    0% { top: -20px; opacity: 0; }
    50% { top: 20px; opacity: 1; }
    100% { top: 60px; opacity: 0; }
}


/* HERO INITIAL STATE (IMPORTANT) */
.reveal-hero .fade-in,
.reveal-hero .split-reveal,
.reveal-hero .scale-in,
.reveal-hero .fade-up-delay,
.reveal-hero .fade-up-delay-2,
.reveal-hero .fade-up-delay-3,
.reveal-hero .fade-in-delay,
.reveal-hero .rotate-in {
    opacity: 0;
    transform: translateY(30px);
}

/* ACTIVE STATE */
.reveal-hero.active .fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: 0.8s ease;
}

.reveal-hero.active .split-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: 1s ease;
}

.reveal-hero.active .scale-in {
    opacity: 1;
    transform: scale(1);
    transition: 0.8s ease 0.4s;
}

.reveal-hero.active .fade-up-delay {
    opacity: 1;
    transform: translateY(0);
    transition: 0.8s ease 0.6s;
}

.reveal-hero.active .fade-up-delay-2 {
    opacity: 1;
    transform: translateY(0);
    transition: 0.8s ease 0.8s;
}

.reveal-hero.active .fade-up-delay-3 {
    opacity: 1;
    transform: translateY(0);
    transition: 0.8s ease 1s;
}

.reveal-hero.active .fade-in-delay {
    opacity: 1;
    transition: 1s ease 1.5s;
}

/* BADGE ENTRY */
.reveal-hero .rotate-in {
    transform: scale(0.5) rotate(-180deg);
}

.reveal-hero.active .rotate-in {
    opacity: 1;
    transform: scale(1) rotate(0);
    transition: 1s ease 0.6s;
}
/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .hero-content-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text-animate { padding: 40px 20px; }
    .sdj-hero-premium h1 { font-size: 2.8rem; }
    .line-separator { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; flex-direction: column; gap: 10px; }
    .btn { width: 100%; }
    .hero-badge-wrapper { margin-top: 50px; }
}




/* --- FILTER SECTION STYLES --- */
.portfolio-filters {
    padding: 80px 0 40px;
    background-color: #0f0f0f; /* Matches your hero background */
    text-align: center;
}

.filter-header {
    margin-bottom: 50px;
}

.filter-header .eyebrow {
    color: #c2935c;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.filter-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #fff;
    margin: 10px 0 20px;
}

.gold-line {
    width: 50px;
    height: 3px;
    background: #c2935c;
    margin: 0 auto;
}

/* --- FILTER BUTTONS --- */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-btn .btn-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

/* Hover & Active States */
.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #c2935c;
    color: #fff;
    transform: translateY(-2px);
}

.filter-btn:hover .btn-icon {
    transform: scale(1.2);
}

.filter-btn.active {
    background: #c2935c;
    border-color: #c2935c;
    color: #000; /* Dark text for contrast on gold background */
    box-shadow: 0 10px 20px rgba(194, 147, 92, 0.2);
}
/* Ensure <a> tags behave exactly like the previous buttons */
.filter-btn {
    text-decoration: none; /* Removes default underline */
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    /* transition and other styles remain the same from previous designs */
}

/* Fix for potential blue highlight on click */
.filter-btn:focus, 
.filter-btn:active {
    outline: none;
    color: inherit;
}

/* Ensure the active link maintains the gold background */
.filter-btn.active {
    background: #c2935c;
    color: #000;
}


/* SECTION BASE */
.portfolio-filters.reveal-filter {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s ease;
}

.portfolio-filters.active {
    opacity: 1;
    transform: translateY(0);
}

/* HEADER ANIMATION */
.filter-header {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.portfolio-filters.active .filter-header {
    opacity: 1;
    transform: translateY(0);
}

/* HEADER STAGGER */
.filter-header > * {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease;
}

.portfolio-filters.active .filter-header > * {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-filters.active .eyebrow { transition-delay: 0.2s; }
.portfolio-filters.active h2 { transition-delay: 0.4s; }
.portfolio-filters.active .gold-line { transition-delay: 0.6s; }

/* BUTTONS STAGGER */
.filter-btn {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s ease;
}

/* stagger */
.portfolio-filters.active .filter-btn:nth-child(1) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.2s; }
.portfolio-filters.active .filter-btn:nth-child(2) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.3s; }
.portfolio-filters.active .filter-btn:nth-child(3) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.4s; }
.portfolio-filters.active .filter-btn:nth-child(4) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.5s; }
.portfolio-filters.active .filter-btn:nth-child(5) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.6s; }
.portfolio-filters.active .filter-btn:nth-child(6) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.7s; }

/* CLICK MICRO INTERACTION 🔥 */
.filter-btn:active {
    transform: scale(0.95);
}

/* ACTIVE BUTTON POP */
.filter-btn.active {
    transform: scale(1.05);
}
/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .filter-header h2 {
        font-size: 2rem;
    }
    
    .filter-controls {
        padding: 0 20px;
        gap: 10px;
    }

    .filter-btn {
        width: 100%; /* Full width buttons on mobile */
        justify-content: center;
    }
}









/* --- FEATURED PROJECTS BASE --- */
.featured-projects {
    padding: 80px 0;
    background-color: #0f0f0f;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    background: #111;
    border: 1px solid #222;
    transition: border-color 0.3s ease;
    height: fit-content;
}

.project-card:hover { border-color: #c2935c; }

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img img { width: 100%; height: 100%; object-fit: cover; }

.project-type-tag {
    position: absolute;
    top: 15px; left: 15px;
    background: #c2935c;
    color: #000;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Card Content Styling */
.project-info { padding: 25px; }
.project-header { display: flex; justify-content: space-between; align-items: baseline; }
.project-header h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin: 0; }
.location { color: #c2935c; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.description { font-size: 0.9rem; color: #888; margin: 15px 0; line-height: 1.6; }

/* Service Tags (Visible) */
.project-services { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.project-services span { font-size: 0.7rem; border: 1px solid #333; padding: 4px 10px; color: #ccc; background: #1a1a1a; }

/* Testimonial Box (Visible) */
.project-footer { background: #161616; padding: 20px; border-radius: 4px; border: 1px solid #222; margin-bottom: 20px; }
.testimonial p { font-style: italic; font-size: 0.85rem; color: #888; margin-bottom: 10px; }
.rating { color: #ffd700; font-size: 0.9rem; }
.rating span { color: #fff; font-weight: 700; margin-left: 5px; }

/* Expand Button */
.view-works-btn {
    width: 100%;
    background: transparent;
    border: 1px solid #c2935c;
    color: #c2935c;
    padding: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.view-works-btn:hover { background: #c2935c; color: #000; }

/* Expandable Gallery Logic */
.project-expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s;
    opacity: 0;
}

.project-card.active .project-expanded-content {
    max-height: 1500px;
    opacity: 1;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #222;
}

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-item { height: 90px; background: #000; cursor: pointer; position: relative; border-radius: 4px; overflow: hidden; transition: 0.3s; }
.gallery-item:hover { transform: scale(1.05); }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; background: rgba(194,147,92,0.8); width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; }

/* --- LIGHTBOX MODAL --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center; align-items: center;
}

.lb-content-wrapper img, .lb-content-wrapper video { max-width: 90%; max-height: 85vh; border: 2px solid #333; }
.lb-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 40px; cursor: pointer; padding: 20px; transition: 0.3s; }
.lb-nav:hover { color: #c2935c; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }






/* SECTION BASE */
.featured-projects.reveal-projects {
    opacity: 0;
    transform: translateY(80px);
    transition: all 1s ease;
}

.featured-projects.active {
    opacity: 1;
    transform: translateY(0);
}

/* CARD REVEAL */
.project-card {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 0.6s ease;
}

/* Stagger cards */
.featured-projects.active .project-card:nth-child(1) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.2s;
}
.featured-projects.active .project-card:nth-child(2) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.4s;
}
.featured-projects.active .project-card:nth-child(3) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.6s;
}
.featured-projects.active .project-card:nth-child(4) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.7s;
}
.featured-projects.active .project-card:nth-child(5) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.8s;
}
.featured-projects.active .project-card:nth-child(6) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.9s;
}

/* IMAGE ZOOM ON REVEAL */
.project-img img {
    transform: scale(1.1);
    transition: transform 1.2s ease;
}

.featured-projects.active .project-img img {
    transform: scale(1);
}

/* EXPAND ANIMATION IMPROVEMENT 🔥 */
.project-card.active {
    border-color: #c2935c;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* GALLERY ITEMS STAGGER */
.gallery-item {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}
.title{
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    margin-left: 5%;
}
.subtit{
    font-size: 1rem;
    margin-bottom: 3rem;
    margin-left: 5%;
    width: 50%;
    font-weight: lighter;
    color: #888;
}
.project-card.active .gallery-item:nth-child(1) { opacity: 1; transform: scale(1); transition-delay: 0.1s; }
.project-card.active .gallery-item:nth-child(2) { opacity: 1; transform: scale(1); transition-delay: 0.2s; }
.project-card.active .gallery-item:nth-child(3) { opacity: 1; transform: scale(1); transition-delay: 0.3s; }
.project-card.active .gallery-item:nth-child(4) { opacity: 1; transform: scale(1); transition-delay: 0.4s; }
.project-card.active .gallery-item:nth-child(5) { opacity: 1; transform: scale(1); transition-delay: 0.5s; }
.project-card.active .gallery-item:nth-child(6) { opacity: 1; transform: scale(1); transition-delay: 0.6s; }
.project-card.active .gallery-item:nth-child(7) { opacity: 1; transform: scale(1); transition-delay: 0.7s; }
.project-card.active .gallery-item:nth-child(8) { opacity: 1; transform: scale(1); transition-delay: 0.8s; }
@media (max-width: 768px) {
    .project-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .subtit{width: 90%;}
}








.work-stats-reveal {
    padding: 100px 5%;
    background-color: #0d0d0d; /* Slightly deeper black */
    background-image: radial-gradient(circle at top left, #1a1a1a 0%, #0d0d0d 100%);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.stats-header {
    text-align: center;
    margin-bottom: 80px;
}

.stats-header h2 {
    font-size: 3rem;
    color: #fff;
    margin-top: 10px;
}

.eyebrow {
    color: #c2935c;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.85rem;
    font-weight: 700;
}

.gold-line {
    width: 60px;
    height: 3px;
    background: #c2935c;
    margin: 20px auto 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 30px;
    border-radius: 4px; /* Crisp studio edges */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s ease;
}

.stat-card:hover {
    border-color: #c2935c;
    background: rgba(194, 147, 92, 0.03);
    transform: translateY(-5px);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px dashed rgba(194, 147, 92, 0.3);
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #c2935c;
    transition: 0.3s;
}

.stat-card:hover .icon-circle {
    transform: rotateY(180deg); /* Modern hover effect */
}

.count-up {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Playfair Display', serif; /* Elegant Serif for numbers */
}

.count-plus {
    font-size: 2.5rem;
    font-weight: 800;
    color: #c2935c;
}

.stat-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #888;
    margin-top: 10px;
    letter-spacing: 2px;
}

/* Scroll Reveal Base State */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Staggered Delay for Grid Items */
.reveal-item.delay-1 { transition-delay: 0.2s; }
.reveal-item.delay-2 { transition-delay: 0.4s; }
.reveal-item.delay-3 { transition-delay: 0.6s; }

/* The trigger class added by JavaScript */
.stats-visible .reveal-item {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .stats-header h2 { font-size: 2rem; }
}









/* --- FINAL CTA SECTION --- */
.final-portfolio-cta {
    position: relative;
    padding: 120px 0;
    background-color: #0f0f0f; /* Deep studio black */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Premium Watermark Effect (Matches image_6.png) */
.final-portfolio-cta::after {
    content: "SDJ";
    position: absolute;
    bottom: -30px;
    right: 30px;
    font-size: 15rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: 1;
    pointer-events: none;
    letter-spacing: -10px;
}

.cta-overlay-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(194, 147, 92, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.cta-wrapper {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-eyebrow {
    color: #c2935c;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
}

.final-portfolio-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.final-portfolio-cta .gold-text {
    color: #c2935c;
    font-style: italic;
}

.final-portfolio-cta p {
    font-size: 1.1rem;
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 45px;
}

.final-portfolio-cta p strong {
    color: #fff;
}

/* Button Styling */
.cta-button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    text-decoration: none;
    padding: 16px 35px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

.btn-gold {
    background-color: #c2935c;
    color: #111;
}

.btn-gold:hover {
    background-color: #d6a76f;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(194, 147, 92, 0.2);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    transform: translateY(-5px);
}

.btn-dark {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
}

.btn-dark:hover {
    border-color: #c2935c;
    color: #c2935c;
    transform: translateY(-5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .final-portfolio-cta h2 { font-size: 2.2rem; }
    .cta-button-group { flex-direction: column; }
    .cta-btn { width: 100%; justify-content: center; }
}








.sdj-gallery-section {
    background-color: #0a0a0a; /* Pure dark to match your screenshot */
    padding: 60px 5%;
    text-align: center;
}

.gallery-title1 {
    color: #ffffff;
    font-size: 2.5rem;
    letter-spacing: 5px;
    margin-bottom: 50px;
    font-weight: 700;
}

.gallery-title1 span {
    color: #c19a6b; /* Your brand gold */
}

.gallery-grid1 {
    display: grid;
    /* 4 columns on desktop, 2 on tablet, 1 on mobile */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item1 {
    aspect-ratio: 1 / 1; /* Makes images square and neat */
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(193, 154, 107, 0.15);
    background: #111;
}

.gallery-item1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}

/* Hover effects */
.gallery-item1:hover img {
    transform: scale(1.1);
}

.gallery-item1:hover {
    border-color: #c19a6b;
    box-shadow: 0 0 20px rgba(193, 154, 107, 0.2);
}

@media (max-width: 600px) {
    .gallery-grid1 {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}



/* Modal Background */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 9%;
    width: 100%;
    height: 90%;
    background-color: rgba(0, 0, 0, 0.9); /* Black background with opacity */
    cursor: pointer;
}

/* Modal Content (Image) */
.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    border: 3px solid #c19a6b; /* Matching your brand gold */
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-modal:hover {
    color: #c19a6b;
    text-decoration: none;
    cursor: pointer;
}

/* Add a pointer to gallery items to show they are clickable */
.gallery-item1 {
    cursor: pointer;
}