/* =============================================
   CSS Reset and Base Styles
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-bg: #c5c9b8;
    --secondary-bg: #b8bcab;
    --card-bg: #f5f5f0;
    --dark-bg: #2d3a2d;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #666666;
    --accent-olive: #9a9a7c;
    --border-color: rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --header-height: 80px;
    --container-padding: 40px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* =============================================
   Header Styles
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px var(--container-padding);
    background: transparent;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.logo a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-dark);
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
}

.logo a:hover {
    opacity: 0.7;
}

.logo-img {
    height: 200px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: contrast(1.1);
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: opacity 0.3s ease;
}

.menu-btn:hover {
    opacity: 0.7;
}

.menu-btn span {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 28px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

.hamburger span:first-child {
    width: 100%;
}

.hamburger span:last-child {
    width: 100%;
}

/* =============================================
   Scroll Container for Image Sequence
   ============================================= */
.scroll-container {
    position: relative;
    /* Height determines scroll length for animation - 120 frames */
    height: 500vh;
}

#image-sequence-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
}

/* =============================================
   Hero Section Styles
   ============================================= */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding: var(--header-height) var(--container-padding) 40px;
    gap: 20px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Blended overlay for seamless background integration */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        /* Left side fade for text readability */
        linear-gradient(90deg,
            rgba(197, 201, 184, 0.9) 0%,
            rgba(197, 201, 184, 0.7) 25%,
            rgba(197, 201, 184, 0.3) 45%,
            transparent 65%),
        /* Top subtle fade */
        linear-gradient(180deg,
            rgba(197, 201, 184, 0.4) 0%,
            transparent 30%),
        /* Bottom subtle fade */
        linear-gradient(0deg,
            rgba(197, 201, 184, 0.3) 0%,
            transparent 20%);
    z-index: 1;
    pointer-events: none;
}

/* Left Content */
.hero-left {
    position: relative;
    padding-top: 60px;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-transform: uppercase;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 16px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    background: #1a2a1a;
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translate(3px, -3px);
}

/* CTA Wrapper and Contact Popup */
.cta-wrapper {
    position: relative;
    display: inline-block;
}

.cta-button {
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.contact-popup {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 15px;
    display: flex;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.contact-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popup-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.popup-icon svg {
    width: 24px;
    height: 24px;
}

.whatsapp-icon {
    background: #25D366;
    color: white;
}

.whatsapp-icon:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.email-icon {
    background: var(--dark-bg);
    color: white;
}

.email-icon:hover {
    background: #1a2a1a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Decorative Lines */
.decorative-lines {
    position: absolute;
    bottom: -100px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.line {
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0 6px 6px 0;
    backdrop-filter: blur(10px);
}

.line-1 {
    width: 180px;
}

.line-2 {
    width: 140px;
}

.line-3 {
    width: 200px;
}

.line-4 {
    width: 160px;
}

/* Removed: Center Building styles (now using background image) */

/* Right Content */
.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    padding-top: 60px;
    z-index: 10;
}

/* Info Card */
.info-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px 30px;
    max-width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.architect-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.profile-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.profile-info h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.profile-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Pixel Pattern */
.pixel-pattern {
    position: absolute;
    top: 20px;
    right: 10px;
    width: 150px;
    height: 100px;
    opacity: 0.8;
}

.pattern-svg {
    width: 100%;
    height: 100%;
}

/* Card Content */
.card-content {
    margin-top: 30px;
}

.card-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-content p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Experts Button */
.experts-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 18px 25px;
    border-radius: 12px;
    min-width: 220px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.experts-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    background: #1a2a1a;
}

.experts-button span {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
}

.experts-button svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.experts-button:hover svg {
    transform: translate(3px, -3px);
}

/* =============================================
   Menu Overlay
   ============================================= */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 58, 45, 0.98);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    pointer-events: auto;
}

.mobile-nav a {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    position: relative;
    pointer-events: auto;
    cursor: pointer;
}

.mobile-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--text-light);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-nav a:hover::after {
    width: 100%;
}

.mobile-nav a:hover {
    opacity: 0.8;
}

/* =============================================
   Responsive Styles
   ============================================= */
