/* ============================================
   MB DESIGN — Design System & Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Brand Colors */
    --primary: #1E293B;
    --secondary: #F59E0B;
    --accent: #06B6D4;
    --digital: #7C3AED;
    --success: #10B981;

    /* Neutrals (Dark Theme) */
    --white: #FFFFFF;
    --surface: #1a1f35;
    --surface-card: rgba(30, 36, 64, 0.45);
    /* Glassmorphism base */
    --surface-alt: #141829;
    --border: rgba(255, 255, 255, 0.08);
    --text-muted: #94a3b8;
    --text-main: #e2e8f0;
    --black: #0F172A;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #1E293B 0%, #7C3AED 50%, #06B6D4 100%);
    --gradient-cta: linear-gradient(135deg, #F59E0B 0%, #7C3AED 100%);
    --gradient-ai: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
    --gradient-text: linear-gradient(135deg, #F59E0B, #7C3AED, #06B6D4);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 20px 40px rgba(124, 58, 237, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
    --shadow-cta: 0 4px 14px rgba(124, 58, 237, 0.4);
    --shadow-nav: 0 4px 30px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

/* ---------- Typography ---------- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--digital);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s ease-in-out infinite;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 1001;
}

.nav-logo-img {
    height: 63px;
    width: auto;
    transition: all var(--transition);
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6)) drop-shadow(0 0 20px rgba(124, 58, 237, 0.4)) brightness(1.3);
}

.nav-logo-img:hover {
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.8)) drop-shadow(0 0 30px rgba(124, 58, 237, 0.6)) brightness(1.5);
}

.navbar.scrolled .nav-logo-img {
    height: 51px;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6)) drop-shadow(0 0 20px rgba(124, 58, 237, 0.4)) brightness(1.3);
}

.navbar.scrolled .nav-logo-img:hover {
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.8)) drop-shadow(0 0 30px rgba(124, 58, 237, 0.6)) brightness(1.5);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
}

.navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-link--cta {
    background: var(--gradient-cta) !important;
    color: var(--white) !important;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

.nav-link--cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

/* Language Toggle */
.nav-lang {
    margin-left: 0.5rem;
}

.lang-toggle {
    display: flex;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
}

.lang-btn.active {
    background: var(--digital);
    color: var(--white);
}

.lang-btn:hover:not(.active) {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--white);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 1.5rem 3rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #0F172A 0%, #1E293B 25%, #312e81 50%, #1e1b4b 75%, #0F172A 100%);
    background-size: 400% 400%;
    animation: heroGradient 15s ease infinite;
}

@keyframes heroGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    width: 16px;
    height: 16px;
    color: var(--secondary);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-title-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
}

.hero-stat-plus {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.hero-stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    animation: bobbing 2s ease-in-out infinite;
}

@keyframes bobbing {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

.hero-scroll-arrow i {
    width: 20px;
    height: 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn i {
    width: 18px;
    height: 18px;
    transition: transform var(--transition);
}

.btn:hover i {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--gradient-cta);
    color: var(--white);
    box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   ABOUT
   ============================================ */
.section-about {
    background: var(--surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-highlight {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-highlight-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(124, 58, 237, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--digital);
}

.about-highlight-icon i {
    width: 22px;
    height: 22px;
}

.about-highlight strong {
    display: block;
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.about-highlight p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* About Visual — organized service segments */
.about-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.about-hub {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--surface-card);
    border: 2px solid rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.2), 0 0 60px rgba(6, 182, 212, 0.1);
    animation: hubPulse 3s ease-in-out infinite;
}

.about-hub-logo {
    width: 50px;
    height: auto;
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.5)) brightness(1.3);
}

@keyframes hubPulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(124, 58, 237, 0.2), 0 0 60px rgba(6, 182, 212, 0.1);
    }

    50% {
        box-shadow: 0 0 40px rgba(124, 58, 237, 0.4), 0 0 80px rgba(6, 182, 212, 0.2);
    }
}

