/* ========================================
   RBK LAB - LUXURY E-COMMERCE CONSULTING
   ======================================== */

:root {
    --color-black: #0a0a0a;
    --color-dark: #1a1a1a;
    --color-charcoal: #2a2a2a;
    --color-gray: #888888;
    --color-light-gray: #cccccc;
    --color-off-white: #f5f5f3;
    --color-cream: #faf9f7;
    --color-white: #ffffff;
    --color-gold: #b8a369;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --spacing-2xl: 8rem;

    --max-width: 1200px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-dark);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

p {
    color: var(--color-gray);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition);
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-2xl) 0;
    position: relative;
}

.section-dark {
    background-color: var(--color-black);
    color: var(--color-white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--color-white);
}

.section-dark p {
    color: var(--color-light-gray);
}

.section-title {
    font-size: 0.75rem;
    font-family: var(--font-sans);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.section-title::after {
    content: '';
    flex: 1;
    max-width: 100px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-gold), transparent);
}

.section-intro {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-style: italic;
    color: var(--color-dark);
    max-width: 600px;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.section-dark .section-intro {
    color: var(--color-off-white);
}

/* Section divider decoration */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--color-gold) 0%, transparent 100%);
    opacity: 0.4;
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 64px;
    width: auto;
}

.nav-logo-accent {
    font-weight: 300;
    color: var(--color-gold);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-black);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lang-switch a {
    color: var(--color-gray);
    padding: 0.25rem 0.5rem;
}

.lang-switch a:hover {
    color: var(--color-black);
}

.lang-switch a.lang-active {
    color: var(--color-black);
}

.lang-divider {
    color: var(--color-light-gray);
}

/* ========================================
   HERO
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-off-white) 100%);
    position: relative;
    overflow: hidden;
}

/* Geometric grid pattern - more visible */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(184, 163, 105, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 163, 105, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: translateY(calc(var(--parallax-y, 0px) * 0.5));
    pointer-events: none;
}

/* Floating geometric shapes - larger and more visible */
.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    border: 2px solid rgba(184, 163, 105, 0.2);
    border-radius: 50%;
    transform: translateY(calc(var(--parallax-y, 0px) * -0.3));
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(calc(var(--parallax-y, 0px) * -0.3)) rotate(0deg); }
    50% { transform: translateY(calc(var(--parallax-y, 0px) * -0.3 - 20px)) rotate(5deg); }
}

/* Additional decorative elements */
.hero-decoration {
    position: absolute;
    pointer-events: none;
}

.hero-decoration-1 {
    top: 20%;
    right: 12%;
    width: 250px;
    height: 250px;
    border: 2px solid rgba(184, 163, 105, 0.15);
    transform: rotate(45deg) translateY(calc(var(--parallax-y, 0px) * -0.2));
    animation: float-slow 25s ease-in-out infinite;
}

.hero-decoration-2 {
    bottom: 15%;
    right: 20%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 163, 105, 0.15) 0%, transparent 70%);
    transform: translateY(calc(var(--parallax-y, 0px) * 0.4));
    animation: pulse 8s ease-in-out infinite;
}

.hero-decoration-3 {
    top: 35%;
    left: 3%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(184, 163, 105, 0.12);
    border-radius: 50%;
    transform: translateY(calc(var(--parallax-y, 0px) * 0.6));
}

@keyframes float-slow {
    0%, 100% { transform: rotate(45deg) translateY(calc(var(--parallax-y, 0px) * -0.2)); }
    50% { transform: rotate(45deg) translateY(calc(var(--parallax-y, 0px) * -0.2 - 30px)); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translateY(calc(var(--parallax-y, 0px) * 0.4)) scale(1); }
    50% { opacity: 1; transform: translateY(calc(var(--parallax-y, 0px) * 0.4)) scale(1.1); }
}

.hero .container {
    position: relative;
    z-index: 1;
    will-change: transform, opacity;
}

/* ========================================
   AI LAYER SECTION
   ======================================== */