@media (max-width: 1200px) {
    .hero-section {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }

    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 100px;
        gap: 30px;
    }

    .hero-left {
        padding-top: 20px;
        text-align: center;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .cta-button {
        margin: 0 auto;
    }

    .decorative-lines {
        display: none;
    }

    .hero-right {
        align-items: center;
        padding-top: 20px;
    }

    .info-card {
        max-width: 100%;
    }

    .experts-button {
        width: 100%;
        max-width: 320px;
    }

    .mobile-nav a {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 20px;
    }

    .logo a {
        font-size: 0.75rem;
    }

    .menu-btn span {
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .info-card {
        padding: 20px;
    }

    .card-content h2 {
        font-size: 1.25rem;
    }
}

/* =============================================
   Animations and Effects
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-button {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.info-card {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.experts-button {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Removed: building-image animation (now using background) */

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-olive);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dark);
}

/* =============================================
   Canvas Fade-Out Transition
   ============================================= */
#image-sequence-canvas.fade-out {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section.fade-out {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   Post-Animation Content (Kontra Sections) — LIGHT THEME
   ============================================= */
.post-animation-content {
    position: relative;
    z-index: 5;
    background: #ffffff;
    font-family: 'Manrope', 'Inter', sans-serif;
    color: #1f2937;
}

