/* ==========================================================================
   PORTOFOLIO V7 - EXACT CREATIVE BRANDING AGENCY & PERSONAL PORTFOLIO DESIGN SYSTEM
   Featuring Helvetica Neue / Neue Haas Grotesk / Inter Tight UltraLight Typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&family=Caveat:wght@600;700&display=swap');

:root {
    --bg-dark: #120204;
    --bg-dark-card: #1c0508;
    --bg-light: #f4f3ef;
    --bg-white: #ffffff;
    --accent-red: #ff3b00;
    --accent-crimson: #d91c1c;
    --text-dark: #141416;
    --text-muted: #64748b;
    --font-heading: 'Helvetica Neue', 'Neue Haas Grotesk', 'Helvetica Now Display', 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-subheading: 'Outfit', 'Inter Tight', sans-serif;
    --font-body: 'Inter', 'Plus Jakarta Sans', sans-serif;
    --font-hand: 'Caveat', cursive;
}

* {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: #ffffff;
    overflow-x: hidden;
    margin: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0203;
}
::-webkit-scrollbar-thumb {
    background: #ff3b00;
    border-radius: 4px;
}

/* Exact Agency Typography Classes matching user specification */
.font-agency-thin {
    font-family: var(--font-heading);
    font-weight: 250;
    letter-spacing: -0.04em; /* Tight tracking -4% */
    line-height: 0.90; /* Tight line height 0.85–0.95 */
    text-transform: uppercase;
}

.font-agency-medium {
    font-family: var(--font-heading);
    font-weight: 350;
    letter-spacing: -0.035em;
    line-height: 0.92;
    text-transform: uppercase;
}

.font-outfit {
    font-family: var(--font-subheading);
}

.text-stroke-white {
    color: transparent;
    -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.88);
}

.text-stroke-dark {
    color: transparent;
    -webkit-text-stroke: 1.2px #141416;
}

.text-stroke-gray {
    color: transparent;
    -webkit-text-stroke: 1.2px #a1a1aa;
}

.text-muted-gray {
    color: #a1a1aa;
}

/* Red 3D Sphere Accent Icon */
.red-3d-capsule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #ff6b3b, #ff3b00 60%, #880000 100%);
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(255, 59, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    vertical-align: middle;
    margin: 0 4px;
}

/* Header Glassmorphism */
.header-dark {
    background: rgba(18, 2, 4, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Hero Section */
.hero-container {
    background: radial-gradient(circle at 50% 30%, #2b050a 0%, #120204 70%);
    position: relative;
}

/* Hero Photo Framing & Alignment Rules */
.hero-photo-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

/* Mobile View: Full unblocked face with all elements shifted up */
@media (max-width: 1023px) {
    .hero-photo-container {
        justify-content: center;
        right: 0;
        top: -15px;
        height: calc(100% + 15px);
    }
    .hero-photo-fit {
        max-height: 500px;
        width: auto;
        object-fit: contain;
        object-position: top center;
        transform: translateY(-15px);
        transform-origin: top center;
        opacity: 0.85;
        filter: contrast(1.05) brightness(0.98);
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    }
}

/* Desktop View: Centered focal photo between left & right columns */
@media (min-width: 1024px) {
    .hero-photo-container {
        top: 68px; /* Starts right below sticky navbar */
        height: calc(100% - 68px);
        justify-content: center;
        right: 0;
    }
    .hero-photo-fit {
        max-height: 600px;
        width: auto;
        object-fit: contain;
        object-position: top center;
        transform: scale(1.05);
        transform-origin: top center;
        opacity: 0.85;
        filter: contrast(1.05) brightness(0.98);
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 82%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 82%, rgba(0,0,0,0) 100%);
    }
}

/* Light Off-White Main Body Container */
.main-light-container {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-top-left-radius: 44px;
    border-top-right-radius: 44px;
    position: relative;
    z-index: 20;
    margin-top: -28px;
    box-shadow: 0 -25px 50px rgba(0, 0, 0, 0.6);
    padding-top: 5rem;
    padding-bottom: 6rem;
}

/* Alternating Parallax Section Strips (Selang-Seling dengan background-attachment fixed) */
.parallax-section-dark {
    position: relative;
    background-image: linear-gradient(135deg, rgba(14, 2, 4, 0.94) 0%, rgba(18, 3, 6, 0.84) 50%, rgba(14, 2, 4, 0.92) 100%), url('../assets/bg-orang.png');
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    color: #ffffff;
    border-radius: 36px;
    border: 1px solid rgba(255, 59, 0, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.parallax-section-light {
    position: relative;
    background-image: linear-gradient(135deg, rgba(248, 248, 250, 0.92) 0%, rgba(242, 242, 246, 0.85) 50%, rgba(248, 248, 250, 0.93) 100%), url('../assets/bg-orang.png');
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    border-radius: 36px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* 3D Spotlight Coverflow Carousel System */
.showcase-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0 1.5rem;
    user-select: none;
    touch-action: pan-y;
}

.showcase-slider-track {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 200px;
    height: clamp(200px, 30vw, 380px);
}

.showcase-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.55);
    opacity: 0;
    pointer-events: none;
    transition: all 0.55s cubic-bezier(0.25, 1, 0.5, 1);
    width: min(82%, 620px);
    aspect-ratio: 16 / 10;
    border-radius: clamp(16px, 2.2vw, 30px);
    overflow: hidden;
    background-color: #0e0204;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 1;
    cursor: pointer;
}

.showcase-slide img,
.showcase-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    pointer-events: none;
}

/* Active Center Slide (Large Hero Spotlight) */
.showcase-slide.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    border: 2.5px solid #ff3b00;
    box-shadow: 0 25px 60px rgba(255, 59, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Previous Slide (Left Wing) */
.showcase-slide.prev {
    transform: translate(calc(-50% - min(46%, 360px)), -50%) scale(0.72);
    opacity: 0.88;
    z-index: 5;
    pointer-events: auto;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Next Slide (Right Wing) */
.showcase-slide.next {
    transform: translate(calc(-50% + min(46%, 360px)), -50%) scale(0.72);
    opacity: 0.88;
    z-index: 5;
    pointer-events: auto;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Far left/right slides hidden smoothly */
.showcase-slide.hidden-left {
    transform: translate(calc(-50% - min(70%, 550px)), -50%) scale(0.5);
    opacity: 0;
    z-index: 0;
}

.showcase-slide.hidden-right {
    transform: translate(calc(-50% + min(70%, 550px)), -50%) scale(0.5);
    opacity: 0;
    z-index: 0;
}

/* Carousel Nav Buttons */
.slider-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.95);
    color: #141416;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.slider-nav-btn:hover {
    background: #ff3b00;
    color: #ffffff;
    border-color: #ff3b00;
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 59, 0, 0.4);
}

/* Services 4-Cards Grid matching photo */
.service-card-red {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 59, 0, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.service-card-red:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 59, 0, 0.3);
    z-index: 10;
}

