/* ============================================
   LES RACINES - CHARCOAL DARK THEME
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --panel: #474747;
    --panel-light: #5a5a5a;
    --accent: #86C1D5;
    --accent-glow: rgba(134, 193, 213, 0.3);
    --accent-dim: rgba(134, 193, 213, 0.1);
    --text: #cacaca;
    --text-bright: #e0e0e0;
    --text-white: #ffffff;
    --glass-bg: rgba(71, 71, 71, 0.25);
    --glass-border: rgba(134, 193, 213, 0.15);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --gradient-1: linear-gradient(135deg, #86C1D5 0%, #5a9fb0 50%, #86C1D5 100%);
    --gradient-2: linear-gradient(135deg, #86C1D5, #474747);
    --gradient-3: linear-gradient(180deg, transparent, var(--bg-dark));
}

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

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

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

html::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

body {
    font-family: 'Orbitron', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Orbitron Font Loading --- */
@font-face {
    font-family: 'Orbitron';
    src: url('fonts/Orbitron-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('fonts/Orbitron-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('fonts/Orbitron-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('fonts/Orbitron-Black.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('fonts/Orbitron-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('fonts/Orbitron-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-display: swap;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-white);
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   PLEXUS BACKGROUND
   ============================================ */
#plexus-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ============================================
   CURSOR GLOW
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(134, 193, 213, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo img {
    width: 350px;
    height: 70px;
    filter: drop-shadow(0 0 8px var(--accent-glow));
    transition: filter 0.3s ease;
}

.nav-logo:hover img {
    filter: drop-shadow(0 0 16px var(--accent));
}

.logo-tagline {
    font-size: 0.55rem;
    color: var(--accent);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.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);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

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

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(11, 22, 24, 0.7) 0%,
            rgba(18, 18, 18, 0.15) 40%,
            rgba(18, 18, 18, 0.2) 70%,
            rgba(18, 18, 18, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
}

.hero-text-box {
    background: linear-gradient(to top,
            rgba(18, 18, 18, 0.95) 0%,
            rgba(18, 18, 18, 0.6) 60%,
            rgba(18, 18, 18, 0.2) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(134, 193, 213, 0.1);
    border-radius: 24px;
    padding: 60px 50px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-text-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: shimmer 4s infinite;
}

.hero-text-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: shimmer 4s infinite 2s;
}

.hero-text-box:hover {
    border-color: var(--accent);
    box-shadow: 0 0 60px rgba(134, 193, 213, 0.15), inset 0 0 60px rgba(134, 193, 213, 0.03);
    transform: translateY(-5px);
}

@keyframes shimmer {
    0% {
        left: -100%;
        right: auto;
    }

    100% {
        left: 100%;
        right: auto;
    }
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: 8px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text::before {
    color: #ff0040;
    animation: glitch-1 3s infinite linear alternate-reverse;
    clip-path: inset(0 0 60% 0);
}

.glitch-text::after {
    color: #00d4ff;
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: inset(60% 0 0 0);
}

@keyframes glitch-1 {

    0%,
    90%,
    100% {
        opacity: 0;
        transform: translate(0);
    }

    91% {
        opacity: 0.8;
        transform: translate(-3px, 1px);
    }

    93% {
        opacity: 0;
        transform: translate(0);
    }

    94% {
        opacity: 0.6;
        transform: translate(3px, -1px);
    }

    96% {
        opacity: 0;
    }
}

@keyframes glitch-2 {

    0%,
    88%,
    100% {
        opacity: 0;
        transform: translate(0);
    }

    89% {
        opacity: 0.8;
        transform: translate(3px, -1px);
    }

    91% {
        opacity: 0;
        transform: translate(0);
    }

    92% {
        opacity: 0.6;
        transform: translate(-3px, 1px);
    }

    94% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: clamp(0.85rem, 1.5vw, 1.05rem);
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline {
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 40px;
    font-weight: 500;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: var(--gradient-1);
    color: var(--bg-dark);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(134, 193, 213, 0.3);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(134, 193, 213, 0.5);
    color: var(--bg-dark);
}

.cta-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-primary:hover .cta-arrow {
    transform: translateX(5px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: float 2s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {

    0%,
    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

.hero-scroll-indicator span {
    font-size: 0.6rem;
    letter-spacing: 4px;
    color: var(--accent);
    opacity: 0.7;
}

@keyframes float {

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

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

/* ============================================
   SECTIONS
   ============================================ */
.section {
    position: relative;
    z-index: 2;
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-number {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 6px;
    margin-bottom: 16px;
    font-weight: 500;
    opacity: 0.7;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 6px;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--text-white) 50%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {

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

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

.title-line {
    width: 80px;
    height: 3px;
    margin: 0 auto;
    background: var(--gradient-1);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.title-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: line-shimmer 3s infinite;
}

@keyframes line-shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* ============================================
   GLASS PANEL (matches hero text-box)
   ============================================ */
.glass-panel {
    background: rgba(71, 71, 71, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(134, 193, 213, 0.12);
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.5, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(to top,
            rgba(18, 18, 18, 0.95) 0%,
            rgba(18, 18, 18, 0.6) 60%,
            rgba(18, 18, 18, 0.2) 100%);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: shimmer 4s infinite;
}

.glass-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: shimmer 4s infinite 2s;
}

.glass-panel:hover {
    border-color: var(--accent);
    box-shadow: 0 0 60px rgba(134, 193, 213, 0.15), inset 0 0 60px rgba(134, 193, 213, 0.03);
    transform: translateY(-5px);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: linear-gradient(to top,
            rgba(18, 18, 18, 0.95) 0%,
            rgba(18, 18, 18, 0.6) 60%,
            rgba(18, 18, 18, 0.2) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.about-card {
    padding: 50px;
}

.about-card h3 {
    font-size: 1.3rem;
    color: var(--accent);
    letter-spacing: 4px;
    margin-bottom: 24px;
    font-weight: 700;
    position: relative;
    padding-bottom: 16px;
}

.about-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.about-card p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 16px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
}


.danger-icon {
    background: rgba(255, 64, 64, 0.1);
    border-color: rgba(255, 64, 64, 0.2);
    color: #ff4040;
}

.danger-icon:hover {
    background: rgba(255, 64, 64, 0.2);
    box-shadow: 0 0 30px rgba(255, 64, 64, 0.2);
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.image-frame img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-frame:hover img {
    transform: scale(1.05);
}

.image-glow {
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--accent), transparent, var(--accent));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.image-frame:hover .image-glow {
    opacity: 0.5;
}

.about-services {
    padding: 50px;
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(134, 193, 213, 0.12);
    border-radius: 24px;
    background: linear-gradient(to top,
            rgba(18, 18, 18, 0.95) 0%,
            rgba(18, 18, 18, 0.6) 60%,
            rgba(18, 18, 18, 0.2) 100%);
}

.about-services h3 {
    font-size: 1.3rem;
    color: var(--accent);
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-services p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text);
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: linear-gradient(to top,
            rgba(13, 23, 27, 0.95) 0%,
            rgba(38, 68, 77, 0.6) 60%,
            rgba(0, 0, 0, 0.6) 100%);
}

.service-category {
    margin-bottom: 100px;
}

.service-category:last-of-type {
    margin-bottom: 0;
}

.category-header {
    margin-bottom: 30px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 4px;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(15, 54, 70, 0.8) 0%, rgba(63, 133, 173, 0.6) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.category-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px 0 0 4px;
}

.category-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(134, 193, 213, 0.1), transparent);
    animation: category-shimmer 4s infinite;
}

@keyframes category-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.category-icon {
    width: 50px;
    height: 50px;
    min-width: 44px;
    border-radius: 12px;
    background: var(--accent-dim);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.category-icon svg {
    width: 35px;
    height: 35px;
}

.category-intro {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text);
    max-width: 980px;
    margin: 0 auto 50px;
    padding: 30px;
    background: linear-gradient(to top,
            rgba(18, 18, 18, 0.95) 0%,
            rgba(18, 18, 18, 0.95) 60%,
            rgba(18, 18, 18, 0.95) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* text panel below Image Content heading: 3 columns x 2 rows */
.image-text-panel {
    width: 100%;
    margin-bottom: 30px;
    padding: 45px 50px;
}

.image-text-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 40px 50px;
}

.image-text-cell h4 {
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-weight: 700;
}

.image-text-cell p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
}

.service-card {
    position: relative;
    min-height: 480px;
    cursor: pointer;
    overflow: hidden;
}

.service-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.8;
    transition: all 0.5s cubic-bezier(1, 1, 1, 1);
}

.service-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.service-card:hover .service-card-bg {
    opacity: 1;
}

.service-card:hover .service-card-bg img {
    filter: grayscale(0%) contrast(1) brightness(1.1);
    transform: scale(1.1);
}

.service-card-content {
    position: relative;
    z-index: 1;
    padding: 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top,
            rgba(18, 18, 18, 1) 0%,
            rgba(18, 18, 18, 0.6) 50%,
            rgba(18, 18, 18, 0) 100%);
}

.service-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 25px;
    transition: all 0.3s ease;
}

.service-card:hover .service-number {
    opacity: 0.5;
    transform: translate(-5px, -5px);
}

.service-card-content h4 {
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.service-card:hover .service-card-content h4 {
    color: var(--text-white);
}

.service-card-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    transition: color 0.3s ease;
}

.service-card:hover .service-card-content p {
    color: var(--text-bright);
}

.service-hover-line {
    height: 2px;
    background: var(--gradient-1);
    width: 0;
    margin-top: 20px;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-hover-line {
    width: 100%;
}

/* dashboard + research + website example cards under Content Creation */
.dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 30px;
}

.dashboard-grid .service-card {
    min-height: 420px;
    border-radius: 24px;
    border: 1px solid rgba(134, 193, 213, 0.12);
    transition: border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-grid .service-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    background: var(--bg-dark);
    border-top: 1px solid rgba(134, 193, 213, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px;
}

.dashboard-grid .service-card-content .service-hover-line {
    display: none;
}

.dashboard-grid .service-card-content .card-open-tag {
    margin: 0;
}

.dashboard-grid .service-card:hover .service-card-bg {
    opacity: 1;
}

.dashboard-grid .service-card-bg img {
    filter: none;
}

.dashboard-grid .service-card:hover .service-card-bg img {
    filter: none;
    transform: scale(1.06);
}

.card-open-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--accent);
    border: 1px solid var(--accent);
    color: var(--bg-dark);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
}

.card-open-tag svg {
    width: 15px;
    height: 15px;
}

.service-card:hover .card-open-tag {
    background: var(--text-white);
    border-color: var(--text-white);
    color: var(--bg-dark);
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(134, 193, 213, 0.45);
}

/* ============================================
   AUDIO GRID
   ============================================ */
.audio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.audio-card {
    min-height: 200px;
    display: flex;
    align-items: flex-end;
}

.audio-card-content {
    padding: 35px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;   
}

.audio-card-content h4 {
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-weight: 700;
}

.audio-card-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 16px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
}

.audio-card-content audio {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: hue-rotate(200deg) saturate(0.8);
}

.audio-card-content audio:hover {
    opacity: 1;
}

.audio-card-content audio::-webkit-media-controls-panel {
    background: rgba(71, 71, 71, 0.5);
}

/* ============================================
   VIDEO GRID
   ============================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.video-card {
    min-height: 350px;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.8;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail video {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-play-overlay {
    opacity: 1;
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    transition: all 0.3s ease;
    box-shadow: 0 0 40px rgba(134, 193, 213, 0.4);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 60px rgba(134, 193, 213, 0.6);
}

.play-btn svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.video-card-content {
    padding: 35px;
}

.video-card-content h4 {
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-weight: 700;
}

.video-card-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
}

/* ============================================
   VIDEO INTRO PANEL
   ============================================ */
.video-intro {
    width: 100%;
    padding: 45px 50px;
}

.video-intro p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
}

/* ============================================
   VIDEO GALLERY (puzzle / mosaic)
   ============================================ */
.video-gallery {
    width: 100%;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 18px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    background: rgba(18, 18, 18, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    aspect-ratio: 1 / 1;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s ease;
}

/* all panels square / equal height */
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #2a2a2a;
    display: block;
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(134, 193, 213, 0.35);
    filter: saturate(0.9) brightness(0.9);
    transform: scale(1.0);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.6s ease;
}

/* darkening gradient base layer */
.gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(18, 18, 18, 0.0) 0%,
        rgba(18, 18, 18, 0.55) 100%);
    z-index: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* sweeping light line on hover */
.gallery-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg,
        transparent 0%,
        rgba(134, 193, 213, 0.25) 50%,
        transparent 100%);
    z-index: 2;
    transform: skewX(-18deg);
    transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(134, 193, 213, 0.25);
}

.gallery-item:hover::before {
    opacity: 0.55;
}

.gallery-item:hover::after {
    left: 130%;
}

.gallery-item:hover video {
    transform: scale(1.12);
    filter: saturate(1.1) brightness(1);
}

/* overlay content */
.gallery-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    pointer-events: none;
}