/* Segments */
.about-segment {
    width: 100%;
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.about-segment--creative {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(6, 182, 212, 0.06) 100%);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.about-segment--digital {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(6, 182, 212, 0.06) 100%);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.about-segment-label {
    width: 100%;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

/* Cards (organized) */
.about-card {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    background: var(--surface-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all var(--transition);
    animation: cardFloat 5s ease-in-out infinite;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.about-card:nth-child(2) {
    animation-delay: 0s;
}

.about-card:nth-child(3) {
    animation-delay: 0.7s;
}

.about-card:nth-child(4) {
    animation-delay: 1.4s;
}

.about-card:nth-child(5) {
    animation-delay: 2.1s;
}

.about-card:nth-child(6) {
    animation-delay: 0.3s;
}

.about-card:nth-child(7) {
    animation-delay: 1.0s;
}

.about-card:nth-child(8) {
    animation-delay: 1.7s;
}

.about-card:nth-child(9) {
    animation-delay: 2.4s;
}

.about-card:nth-child(10) {
    animation-delay: 0.5s;
}

.about-card:nth-child(11) {
    animation-delay: 1.2s;
}

.about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: transparent;
}

.about-card i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Color variants */
.about-card--amber {
    border-left-color: var(--secondary);
}

.about-card--amber i {
    color: var(--secondary);
}

.about-card--amber:hover {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: var(--secondary);
}

.about-card--cyan {
    border-left-color: var(--accent);
}

.about-card--cyan i {
    color: var(--accent);
}

.about-card--cyan:hover {
    background: rgba(6, 182, 212, 0.1);
    border-left-color: var(--accent);
}

.about-card--violet {
    border-left-color: var(--digital);
}

.about-card--violet i {
    color: var(--digital);
}

.about-card--violet:hover {
    background: rgba(124, 58, 237, 0.1);
    border-left-color: var(--digital);
}

.about-card--green {
    border-left-color: var(--success);
}

.about-card--green i {
    color: var(--success);
}

.about-card--green:hover {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success);
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ============================================
   SERVICES
   ============================================ */
.section-services {
    background: var(--surface-alt);
}

/* Tabs */
.services-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.services-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 2px solid var(--border);
    transition: all var(--transition);
}

.services-tab i {
    width: 18px;
    height: 18px;
}

.services-tab:hover {
    color: var(--digital);
    border-color: var(--digital);
}

.services-tab.active {
    background: var(--gradient-ai);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.services-grid.hidden {
    display: none;
}

.service-card {
    background: var(--surface-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-ai);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-card-icon i {
    width: 24px;
    height: 24px;
}

.service-card-icon--amber {
    background: rgba(245, 158, 11, 0.1);
    color: var(--secondary);
}

.service-card-icon--cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
}

.service-card-icon--violet {
    background: rgba(124, 58, 237, 0.1);
    color: var(--digital);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tags li {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* ============================================
   GALERIJA RADOVA
   ============================================ */
.section-gallery {
    background: var(--surface-alt);
    position: relative;
    overflow: hidden;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}

/* ---------- Lightbox Styles ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-close i {
    width: 2rem;
    height: 2rem;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

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

#lightbox-caption {
    position: absolute;
    bottom: 2rem;
    color: var(--text-muted);
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

.masonry-item {
    margin-bottom: 1.5rem;
    break-inside: avoid;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-card);
    border: 1px solid var(--border);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-height: 250px;
}

.masonry-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
    background-color: rgba(30, 41, 59, 0.5);
    /* Placeholder skeleton */
    min-height: 250px;
}

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

.masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.4s ease;
}

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

.masonry-title {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.masonry-overlay i {
    color: var(--digital);
    margin-top: 0.75rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.masonry-item:hover .masonry-title,
.masonry-item:hover .masonry-overlay i {
    transform: translateY(0);
}

/* ============================================
   WHY US
   ============================================ */
.section-why {
    background: var(--surface);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.why-card {
    position: relative;
    background: var(--surface-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition-smooth);
    overflow: hidden;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.why-card-number {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    transition: color var(--transition);
}

.why-card:hover .why-card-number {
    color: rgba(124, 58, 237, 0.08);
}

.why-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-ai);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--white);
}

.why-card-icon i {
    width: 26px;
    height: 26px;
}

.why-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   PROCESS
   ============================================ */
.section-process {
    background: var(--surface-alt);
}

.process-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--digital), var(--accent));
    border-radius: 2px;
}

.process-step {
    display: flex;
    gap: 2rem;
    position: relative;
    padding-bottom: 3rem;
    align-items: flex-start;
}

.process-step:last-child {
    padding-bottom: 0;
}

.process-step-number {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gradient-ai);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.process-step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.process-step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.process-step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.process-step-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(124, 58, 237, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--digital);
    margin-top: 0.5rem;
}