.section-ai {
    padding: var(--spacing-xl) 0;
    background-color: #0a0a0a !important;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Digital circuit pattern for AI section */
.section-ai::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(184, 163, 105, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 90% 80%, rgba(184, 163, 105, 0.25) 2px, transparent 2px),
        radial-gradient(circle at 50% 50%, rgba(184, 163, 105, 0.2) 3px, transparent 3px),
        radial-gradient(circle at 30% 70%, rgba(184, 163, 105, 0.25) 2px, transparent 2px),
        radial-gradient(circle at 70% 30%, rgba(184, 163, 105, 0.3) 2px, transparent 2px),
        linear-gradient(90deg, transparent 49%, rgba(184, 163, 105, 0.05) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(184, 163, 105, 0.05) 50%, transparent 51%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    pointer-events: none;
    animation: ai-pulse 4s ease-in-out infinite;
}

.section-ai::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, transparent 30%, rgba(184, 163, 105, 0.08) 50%, transparent 70%);
    animation: ai-scan 6s linear infinite;
    pointer-events: none;
}

@keyframes ai-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes ai-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Plexus Network SVG */
.neural-network {
    position: absolute;
    top: 50%;
    right: 3%;
    transform: translateY(-50%);
    width: 420px;
    height: 500px;
    pointer-events: none;
    opacity: 0.9;
}

.neural-network .node {
    transition: all 0.3s ease;
}

.neural-network .node-pulse {
    animation: node-glow 3s ease-in-out infinite;
}

.neural-network .node-pulse-delay {
    animation: node-glow 3s ease-in-out infinite 1.5s;
}

@keyframes node-glow {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(184, 163, 105, 0.3));
        opacity: 0.6;
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(184, 163, 105, 0.8));
        opacity: 1;
    }
}

.ai-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.ai-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: var(--color-gold);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.02em;
}

.ai-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--color-light-gray);
    margin-bottom: var(--spacing-md);
}

.ai-text p:last-child {
    margin-bottom: 0;
}

.hero-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 200px;
    }
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-gold);
    margin-bottom: var(--spacing-md);
}

.hero-headline {
    color: var(--color-black);
    margin-bottom: var(--spacing-lg);
    max-width: 900px;
}

.hero-text {
    font-size: 1.125rem;
    font-weight: 300;
    max-width: 550px;
    line-height: 1.9;
}

/* ========================================
   EXPERTISE GRID
   ======================================== */

#expertise {
    position: relative;
    overflow: hidden;
}

/* Abstract geometric pattern for expertise section */
#expertise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse 800px 600px at 90% 10%, rgba(184, 163, 105, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 600px 400px at 10% 90%, rgba(184, 163, 105, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Diagonal lines pattern */
#expertise::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(184, 163, 105, 0.03) 40px,
        rgba(184, 163, 105, 0.03) 41px
    );
    pointer-events: none;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.expertise-card {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--color-light-gray);
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
    backdrop-filter: blur(10px);
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), transparent);
    transition: width 0.6s ease;
}

.expertise-card:hover::before {
    width: 100%;
}

.expertise-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.expertise-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-md);
    color: var(--color-gold);
    opacity: 0.8;
    transition: all var(--transition);
}

.expertise-card:hover .expertise-icon {
    opacity: 1;
    transform: scale(1.1);
}

.expertise-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1;
    fill: none;
}

.expertise-number {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    color: var(--color-gold);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.expertise-card h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--color-black);
    margin-bottom: var(--spacing-sm);
}

.expertise-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ========================================
   APPROACH
   ======================================== */

#approach {
    position: relative;
    overflow: hidden;
}


/* Dot matrix pattern for approach section */
#approach::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at center, rgba(184, 163, 105, 0.15) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 0.6;
    pointer-events: none;
}

/* Approach item icons - plexus style */
.approach-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    pointer-events: none;
    opacity: 0.7;
}

.approach-icon svg {
    width: 100%;
    height: 100%;
}