.kontra-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Reveal Animations --- */
.reveal-section {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section 1: Kontra Hero --- */
.kontra-hero {
    padding: 120px 0 60px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.kontra-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(200, 200, 200, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.kontra-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

.kontra-main-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.kontra-bold {
    font-weight: 700;
}

.kontra-muted {
    color: #9ca3af;
}

.kontra-subtitle {
    margin-top: 20px;
    padding-left: 12px;
    border-left: 1px solid #d1d5db;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9ca3af;
}

.kontra-hero-right {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding-top: 20px;
}

.kontra-card-mini {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 24px;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.kontra-card-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.kontra-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.kontra-card-mini:hover .kontra-card-icon {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.kontra-card-mini h3 {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.kontra-card-mini p {
    font-size: 0.6rem;
    color: #9ca3af;
}

/* Big KONTRA text */
.kontra-big-text-wrapper {
    text-align: center;
    padding: 40px 0;
    overflow: hidden;
}

.kontra-huge-text {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(6rem, 20vw, 18rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: #1a1a1a;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
    opacity: 0.9;
}

/* Tags row */
.kontra-tags-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.75rem;
    color: #9ca3af;
}

.kontra-tags-left {
    display: flex;
    gap: 8px;
}

.kontra-tag {
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid #d1d5db;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.kontra-tags-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.kontra-tags-center strong,
.kontra-tags-right strong {
    color: #1a1a1a;
}

.kontra-tags-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

/* --- Section 2: About Studio --- */
.kontra-about {
    padding: 100px 0;
    background: #ffffff;
}

.kontra-about-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 60px;
}

.kontra-about-sidebar {
    position: sticky;
    top: 100px;
}

.kontra-studio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
}

.kontra-studio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}

.kontra-about-sidebar h4 {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1a1a1a;
}

.kontra-about-sidebar p {
    font-size: 0.75rem;
    color: #9ca3af;
}

.kontra-about-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 32px;
}

.kontra-about-title em {
    color: #b8a88a;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
}

.kontra-about-desc {
    max-width: 500px;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.7;
}

/* --- Our Clients Section --- */
.clients-section {
    padding: 100px 20px 80px;
    background: linear-gradient(180deg, #f0efed 0%, #e8e7e4 50%, #f0efed 100%);
    position: relative;
    overflow: hidden;
}

.clients-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    pointer-events: none;
}

.clients-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.clients-main-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.clients-subtitle-text {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 50px;
    letter-spacing: 0.3px;
}

/* Staggered scatter rows */
.clients-scatter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.clients-row {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.clients-row-2 {
    max-width: 380px;
}

.clients-row-3 {
    max-width: 580px;
}

/* Client tiles */
.client-tile {
    border-radius: 16px;
    width: 145px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
    cursor: default;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.client-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.client-tile:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Tile color variants */
.client-tile-teal {
    background: linear-gradient(145deg, #1a5c5a 0%, #184a49 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(26, 92, 90, 0.15);
}

.client-tile-dark {
    background: linear-gradient(145deg, #1a4a48 0%, #143a39 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(20, 58, 57, 0.15);
}

.client-tile-tan {
    background: linear-gradient(145deg, #a89279 0%, #96806a 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(168, 146, 121, 0.15);
}

.client-tile-mint {
    background: linear-gradient(145deg, #8ecac2 0%, #7ab8b0 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(142, 202, 194, 0.15);
}

.client-tile-light {
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Tile typography */
.tile-xl {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1;
}

.tile-lg {
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tile-md {
    font-family: 'Manrope', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.tile-sm {
    font-family: 'Manrope', sans-serif;
    font-size: 0.45rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
}

.tile-xs {
    font-family: 'Manrope', sans-serif;
    font-size: 0.38rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.6;
}

.tile-script {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1px;
}

.tile-emblem {
    font-size: 1rem;
    margin-bottom: 2px;
    opacity: 0.7;
}

/* Scroll fade in / out */
.client-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.client-fade.fade-visible {
    opacity: 1;
    transform: translateY(0);
}

.client-fade.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

/* Clients Responsive */
@media (max-width: 768px) {
    .clients-section {
        padding: 60px 16px 50px;
    }

    .clients-subtitle-text {
        margin-bottom: 32px;
    }

    .client-tile {
        width: 110px;
        height: 80px;
    }

    .clients-row {
        gap: 10px;
    }

    .clients-scatter {
        gap: 10px;
    }

    .tile-xl {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .clients-row-3 {
        flex-wrap: wrap;
        max-width: 250px;
    }

    .client-tile {
        width: 100px;
        height: 72px;
    }

    .clients-main-title {
        font-size: 1.8rem;
    }
}


/* --- Section 3: FAQ --- */
.kontra-faq {
    padding: 60px 0;
    background: #ffffff;
    overflow: hidden;
}

.kontra-faq-card {
    position: relative;
    background: linear-gradient(135deg, #f4f4f4 0%, #eaeaea 100%);
    border-radius: 24px;
    padding: 48px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.kontra-faq-glow {
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    pointer-events: none;
}

.kontra-faq-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: #9ca3af;
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.5;
}

.kontra-faq-title em {
    color: #1a1a1a;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
}

.kontra-faq-title strong {
    color: #1a1a1a;
    font-weight: 700;
}

.kontra-faq-grid.kontra-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kontra-accordion-item .kontra-faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 20px;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        padding 0.4s ease;
    border: none;
    box-shadow: none;
}

.kontra-accordion-item.open .kontra-faq-answer {
    max-height: 200px;
    opacity: 1;
    padding: 16px 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-top: 4px;
}

.kontra-accordion-item .kontra-faq-item svg {
    transition: transform 0.3s ease;
}

.kontra-accordion-item.open .kontra-faq-item svg {
    transform: rotate(180deg);
}

.kontra-faq-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kontra-faq-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.kontra-faq-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a1a1a;
}

.kontra-faq-item svg {
    color: #9ca3af;
    flex-shrink: 0;
}

.kontra-faq-active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}

.kontra-faq-answer {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.kontra-faq-answer p {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.6;
}

/* --- Section 4: Showcase --- */
.kontra-showcase {
    padding: 60px 0 120px;
    background: #ffffff;
}

.kontra-showcase-card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    height: 600px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.kontra-showcase-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
    transition: transform 0.7s ease;
}

.kontra-showcase-card:hover .kontra-showcase-bg {
    transform: scale(1.05);
}

.kontra-showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 40%, rgba(0, 0, 0, 0.3) 100%);
}

.kontra-showcase-content {
    position: absolute;
    inset: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

.kontra-showcase-top {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.kontra-showcase-chip {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    padding: 16px;
    border-radius: 14px;
    max-width: 140px;
}

.kontra-showcase-chip img {
    width: 100%;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.kontra-showcase-chip span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.kontra-showcase-stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    padding: 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 140px;
}

.kontra-showcase-stat span {
    font-size: 2rem;
    font-weight: 700;
}

.kontra-showcase-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.kontra-showcase-center svg {
    margin-bottom: 20px;
}

.kontra-showcase-center h3 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.3rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.3;
}

.kontra-showcase-center em {
    color: rgba(212, 197, 169, 0.9);
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
}

.kontra-showcase-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.kontra-showcase-thumb {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.kontra-showcase-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.kontra-showcase-quote {
    font-size: 0.85rem;
    color: #d1d5db;
    max-width: 280px;
    text-align: right;
}

/* --- Premium Footer --- */
.rpkd-footer-wrapper {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

/* CTA Card */
.rpkd-cta-card {
    position: relative;
    background: #0F172A;
    border-radius: 24px;
    padding: 48px 56px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 80px;
}

.rpkd-cta-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
}

.rpkd-cta-glow {
    position: absolute;
    width: 384px;
    height: 384px;
    border-radius: 50%;
    filter: blur(80px);
    transition: all 0.7s ease;
    pointer-events: none;
}

.rpkd-cta-glow-right {
    right: -80px;
    top: -80px;
    background: rgba(59, 130, 246, 0.1);
}

.rpkd-cta-card:hover .rpkd-cta-glow-right {
    background: rgba(59, 130, 246, 0.2);
}

.rpkd-cta-glow-left {
    left: -80px;
    bottom: -80px;
    background: rgba(99, 102, 241, 0.1);
}

.rpkd-cta-card:hover .rpkd-cta-glow-left {
    background: rgba(99, 102, 241, 0.2);
}

.rpkd-cta-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.rpkd-cta-left h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.rpkd-cta-right {
    padding-left: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.rpkd-cta-right p {
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 32px;
}

.rpkd-cta-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.rpkd-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0F172A;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.rpkd-btn-primary:hover {
    background: #f1f5f9;
}

.rpkd-btn-primary .material-icons-outlined {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.rpkd-btn-primary:hover .material-icons-outlined {
    transform: rotate(45deg);
}

.rpkd-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rpkd-btn-ghost:hover {
    color: #e2e8f0;
}

.rpkd-btn-ghost .material-icons-outlined {
    font-size: 20px;
}

/* Footer Main */
.rpkd-footer {
    padding-top: 40px;
}

.rpkd-footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-bottom: 80px;
}

.rpkd-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rpkd-footer-logo {
    font-family: 'Manrope', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    transition: opacity 0.3s ease;
}

.rpkd-footer-logo:hover {
    opacity: 0.8;
}

.rpkd-footer-tagline {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 20px;
    max-width: 250px;
}

.rpkd-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.rpkd-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: #64748b;
    transition: all 0.3s ease;
}

.rpkd-footer-social a:hover {
    background: #0F172A;
    color: #ffffff;
    transform: translateY(-2px);
}

.rpkd-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
}

.rpkd-status-dot {
    position: relative;
    display: flex;
    width: 10px;
    height: 10px;
}

.rpkd-status-ping {
    position: absolute;
    display: inline-flex;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #10B981;
    opacity: 0.75;
    animation: rpkd-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.rpkd-status-solid {
    position: relative;
    display: inline-flex;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10B981;
}

@keyframes rpkd-ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Footer Link Columns */
.rpkd-footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.rpkd-footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rpkd-footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 4px;
}

.rpkd-footer-col a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rpkd-footer-col a:hover {
    color: #0F172A;
}

/* Footer Bottom Bar */
.rpkd-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.75rem;
    color: #64748b;
}

.rpkd-footer-legal {
    display: flex;
    gap: 24px;
}

.rpkd-footer-legal a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rpkd-footer-legal a:hover {
    color: #1e293b;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .rpkd-cta-card {
        padding: 32px 24px;
    }

    .rpkd-cta-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rpkd-cta-right {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 24px;
    }

    .rpkd-cta-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .rpkd-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rpkd-footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rpkd-footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* =============================================
   Responsive: Kontra Sections
   ============================================= */
@media (max-width: 768px) {
    .kontra-hero-grid {
        grid-template-columns: 1fr;
    }

    .kontra-hero-right {
        justify-content: center;
    }

    .kontra-tags-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .kontra-tags-center,
    .kontra-tags-right {
        justify-content: flex-start;
    }

    .kontra-about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .kontra-about-sidebar {
        position: static;
    }

    .kontra-faq-card {
        padding: 24px;
    }

    .kontra-faq-grid {
        grid-template-columns: 1fr;
    }

    .kontra-showcase-card {
        height: 500px;
    }

    .kontra-showcase-content {
        padding: 20px;
    }

    .kontra-showcase-top {
        gap: 8px;
    }

    .kontra-showcase-chip {
        max-width: 110px;
        padding: 10px;
    }

    .kontra-showcase-stat {
        max-width: 100px;
    }

    .kontra-showcase-stat span {
        font-size: 1.5rem;
    }

    .kontra-footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}