.process-step-icon i {
    width: 20px;
    height: 20px;
}

/* ============================================
   CTA BANNER
   ============================================ */
.section-cta {
    padding: 2rem 0 4rem;
    background: var(--surface-alt);
}

.cta-banner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: 4rem 3rem;
    text-align: center;
}

.cta-banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1E293B 0%, #312e81 50%, #1e1b4b 100%);
    background-size: 200% 200%;
    animation: heroGradient 10s ease infinite;
}

.cta-banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
}

.cta-banner-content {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   CONTACT
   ============================================ */
.section-contact {
    background: var(--surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-ai);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.contact-detail-icon i {
    width: 22px;
    height: 22px;
}

.contact-detail strong {
    display: block;
    font-size: 0.9rem;
    color: var(--white);
}

.contact-detail p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-detail a {
    color: var(--digital);
    font-weight: 500;
}

.contact-detail a:hover {
    color: var(--secondary);
}

/* Contact Form */
.contact-form {
    background: var(--surface-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 0.9rem;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--digital);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group option {
    background-color: var(--primary);
    color: var(--text-main);
}

.form-note {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: -0.25rem 0 1.25rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--black);
    padding: 4rem 0 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: all var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: var(--digital);
    color: var(--white);
    border-color: var(--digital);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.footer-social a i,
.footer-social a svg {
    width: 18px;
    height: 18px;
}

.footer-brand .nav-logo-img {
    height: auto;
    width: 100%;
    max-width: 240px;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5)) drop-shadow(0 0 25px rgba(124, 58, 237, 0.35)) brightness(1.4);
}

.footer-links h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-links li:not(:has(a)):hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.footer-legal {
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.anim-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-delay-1 {
    transition-delay: 0.15s;
}

.anim-delay-2 {
    transition-delay: 0.3s;
}

.anim-delay-3 {
    transition-delay: 0.45s;
}

.anim-delay-4 {
    transition-delay: 0.6s;
}

/* Glassmorphism Glow Hover */
.glow-card {
    position: relative;
    overflow: hidden;
}

.glow-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    /* Border thickness */
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(124, 58, 237, 0.7), transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
    z-index: 10;
}

.glow-card:hover::before {
    opacity: 1;
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        gap: 1rem;
    }

    .about-hub {
        width: 60px;
        height: 60px;
    }

    .about-hub-logo {
        width: 38px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .why-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section {
        padding: 4rem 0;
    }

    /* Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 0.25rem;
        transition: right var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
        width: 100%;
    }

    .nav-link:hover {
        color: var(--white) !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }

    .nav-link--cta {
        margin-top: 1rem;
        text-align: center;
        justify-content: center;
    }

    /* Hero */
    .hero {
        padding: 5rem 1.25rem 2rem;
        min-height: 100svh;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-divider {
        width: 30px;
        height: 1px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* About Visual — show on mobile with smaller cards */
    .about-visual {
        gap: 0.75rem;
    }

    .about-hub {
        width: 50px;
        height: 50px;
    }

    .about-hub-logo {
        width: 32px;
    }

    .about-segment {
        padding: 1rem 0.75rem;
        gap: 0.4rem;
    }

    .about-card {
        font-size: 0.7rem;
        padding: 0.4rem 0.65rem;
    }

    .about-card i {
        width: 14px;
        height: 14px;
    }

    .about-segment-label {
        font-size: 0.6rem;
    }

    /* Lang toggle in mobile menu */
    .nav-lang {
        margin-left: 0;
        margin-top: 1rem;
    }

    /* Services */
    .services-tabs {
        flex-direction: column;
        align-items: center;
    }

    .services-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Why */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Process */
    .process-step-icon {
        display: none;
    }

    .process-timeline::before {
        left: 28px;
    }

    /* CTA */
    .cta-banner {
        padding: 3rem 1.5rem;
    }

    /* Contact */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Small phones */
@media (max-width: 375px) {
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stat-divider {
        display: none;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