.approach-list {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.approach-item {
    padding: var(--spacing-lg) 0;
    padding-right: 100px;
    border-bottom: 1px solid var(--color-charcoal);
    opacity: 0;
    transform: translateX(-20px);
    transition: all var(--transition-slow);
    position: relative;
}

.approach-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.approach-item:first-child {
    border-top: 1px solid var(--color-charcoal);
}

.approach-item h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--spacing-xs);
}

.approach-item p {
    font-size: 0.95rem;
}

/* ========================================
   BACKGROUND
   ======================================== */

#background {
    position: relative;
    overflow: hidden;
}

/* Large "20" watermark in gold */
.background-watermark {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-serif);
    font-size: clamp(180px, 25vw, 350px);
    font-weight: 400;
    font-style: normal;
    color: rgba(184, 163, 105, 0.12);
    letter-spacing: -0.05em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* Large abstract shapes */
#background::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background:
        radial-gradient(ellipse at center, rgba(184, 163, 105, 0.08) 0%, transparent 60%);
    border: 2px solid rgba(184, 163, 105, 0.12);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite;
    pointer-events: none;
}

#background::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 350px;
    height: 350px;
    background:
        radial-gradient(ellipse at center, rgba(184, 163, 105, 0.05) 0%, transparent 70%);
    border: 1px solid rgba(184, 163, 105, 0.08);
    border-radius: 50%;
    animation: float-slow 30s ease-in-out infinite reverse;
    pointer-events: none;
}

/* Horizontal lines accent */
.background-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 300px;
    height: 100%;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 20px,
        rgba(184, 163, 105, 0.06) 20px,
        rgba(184, 163, 105, 0.06) 21px
    );
    pointer-events: none;
}

.background-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.background-lead {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--color-black);
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
}

.background-details p {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.background-details p:last-child {
    margin-bottom: 0;
}

/* Decorative timeline line */
.background-timeline {
    position: absolute;
    left: -60px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, var(--color-gold) 20%, var(--color-gold) 80%, transparent 100%);
    opacity: 0.3;
}

.background-timeline::before,
.background-timeline::after {
    content: '';
    position: absolute;
    left: -4px;
    width: 9px;
    height: 9px;
    background: var(--color-gold);
    border-radius: 50%;
}

.background-timeline::before {
    top: 20%;
}

.background-timeline::after {
    bottom: 20%;
}

/* ========================================
   CONTACT
   ======================================== */

#contact {
    position: relative;
    overflow: hidden;
}

/* Large "STUDIO" watermark */
.contact-watermark {
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-sans);
    font-size: clamp(60px, 12vw, 180px);
    font-weight: 300;
    letter-spacing: 0.2em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(184, 163, 105, 0.12);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* Concentric circles pattern - removed, replaced by LAB watermark */
#contact::before {
    display: none;
}

/* Corner accent */
#contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, transparent 50%, rgba(184, 163, 105, 0.08) 50%);
    pointer-events: none;
}

.contact-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding-top: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

.contact-content p {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-light-gray);
    margin-bottom: var(--spacing-md);
}

.contact-email {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-white);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--color-gold);
    transition: all var(--transition);
}

.contact-email:hover {
    color: var(--color-gold);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    background-color: var(--color-black);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer p {
    font-size: 0.75rem;
    color: var(--color-gray);
    letter-spacing: 0.1em;
}

.footer-social a {
    color: var(--color-gray);
    transition: color var(--transition);
}

.footer-social a:hover {
    color: var(--color-gold);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .nav, .lang-switch, .footer-social {
        display: none !important;
    }
    .hero { min-height: auto; padding-top: 0; }
    .section { padding: 2rem 0; }
    .section-dark { background-color: transparent; color: #000; }
    .section-dark h2, .section-dark h3, .section-dark p { color: #000; }
    body { font-size: 11pt; }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .neural-network {
        width: 280px;
        height: 360px;
        right: 2%;
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .nav-logo-img {
        height: 56px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 150px 0 var(--spacing-xl);
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .neural-network {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }

    .lang-switch {
        margin-left: auto;
    }
}