/* Floating White Metric Badge Card */
.metric-badge-white {
    background: #ffffff;
    color: #141416;
    border-radius: 20px;
    padding: 1rem 1.25rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Pill Buttons */
.btn-pill-red {
    background-color: var(--accent-red);
    color: #ffffff;
    font-family: var(--font-subheading);
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 59, 0, 0.4);
}
.btn-pill-red:hover {
    background-color: #e03400;
    transform: translateY(-2px);
}

.btn-pill-white {
    background-color: #ffffff;
    color: #141416;
    font-family: var(--font-subheading);
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}
.btn-pill-white:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
}

.btn-pill-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-family: var(--font-subheading);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}
.btn-pill-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* EXACT Agency Project Card (Matching Reference Photo) */
.project-agency-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background-color: #120204;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selected Projects 3D Spotlight Coverflow Carousel System (Full Bleed to Edges, No Gradient Mask) */
.projects-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0 1.5rem;
    user-select: none;
    touch-action: pan-y;
}

.projects-carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 240px;
    height: clamp(240px, 36vw, 460px);
}

.project-carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.65);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    width: min(88%, 760px);
    aspect-ratio: 16 / 10;
    border-radius: clamp(16px, 2.5vw, 30px);
    overflow: hidden;
    background-color: #0e0204;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: none;
    z-index: 1;
    cursor: pointer;
}

/* Active Center Card (100% Clear Photo & Neon Accent, No Shadow) */
.project-carousel-slide.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    border: 2.5px solid #ff3b00;
    box-shadow: none;
}

/* Previous Slide (Left Wing - Out to the Left Edge, No Shadow) */
.project-carousel-slide.prev {
    transform: translate(calc(-50% - min(52%, 460px)), -50%) scale(0.82);
    opacity: 0.40;
    z-index: 5;
    pointer-events: auto;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: none;
}

.project-carousel-slide.prev:hover {
    opacity: 0.70;
}

/* Next Slide (Right Wing - Out to the Right Edge, No Shadow) */
.project-carousel-slide.next {
    transform: translate(calc(-50% + min(52%, 460px)), -50%) scale(0.82);
    opacity: 0.40;
    z-index: 5;
    pointer-events: auto;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: none;
}

.project-carousel-slide.next:hover {
    opacity: 0.70;
}

/* My Digital Footprints: Uniform Photo Gallery (3 columns x 2 rows = 6 photos per page) */
.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background-color: #0e0204;
    aspect-ratio: 16 / 10;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
}

.gallery-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 36px rgba(255, 59, 0, 0.25);
    z-index: 10;
}

.gallery-card img,
.gallery-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover img,
.gallery-card:hover video {
    transform: scale(1.08);
}

/* Gradient overlay for clear text inside photo */
.gallery-card-overlay {
    position: relative;
    z-index: 5;
    background: linear-gradient(to top, rgba(10, 2, 4, 0.95) 0%, rgba(10, 2, 4, 0.45) 45%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
    pointer-events: none;
    width: 100%;
}

/* Floating Lightbox Modal */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-modal.active > div {
    transform: scale(1);
}

.project-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-agency-card:hover .project-bg-img,
.project-carousel-slide:hover .project-bg-img {
    transform: scale(1.05);
}

/* Clear Photo - No Heavy Gradient */
.project-card-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.project-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: linear-gradient(to top, rgba(14, 2, 4, 0.95) 0%, rgba(14, 2, 4, 0.85) 60%, rgba(14, 2, 4, 0) 100%);
    backdrop-filter: blur(8px);
}

.project-tag-pill {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 14px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Polished Pagination Number Buttons System */
.pagination-btn {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background-color: #ffffff;
    color: #141416;
    border: 1px solid #e2e8f0;
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background-color: #120204;
    color: #ff3b00;
    border-color: rgba(255, 59, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 59, 0, 0.2);
}

.pagination-btn.active {
    background-color: #120204;
    color: #ff3b00;
    border: 2px solid #ff3b00;
    box-shadow: 0 6px 18px rgba(255, 59, 0, 0.35);
    transform: scale(1.08);
    font-weight: 800;
}

.pagination-btn.nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 14px;
}

.pagination-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background-color: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    box-shadow: none;
}

/* Mobile Floating Bottom Glassmorphism Navigation Items */
.nav-bottom-item {
    color: #94a3b8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-bottom-item:hover {
    color: #ffffff;
}
.nav-bottom-item.active {
    background-color: #ff3b00;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(255, 59, 0, 0.5);
    transform: scale(1.05);
}
