:root {
    --bg-color: #ffffff;
    --surface-color: #f9fafb;
    --surface-glass: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.1);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --accent-red: #ee3c23;
    --accent-glow: rgba(238, 60, 35, 0.2);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red) var(--bg-color);
}

/* Background effects */
.glow-bg {
    position: fixed;
    top: -20vw;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    opacity: 0.8;
    pointer-events: none;
}

.accent {
    color: var(--accent-red);
}

.accent-block-placeholder { /* moved to hero section */ }

.typed-cursor {
    display: inline-block;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
    margin-left: 1px;
    animation: cursor-blink 0.75s step-end infinite;
    vertical-align: baseline;
}



@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-glass);
    transition: all var(--transition-smooth);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    z-index: 10;
}

.img-logo {
    height: 40px;
    object-fit: contain;
}

.logo-icon {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Burger button — hidden on desktop */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Animate to X when open */
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .burger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 75vw;
        max-width: 300px;
        height: 100dvh;
        background: var(--surface-glass);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 105;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
        padding: 0.9rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a:last-child {
        border-bottom: none;
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    /* Dim overlay behind the drawer */
    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 104;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }

    .nav-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 60, 35, 0.4);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--text-secondary);
}

.btn-outline {
    border: 1px solid var(--accent-red);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* CREATIVE BUTTON (Show More) */
.btn-creative {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: color 0.3s ease;
    z-index: 1;
}

.btn-creative::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    border: 2px solid var(--accent-red);
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-creative::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-creative:hover {
    color: #ffffff;
}

.btn-creative:hover::before {
    border-color: transparent;
}

.btn-creative:hover::after {
    width: 400px;
    height: 400px;
}

.btn-creative .btn-text {
    position: relative;
    z-index: 2;
    margin-right: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-creative .btn-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.btn-creative:hover .btn-icon {
    transform: translateY(4px);
}

/* HERO SECTION */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 110px;
    padding-bottom: 60px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero { padding-top: 130px; }
    .img-logo { max-height: 48px !important; }
}

/* HERO ACCORDION (LATEST WORK) */
.hero-latest-work {
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.latest-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 0.25rem;
}

.latest-badge::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--accent-red);
    border-radius: 2px;
}

.hero-accordion {
    display: flex;
    width: 100%;
    height: 400px;
    gap: 4px;
}

.accordion-item {
    flex: 0 0 auto;
    width: 14%;
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    cursor: crosshair;
    transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background-color: var(--surface-color);
    position: relative;
}

.hero-accordion:hover .accordion-item {
    width: 10%;
}