.gallery-index {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease 0.05s, transform 0.45s ease 0.05s;
}

.gallery-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
    margin-top: 6px;
    transform: translateY(16px);
    opacity: 0;
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.gallery-item:hover .gallery-index,
.gallery-item:hover .gallery-title {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: linear-gradient(to top,
            rgba(18, 18, 18, 0.95) 0%,
            rgba(18, 18, 18, 0.6) 60%,
            rgba(18, 18, 18, 0.2) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--accent);
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-info p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 30px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(71, 71, 71, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text);
    transition: all 0.3s ease;
    font-family: 'Segoe UI', sans-serif;
}

.contact-link:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateX(8px);
}

.contact-link svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex-shrink: 0;
    color: var(--accent);
}

.contact-form {
    padding: 50px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-bright);
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent);
}

.form-group label {
    position: absolute;
    left: 0;
    top: 16px;
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -8px;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 2px;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus~.form-line,
.form-group textarea:focus~.form-line {
    width: 100%;
}

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

.contact-form .cta-primary {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 2;
    padding: 60px 0 30px;
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-nav a {
    color: var(--text);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-nav a:hover::after {
    width: 100%;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text);
    opacity: 0.5;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
}

.footer-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(134, 193, 213, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(134, 193, 213, 0.3);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .audio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .image-text-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--glass-border);
    }

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

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

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

    .video-intro {
        padding: 30px;
    }

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

    .hero-text-box {
        padding: 40px 25px;
    }

    .about-card,
    .about-services,
    .contact-info,
    .contact-form {
        padding: 30px;
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .footer-nav {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: 4px;
    }

    .category-title {
        font-size: 1rem;
        padding: 16px 20px;
    }

    .category-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .category-icon svg {
        width: 18px;
        height: 18px;
    }
}