.hero-accordion .accordion-item:hover {
    width: 52%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.accordion-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.accordion-item:hover img {
    transform: scale(1.05);
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(238, 60, 35, 0.1);
    border: 1px solid rgba(238, 60, 35, 0.2);
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    /* Reserve space for both lines + rotation bleed, never reflows */
    height: 2.6em;
    overflow: visible;
}

.accent-block {
    display: block;
    background: var(--accent-red);
    color: #ffffff;
    padding: 0.15rem 0.75rem;
    border-radius: 6px;
    transform: rotate(-2deg);
    transform-origin: left center;
    box-shadow: 0 4px 15px var(--accent-glow);
    white-space: nowrap;
    width: fit-content;
    /* Ensure rotation shadow/edges are never clipped */
    isolation: isolate;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 80%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* HERO SECTION */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* SERVICES SECTION */
.services {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.svc-carousel-wrap {
    position: relative;
}

.svc-carousel-overflow {
    overflow: hidden;
    /* Padding lets box-shadows bleed out; negative margin compensates for layout */
    padding: 12px;
    margin: -12px;
}

.svc-carousel {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
    user-select: none;
    will-change: transform;
}

.svc-carousel.dragging {
    cursor: grabbing;
    transition: none;
}

.svc-item {
    flex: 0 0 calc(50% - 0.625rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.75rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.25s ease;
}

.svc-item:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.svc-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(238,60,35,0.08);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.svc-item-icon svg { width: 20px; height: 20px; }

.svc-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.svc-item-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Dots */
.svc-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.svc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.svc-dot.active {
    background: var(--accent-red);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .svc-item {
        flex: 0 0 100%;
    }
}

/* PORTFOLIO SECTION */
.portfolio {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 4px;
    grid-auto-flow: dense;
}

.portfolio-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: crosshair;
    display: none;
    grid-column: span 1;
    grid-row: span 1;
}

.portfolio-item.visible {
    display: block;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/*
  Zero-gap masonry: 3-item cycle, column spans only (no row spans on small items).
  Each group of 3 fills exactly one row of 4 columns: 2+1+1 = 4 ✓
  The span-2 item gets extra height for visual variety.
*/
.portfolio-item:nth-child(3n + 1) { grid-column: span 2; grid-row: span 2; }
.portfolio-item:nth-child(3n + 2) { grid-column: span 1; grid-row: span 1; }
.portfolio-item:nth-child(3n + 3) { grid-column: span 1; grid-row: span 1; }

@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .portfolio-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    .portfolio-item:nth-child(4n + 1) { grid-column: span 2 !important; grid-row: span 1 !important; }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }
    .portfolio-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 4px;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    object-fit: cover;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

/* ── Before / After Comparison Slider ── */
.portfolio-compare-wrap {
    width: 100%;
    height: 500px;
    border-radius: 4px;
    overflow: hidden;
    margin: 4px 0;
}

.compare-slider {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: default;
    user-select: none;
    border-radius: 4px;
    overflow: hidden;
    background: #1a1a2e;
}

/* Blurred background fills the letterbox gaps */
.compare-slider::before {
    content: '';
    position: absolute;
    inset: -20px;
    background-image: var(--after-src);
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(0.5) saturate(1.4);
    z-index: 0;
}

/* Fixed blur layer for the before side — separate element, not on the moving wrapper */
.compare-blur-before {
    position: absolute;
    inset: -20px;
    background-image: var(--before-src);
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(0.5) saturate(1.4);
    z-index: 0;
    /* Clip to left half using clip-path — updated by JS */
    clip-path: inset(0 50% 0 0);
}

.compare-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    z-index: 1;
}

.compare-before-wrap {
    position: absolute;
    inset: 0;
    width: 50%;
    overflow: hidden;
    z-index: 1;
}

/* The before image must be sized to the FULL slider, not the clipped wrapper,
   so object-fit:contain aligns it identically to the after image */
.compare-before-wrap .compare-before {
    position: absolute;
    top: 0;
    left: 0;
    /* Force it to match the full slider size */
    width: var(--slider-w, 100%);
    height: 100%;
    object-fit: contain;
    max-width: none;
}

.compare-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: ew-resize;
}

.compare-handle-line {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.compare-handle-btn {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
}

.compare-tag {
    position: absolute;
    bottom: 0.85rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.65rem 0.25rem 0.5rem;
    border-radius: 4px;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 5;
}
.compare-tag-before { left: 0.85rem; }
.compare-tag-after  { right: 0.85rem; }

@media (max-width: 900px) {
    .portfolio-compare-wrap { height: 360px; }
}
@media (max-width: 600px) {
    .portfolio-compare-wrap { height: 260px; }
}

.portfolio-actions {
    text-align: center;
    margin-top: 4rem;
}

/* LIGHTBOX MODAL */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

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

.lightbox-modal img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active img {
    transform: scale(1);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.masonry-item:hover .overlay {
    opacity: 1;
}

/* CONTACT SECTION */
.contact {
    padding: 6rem 2rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contact-info {
    padding: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(240, 81, 35, 0.1);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.info-text p, .info-text a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color var(--transition-fast);
}

.info-text a:hover {
    color: var(--accent-red);
}

.contact-map {
    height: 100%;
    min-height: 400px;
}

.map-wrapper {
    height: 100%;
    width: 100%;
    background: #e5e7eb;
}

/* TRUSTED BRANDS SCROLLER */
.trusted-brands {
    padding: 2.8rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
    /* Clip overflow here so the mask has full control */
    overflow: hidden;
}

.marquee {
    position: relative;
    width: 100%;
    /* Mask fades logos in from right, out to left */
    -webkit-mask-image: linear-gradient(to right,
        transparent 0%,
        rgba(0,0,0,1) 18%,
        rgba(0,0,0,1) 82%,
        transparent 100%
    );
    mask-image: linear-gradient(to right,
        transparent 0%,
        rgba(0,0,0,1) 18%,
        rgba(0,0,0,1) 82%,
        transparent 100%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 4rem;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 2rem;
}

.brand img {
    height: 80px;
    width: 180px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: all var(--transition-fast);
}

.brand:hover img {
    filter: grayscale(0%) opacity(1);
}

.fallback-logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.brand:hover .fallback-logo {
    color: rgba(0, 0, 0, 0.8);
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* FOOTER */
footer {
    background: #f8f7f5;
    color: #4b5563;
    border-top: 1px solid #e5e7eb;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-about {
    font-size: 0.82rem;
    line-height: 1.7;
    color: #6b7280;
    max-width: 380px;
}

.footer-socials {
    display: flex;
    gap: 0.6rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e5e7eb;
    color: #6b7280;
    transition: background 0.2s, color 0.2s;
}

.footer-socials a:hover {
    background: var(--accent-red);
    color: #fff;
}

.footer-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    font-size: 0.83rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.footer-col ul li svg {
    flex-shrink: 0;
    color: var(--accent-red);
    opacity: 0.7;
}

.footer-col ul li a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent-red);
}

.footer-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 0;
}

/* Powered by */
.powered-by { display: flex; justify-content: center; }
.powered-btn { background: none; border: none; font-family: 'Outfit', sans-serif; font-size: 0.72rem; color: #9ca3af; cursor: pointer; letter-spacing: 0.5px; transition: color 0.2s; padding: 0; white-space: nowrap; }
.powered-btn em { font-style: normal; font-weight: 700; color: #6b7280; }
.powered-btn:hover { color: var(--text-primary); }

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-about { max-width: 100%; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

.card-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; pointer-events: none; background: rgba(0,0,0,0); transition: background 0.3s ease; }
.card-overlay.open { pointer-events: auto; background: rgba(0,0,0,0.45); }
.biz-card { position: relative; width: 320px; background: #111827; border-radius: 16px; padding: 2rem; box-shadow: 0 24px 60px rgba(0,0,0,0.4); transform: translateY(16px); opacity: 0; transition: transform 0.3s ease, opacity 0.25s ease; z-index: 1; font-family: 'Outfit', sans-serif; }
.card-overlay.open .biz-card { transform: translateY(0); opacity: 1; }
.biz-card-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.08); border: none; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; color: #9ca3af; display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s; }
.biz-card-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
.biz-card-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.biz-card-avatar { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; background: var(--accent-red); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 900; color: #fff; }
.biz-card-name { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.15rem; }
.biz-card-role { font-size: 0.75rem; color: #9ca3af; }
.biz-card-studio { font-size: 0.68rem; color: #4b5563; margin-top: 0.2rem; }
.biz-card-divider { height: 1px; background: rgba(255,255,255,0.07); margin-bottom: 1.25rem; }
.biz-card-links { display: flex; flex-direction: column; gap: 0.5rem; }
.biz-card-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: #d1d5db; font-size: 0.85rem; padding: 0.6rem 0.75rem; border-radius: 8px; background: rgba(255,255,255,0.04); transition: background 0.15s, color 0.15s; }
.biz-card-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.biz-card-link svg { flex-shrink: 0; color: #6b7280; transition: color 0.15s; }
.biz-card-link:hover svg { color: var(--accent-red); }

/* ANIMATIONS & RESPONSIVE */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p {
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-latest-work {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .latest-badge {
        justify-content: center;
    }
    .hero-accordion {
        justify-content: center;
    }
    .banner-glass {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.5rem;
    }
    .banner-divider {
        width: 1px;
        height: auto;
        background: linear-gradient(0deg, transparent, var(--border-color), transparent);
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
    }
    .banner-glass {
        flex-direction: column;
        padding: 2rem;
    }
    .banner-divider {
        height: 1px;
        width: 100%;
        background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    }
}

/* BACK TO TOP BUTTON */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-red);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(238, 60, 35, 0.4);
    opacity: 0;
    transform: translateY(16px) scale(0.85);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#back-to-top:hover {
    background: #cc2e14;
    box-shadow: 0 6px 24px rgba(238, 60, 35, 0.55);
    transform: translateY(-3px) scale(1.05);
}

#back-to-top:active {
    transform: translateY(0) scale(0.96);
}
