/* ============================================
   THEVERTECH - COMPLETE CSS WITH PERFECT DARK/LIGHT THEME
   Version: 3.0 - All Sections Fixed
   ============================================ */

/* ============================================
   CSS VARIABLES & THEME SYSTEM
   ============================================ */

/* DEFAULT THEME: DARK MODE */
:root {
    /* Brand Colors (Theme Independent) */
    --gradient-start: #cd01fd;
    --gradient-end: #580166;
    --gradient-primary: linear-gradient(135deg, #cd01fd 0%, #580166 100%);

    /* Dark Theme Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #151515;
    --bg-tertiary: #1a1a1a;
    --bg-elevated: #202020;

    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-tertiary: #888888;

    --border-light: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(205, 1, 253, 0.2);

    --overlay-light: rgba(0, 0, 0, 0.5);
    --overlay-medium: rgba(0, 0, 0, 0.7);
    --overlay-heavy: rgba(0, 0, 0, 0.9);

    /* Shadows for Dark Theme */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 8px 32px rgba(205, 1, 253, 0.2);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Exo 2', sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --section-padding-mobile: 60px;

    /* Effects */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-quick: all 0.3s ease;
    --transition-theme: all 0.3s ease-in-out;
}

/* LIGHT THEME */
body.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --bg-elevated: #ffffff;

    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;

    --border-light: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.12);
    --border-accent: rgba(205, 1, 253, 0.15);

    --overlay-light: rgba(255, 255, 255, 0.5);
    --overlay-medium: rgba(255, 255, 255, 0.7);
    --overlay-heavy: rgba(255, 255, 255, 0.9);

    /* Shadows for Light Theme */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 8px 32px rgba(205, 1, 253, 0.15);
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--bg-primary);
    transition: var(--transition-theme);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: var(--transition-theme);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    transition: var(--transition-theme);
}

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

/* ============================================
   GRADIENT TEXT UTILITY
   ============================================ */
.gradient-text,
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ============================================
   SECTION UTILITIES
   ============================================ */
section {
    padding: var(--section-padding) 0;
    position: relative;
    background: var(--bg-primary);
    transition: var(--transition-theme);
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gradient-start);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-family: var(--font-secondary);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-end) 0%, var(--gradient-start) 100%);
    z-index: -1;
    transition: var(--transition-smooth);
    opacity: 0;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(205, 1, 253, 0.35);
    color: #ffffff;
}

.btn-outline-light,
.btn-outline-white {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.btn-outline-light:hover,
.btn-outline-white:hover {
    background: var(--bg-elevated);
    border-color: var(--gradient-start);
    color: var(--text-primary);
}

.btn-gradient {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(205, 1, 253, 0.4);
    color: #ffffff;
}

/* ============================================
   PRELOADER - MODERN LOGO ANIMATION
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

/* Logo Container */
.logo-container {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo Image */
.loader-logo {
    width: 300px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: logoFadeIn 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(205, 1, 253, 0.6));
}

/* Animated Glow Effect - Ripple from Center */
.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    animation: rippleExpand 2s ease-out infinite;
    z-index: 1;
}

/* Add multiple ripples for better effect */
.logo-container::before,
.logo-container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    z-index: 1;
}

.logo-container::before {
    animation: rippleExpand 2s ease-out infinite;
    animation-delay: 0.7s;
}

.logo-container::after {
    animation: rippleExpand 2s ease-out infinite;
    animation-delay: 1.4s;
}

/* Loading Bar Container */
.loading-bar-container {
    width: 280px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

/* Loading Bar */
.loading-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    animation: loadingProgress 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(205, 1, 253, 0.6);
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: loadingShine 1.5s ease-in-out infinite;
}

/* Loading Text */
.loading-text {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: textPulse 2s ease-in-out infinite;
}

/* Animations */
@keyframes logoFadeIn {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.85;
        transform: scale(1.05);
    }
}

@keyframes rippleExpand {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

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

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

@keyframes textPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo-container {
        width: 250px;
        height: 250px;
    }

    .loader-logo {
        width: 220px;
    }

    .loading-bar-container {
        width: 220px;
    }

    .loading-text {
        font-size: 0.875rem;
    }
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
/* ============================================
   FAB SPEED DIAL
   ============================================ */
.fab-dial {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Action buttons stack */
.fab-actions {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    pointer-events: none;
}

/* Each action button */
.fab-action {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-medium);
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    /* Start hidden — translated down behind trigger */
    opacity: 0;
    transform: translateY(20px) scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease,
        border-color 0.25s ease, box-shadow 0.25s ease;
    transition-delay: 0s;
    pointer-events: none;
}

/* WhatsApp gets brand green */
.fab-action.fab-whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: #ffffff;
}

.fab-action.fab-whatsapp:hover {
    background: #1ebe5d;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    color: #ffffff;
}

/* Default action hover */
.fab-action:not(.fab-whatsapp):hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(205, 1, 253, 0.4);
}

/* Tooltip */
.fab-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.fab-action:hover .fab-tooltip {
    opacity: 1;
}

/* Main trigger */
.fab-trigger {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 28px rgba(205, 1, 253, 0.45);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.fab-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 36px rgba(205, 1, 253, 0.55);
}

/* Trigger icon swap */
.fab-trigger-icon,
.fab-trigger-close {
    position: absolute;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.fab-trigger-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
}

/* ── OPEN STATE ── */
.fab-dial.is-open .fab-actions {
    pointer-events: auto;
}

.fab-dial.is-open .fab-action {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Stagger each button */
.fab-dial.is-open .fab-action:nth-child(1) {
    transition-delay: 0.05s;
}

.fab-dial.is-open .fab-action:nth-child(2) {
    transition-delay: 0.1s;
}

.fab-dial.is-open .fab-action:nth-child(3) {
    transition-delay: 0.15s;
}

/* Trigger rotates */
.fab-dial.is-open .fab-trigger {
    transform: scale(1.05);
}

.fab-dial.is-open .fab-trigger-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}

.fab-dial.is-open .fab-trigger-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Theme icon states (moon/sun) */
.moon-icon {
    color: #a78bfa;
    opacity: 1;
    transform: scale(1);
}

.sun-icon {
    color: #ffa500;
    opacity: 0;
    transform: scale(0) rotate(-90deg);
}

body.light-theme .moon-icon {
    opacity: 0;
    transform: scale(0) rotate(90deg);
}

body.light-theme .sun-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Scroll-to-top visibility — always shown once user scrolled */
#fabScrollTop {
    display: flex;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .fab-dial {
        bottom: 20px;
        right: 20px;
    }

    .fab-trigger {
        width: 52px;
        height: 52px;
    }

    .fab-action {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    /* Hide tooltips on mobile — too cramped */
    .fab-tooltip {
        display: none;
    }
}

/* ============================================
   NAVBAR
   ============================================ */
/* ============================================
   NAVBAR LOGO SYSTEM
   ============================================ */
.navbar-brand {
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    transition: var(--transition-smooth);
}

/* Default: Dark theme shows logo-on-black (white text) */
.navbar-brand .logo-dark {
    display: block;
}

.navbar-brand .logo-light {
    display: none;
}

/* Light theme shows logo-on-white (purple text) */
body.light-theme .navbar-brand .logo-dark {
    display: none;
}

body.light-theme .navbar-brand .logo-light {
    display: block;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar {
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: var(--bg-elevated);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.navbar-brand {
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 8px 20px !important;
    margin: 0 5px;
    transition: var(--transition-quick);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border: none;
    padding: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(205, 1, 253, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO SECTION
   ============================================ */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 90px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 80px;
    }
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
    padding-top: 100px;
}

.hero-dark-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(205, 1, 253, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content-centered {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-tagline {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gradient-start);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-main-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

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

.hero-stats-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem;
    background: var(--bg-elevated);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.hero-rotating-word-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    height: 1.15em;
    position: relative;
}

.hero-rotating-word {
    display: flex;
    flex-direction: column;
    transition: transform 0.65s cubic-bezier(0.77, 0, 0.18, 1);
}

.hero-rotating-word .word {
    display: block;
    line-height: 1.15;
    white-space: nowrap;
}

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

.stat-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border-light);
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    will-change: transform;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-start);
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-end);
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-start);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--border-medium);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--gradient-start);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Fade Up Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.strength-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.strength-item:hover {
    transform: translateX(10px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
}

.strength-item i {
    color: var(--gradient-start);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.strength-item h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.strength-item p {
    color: var(--text-secondary);
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-box h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-box p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* New */
.vm-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

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

.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-medium);
}

.vm-icon-wrapper {
    margin-bottom: 1.5rem;
}

.vm-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(205, 1, 253, 0.1) 0%, rgba(88, 1, 102, 0.1) 100%);
    border: 2px solid var(--border-accent);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.vm-card:hover .vm-icon {
    background: var(--gradient-primary);
    border-color: transparent;
}

.vm-icon i {
    font-size: 1.75rem;
    color: var(--gradient-start);
    transition: var(--transition-smooth);
}

.vm-card:hover .vm-icon i {
    color: #ffffff;
}

.vm-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.vm-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

/* New */

/* ============================================
   LEADERSHIP MESSAGES
   ============================================ */
.leadership-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition-smooth);
}

.leadership-card:hover {
    box-shadow: var(--shadow-md);
}

.leadership-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(205, 1, 253, 0.1) 0%, rgba(88, 1, 102, 0.1) 100%);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.leadership-badge i {
    font-size: 1rem;
    color: var(--gradient-start);
}

.leadership-badge span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gradient-start);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leadership-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.leadership-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.leadership-content p:last-child {
    margin-bottom: 0;
}

.leadership-signature {
    color: var(--text-primary) !important;
    font-weight: 500;
    font-style: italic;
    padding-top: 1rem;
    margin-top: 1.5rem !important;
    border-top: 1px solid var(--border-light);
}

/* ============================================
   OUR TEAM SECTION
   ============================================ */
/* ============================================
   TEAM SECTION — PREMIUM REDESIGN
   ============================================ */

.team-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding: 100px 0 120px;
}

/* Ambient glow orbs */
.team-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.team-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(205, 1, 253, 0.12) 0%, transparent 70%);
    top: -100px;
    left: -150px;
}

.team-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(88, 1, 102, 0.15) 0%, transparent 70%);
    bottom: 0;
    right: -100px;
}

.team-section .container {
    position: relative;
    z-index: 1;
}

.team-header-block {
    margin-bottom: 4rem !important;
}

/* ── LEADERSHIP CARDS ── */
.team-leadership-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.team-leader-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem;
    overflow: hidden;
    transition: var(--transition-smooth);
}

/* Animated gradient border on hover via pseudo */
.team-leader-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.team-leader-card:hover::before {
    opacity: 1;
}

/* Subtle top-left accent stripe */
.team-leader-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 24px 0 0 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-leader-card:hover::after {
    opacity: 1;
}

.team-leader-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(205, 1, 253, 0.15);
    border-color: rgba(205, 1, 253, 0.25);
    background: var(--bg-elevated);
}

/* Photo wrap with spinning ring */
.tlc-photo-wrap {
    position: relative;
    flex-shrink: 0;
}

.tlc-photo-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #cd01fd, #580166, #cd01fd);
    animation: spin-ring 6s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-leader-card:hover .tlc-photo-ring {
    opacity: 1;
}

@keyframes spin-ring {
    to {
        transform: rotate(360deg);
    }
}

.tlc-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: var(--bg-tertiary);
    border: 3px solid var(--bg-primary);
    z-index: 1;
}

.tlc-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.team-leader-card:hover .tlc-photo img {
    transform: scale(1.06);
}

/* Role badge below photo */
.tlc-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(205, 1, 253, 0.4);
}

/* Info side */
.tlc-info {
    flex: 1;
    min-width: 0;
}

.tlc-name {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.tlc-bio {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* Social links */
.tlc-socials {
    display: flex;
    gap: 0.6rem;
}

.tlc-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition-quick);
}

.tlc-social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(205, 1, 253, 0.35);
}

/* ── DIVIDER LABEL ── */
.team-grid-label {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.team-grid-label span {
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.team-grid-label p {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin: 0;
}

/* ── TEAM MEMBERS GRID ── */
.team-members-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

/* Individual member card */
.tmc-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.tmc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

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

.tmc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(205, 1, 253, 0.12);
    border-color: rgba(205, 1, 253, 0.2);
    background: var(--bg-elevated);
}

/* Avatar */
.tmc-avatar-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 1.25rem;
}

.tmc-avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tmc-card:hover .tmc-avatar-ring {
    opacity: 1;
}

.tmc-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-tertiary);
    position: relative;
    z-index: 1;
    border: 3px solid var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tmc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.tmc-card:hover .tmc-avatar img {
    transform: scale(1.08);
}

.tmc-avatar-placeholder {
    background: linear-gradient(135deg, rgba(205, 1, 253, 0.2), rgba(88, 1, 102, 0.3));
}

.tmc-avatar-placeholder i {
    font-size: 2.2rem;
    color: rgba(205, 1, 253, 0.5);
}

/* Body */
.tmc-body {
    flex: 1;
    margin-bottom: 1.25rem;
}

.tmc-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.tmc-role {
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--gradient-primary);
    background-clip: text;
    display: block;
    line-height: 1.4;
    /* color: #cd01fd;
    opacity: 0.8; */
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* LinkedIn button */
.tmc-linkedin {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: var(--transition-quick);
    margin-top: auto;
    transform: translateY(4px);
    opacity: 0;
}

.tmc-card:hover .tmc-linkedin {
    opacity: 1;
    transform: translateY(0);
}

.tmc-linkedin:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(205, 1, 253, 0.35);
}

.tmc-linkedin-inactive {
    pointer-events: none;
    opacity: 0 !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 1199px) {
    .team-members-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .team-leadership-row {
        grid-template-columns: 1fr;
    }

    .team-members-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .team-section {
        padding: 60px 0 80px;
    }

    .team-leader-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .tlc-socials {
        justify-content: center;
    }

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

@media (max-width: 480px) {
    .team-members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   APPROACH/WORKFLOW SECTION - FIXED
   ============================================ */
.approach-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.approach-dark-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(205, 1, 253, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.workflow-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.workflow-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.workflow-step {
    position: relative;
    text-align: center;
    padding: 1.5rem;
}

.step-circle {
    width: 120px;
    height: 120px;
    background: var(--bg-elevated);
    border: 3px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition-smooth);
    position: relative;
}

.workflow-step:hover .step-circle {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
    border-color: var(--gradient-start);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.step-icon i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.workflow-connector {
    display: none;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: var(--bg-secondary);
}

.service-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.03;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-accent);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.service-features span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features i {
    color: var(--gradient-start);
    font-size: 0.75rem;
}

/* ============================================
   TOOLS SECTION - FIXED WITH MARQUEE
   ============================================ */
.tools-section {
    background: var(--bg-primary);
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 2rem;
}

.marquee-content {
    display: flex;
    gap: 2rem;
    animation: marquee-left 40s linear infinite;
}

.marquee-right .marquee-content {
    animation: marquee-right 40s linear infinite;
}

@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }

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

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

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

.marquee:hover .marquee-content {
    animation-play-state: paused;
}

.tool-badge {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    min-width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.tool-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-accent);
}

.tool-badge i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-badge span {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio-section {
    background: var(--bg-secondary);
}

/* Filter Buttons */
.portfolio-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* IMPORTANT FIX: Remove CSS Grid */
.portfolio-grid {
    margin: 0;
}

/* Portfolio Card */
.portfolio-card {
    background: var(--bg-elevated);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-light);
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Image */
.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

/* Overlay */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(205, 1, 253, 0.95) 0%, rgba(88, 1, 102, 0.98) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    gap: 6px;
    transition: var(--transition-smooth);
    transform: translateY(6px);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 0.93;
    transform: translateY(0);
}

/* Also update the content wrapper */
.portfolio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.portfolio-content h3 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.portfolio-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    font-size: 0.85rem;
}

.portfolio-stat {
    display: block;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 3px 12px;
    border-radius: 20px;
    margin-top: 2px;
}

.view-project-btn {
    background: #ffffff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    margin-top: 10px;
    flex-shrink: 0;
}

.view-project-btn i {
    color: var(--gradient-start);
}

.view-project-btn:hover {
    transform: scale(1.1);
}

/* ============================================
   SUCCESS METRICS
   ============================================ */

.success-metrics {
    margin-top: 4rem;
}

.metric-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.metric-card.active {
    background: var(--gradient-primary);
    border-color: transparent;
}

.metric-card.active h3,
.metric-card.active .metric-value,
.metric-card.active .metric-label {
    color: #ffffff;
}

/* Fix Typography */
.metric-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
    background: var(--bg-primary);
}

/* Wrapper */
.testimonials-carousel-wrapper {
    position: relative;
    margin: 0 auto;
    padding: 0 70px;
}

/* Carousel */
.testimonials-carousel {
    overflow: hidden;
    border-radius: 20px;
}

/* Track */
.testimonials-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* Each Slide - Desktop (3 cards) */
.testimonial-card-item {
    flex: 0 0 calc(33.3333% - 13.33px);
    /* Account for gap */
    max-width: calc(33.3333% - 13.33px);
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    transition: var(--transition-smooth);
}

.testimonial-card-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--gradient-start);
}

/* Quote */
.quote-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.quote-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

/* Text */
.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
    min-height: 120px;
}

.testimonial-divider {
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 1.5rem 0;
}

.testimonial-author {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.testimonial-stars {
    color: #ffa500;
    font-size: 1rem;
    margin-top: 1.25rem;
}

.testimonial-stars i {
    margin-right: 0.25rem;
}

/* Footer row: avatar + name/role + LinkedIn */
.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

/* Initials avatar */
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(205, 1, 253, 0.3);
}

.testimonial-author-info {
    flex: 1;
    min-width: 0;
}

.testimonial-author {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-role {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* LinkedIn button on card */
.testimonial-linkedin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: var(--transition-quick);
    text-decoration: none;
}

.testimonial-linkedin:hover {
    background: #0077b5;
    border-color: transparent;
    color: #ffffff;
    transform: scale(1.1);
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-primary);
    z-index: 10;
}

.testimonial-nav:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav.prev {
    left: 0;
}

.testimonial-nav.next {
    right: 0;
}

/* Indicators */
.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.testimonial-indicators .dot {
    width: 12px;
    height: 12px;
    background: var(--border-medium);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-indicators .dot.active {
    background: var(--gradient-start);
    width: 30px;
    border-radius: 6px;
}

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

/* Tablet - 2 cards */
@media (max-width: 992px) {
    .testimonials-carousel-wrapper {
        padding: 0 60px;
    }

    .testimonial-card-item {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
        padding: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
        min-height: auto;
    }

    .testimonial-nav {
        width: 45px;
        height: 45px;
    }
}

/* Mobile - 1 card */
@media (max-width: 768px) {
    .testimonials-carousel-wrapper {
        padding: 0 50px;
    }

    .testimonial-card-item {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 2rem;
    }

    .testimonial-text {
        min-height: auto;
        margin-bottom: 1.25rem;
    }

    .quote-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1.25rem;
    }

    .quote-icon i {
        font-size: 1.25rem;
    }

    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .testimonial-nav.prev {
        left: 5px;
    }

    .testimonial-nav.next {
        right: 5px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .testimonials-carousel-wrapper {
        padding: 0 40px;
    }

    .testimonial-card-item {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .testimonial-author {
        font-size: 1rem;
    }

    .testimonial-role {
        font-size: 0.875rem;
    }

    .testimonial-indicators {
        margin-top: 2rem;
    }

    .testimonial-indicators .dot {
        width: 10px;
        height: 10px;
    }

    .testimonial-indicators .dot.active {
        width: 24px;
    }
}


/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: var(--bg-primary);
    position: relative;
}

/* Gradient Box */
.cta-gradient-bg {
    background: var(--gradient-primary);
    border-radius: 30px;
    padding: 5rem 3rem;
    position: relative;
    overflow: hidden;
}

/* Decorative Blobs */
.cta-gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-gradient-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
}

/* Content */
.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

/* Title */
.cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Text */
.cta-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

/* Button */
.cta-content .btn {
    background: #ffffff;
    color: var(--gradient-end);
    font-size: 1.125rem;
    padding: 16px 40px;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.cta-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* ============================================
   CONTACT SECTION - REDESIGNED
   ============================================ */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.contact-card:hover::before {
    opacity: 0.05;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--gradient-start);
    box-shadow: var(--shadow-glow);
}

.contact-card-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
    z-index: 1;
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-card-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.contact-card h3 {
    position: relative;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    z-index: 1;
}

.contact-card p {
    position: relative;
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    word-break: break-all;
    z-index: 1;
}

.contact-arrow {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    transition: var(--transition-smooth);
    z-index: 1;
}

.contact-card:hover .contact-arrow {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateX(5px);
}

.contact-arrow i {
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.contact-card:hover .contact-arrow i {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 2.5rem 2rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */
/* ============================================
   FOOTER LOGO SYSTEM
   ============================================ */
/* ============================================
   FOOTER — REDESIGNED
   ============================================ */

/* Logo display logic (theme-aware) */
.footer-logo img {
    height: 45px;
    width: auto;
}

.footer-logo .logo-dark {
    display: block;
}

.footer-logo .logo-light {
    display: none;
}

body.light-theme .footer-logo .logo-dark {
    display: none;
}

body.light-theme .footer-logo .logo-light {
    display: block;
}

/* ── Main body ── */
.footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-light);
}

.footer-main {
    padding: 5rem 0 4rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    max-width: 320px;
}

/* Heading */
.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-quick);
    text-decoration: none;
}

.footer-links a i {
    font-size: 0.6rem;
    color: var(--gradient-start);
    opacity: 0;
    transform: translateX(-4px);
    transition: var(--transition-quick);
}

.footer-links a:hover {
    color: var(--gradient-start);
    padding-left: 4px;
}

.footer-links a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Contact list */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(205, 1, 253, 0.1);
    border: 1px solid rgba(205, 1, 253, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-icon i {
    font-size: 0.9rem;
    color: var(--gradient-start);
}

.footer-contact-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 0.15rem;
}

.footer-contact a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-quick);
    word-break: break-all;
}

.footer-contact a:hover {
    color: var(--gradient-start);
}

/* Social icons */
.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(205, 1, 253, 0.3);
}

/* ── Bottom legal bar ── */
.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 1.1rem 0;
    background: var(--bg-primary);
}

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

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.82rem;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: var(--text-tertiary);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--gradient-start);
}

.footer-legal-sep {
    color: var(--border-medium);
    font-size: 0.75rem;
    user-select: none;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .footer-main {
        padding: 3.5rem 0 2.5rem;
    }

    .footer-text {
        max-width: 100%;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* ============================================
   PROJECT MODAL
   ============================================ */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    overflow-y: auto;
}

.project-modal.active {
    display: block;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-heavy);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.modal-container {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
    background: var(--bg-elevated);
    border-radius: 30px;
    overflow: hidden;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: rotate(90deg);
}

.modal-close i {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.modal-close:hover i {
    color: #ffffff;
}

.modal-header-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.modal-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Gradient overlay with title baked in */
.modal-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 3rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.modal-header-overlay .project-category {
    margin-bottom: 0;
    align-self: flex-start;
}

.modal-header-overlay .project-title {
    color: #ffffff !important;
    margin-bottom: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Achievements list */
.modal-achievements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.modal-achievements-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.modal-achievements-list li i {
    color: var(--gradient-start);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.modal-achievements-list li span {
    flex: 1;
}

/* Live demo link */
.modal-live-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    color: var(--gradient-start);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-quick);
    word-break: break-all;
}

.modal-live-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #ffffff;
    transform: translateX(4px);
}

.modal-live-link i {
    flex-shrink: 0;
}

.modal-body {
    padding: 3rem;
}

.project-category {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.project-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.project-section {
    margin-bottom: 2.5rem;
}

.section-heading {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-heading i {
    color: var(--gradient-start);
}

.project-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.project-sidebar {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    position: sticky;
    top: 20px;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-section:last-of-type {
    border-bottom: none;
}

.sidebar-section h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-section h4 i {
    color: var(--gradient-start);
}

.sidebar-section p {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.result-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result-icon i {
    font-size: 1.25rem;
    color: #ffffff;
}

.result-content h5 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.result-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.modal-cta {
    margin-top: 2rem;
}

/* ============================================
   MODAL IMAGE SLIDER
   ============================================ */

/* Hide slider by default, show single image */
.modal-slider {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.modal-single-img {
    display: block;
}

/* When slider is active */
.modal-header-image.has-slider .modal-single-img {
    display: none;
}

.modal-header-image.has-slider .modal-slider {
    display: block;
}

/* Slider track */
.modal-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.modal-slider-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Arrows */
.modal-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    /* shift up slightly to clear dots */
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition-quick);
    backdrop-filter: blur(6px);
    font-size: 0.85rem;
}

.modal-slider-prev {
    left: 16px;
}

.modal-slider-next {
    right: 16px;
}

.modal-slider-arrow:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-60%) scale(1.08);
}

/* Dots */
.modal-slider-dots {
    position: absolute;
    bottom: 80px;
    /* sits above the overlay title area */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 5;
}

.modal-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition-quick);
}

.modal-slider-dot.active {
    background: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(205, 1, 253, 0.6);
}

/* ============================================
   MODAL HEADER — MOBILE FIX
   ============================================ */

@media (max-width: 768px) {

    /* Reduce header height a bit more cleanly */
    .modal-header-image {
        height: 220px !important;
    }

    .modal-header-image.has-slider {
        height: 340px !important;
    }

    /* Tighten overlay padding */
    .modal-header-overlay {
        padding: 1.25rem 1.25rem 1rem;
        gap: 0.35rem;
    }

    /* Shrink category badge */
    .modal-header-overlay .project-category {
        font-size: 0.65rem;
        padding: 4px 10px;
        letter-spacing: 1px;
    }

    /* Shrink title */
    .modal-header-overlay .project-title {
        font-size: 1.2rem;
        line-height: 1.25;
    }

    /* Smaller slider arrows, don't overlap text */
    .modal-slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
        top: 45%;
    }

    .modal-slider-prev {
        left: 10px;
    }

    .modal-slider-next {
        right: 10px;
    }

    /* Push dots up less aggressively */
    .modal-slider-dots {
        bottom: 60px;
        gap: 5px;
    }

    .modal-slider-dot {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {

    .modal-header-image {
        height: 190px !important;
    }

    .modal-header-image.has-slider {
        height: 280px !important;
    }

    .modal-header-overlay .project-title {
        font-size: 1rem;
    }

    .modal-slider-dots {
        bottom: 52px;
    }

    /* Keep arrows out of the text zone */
    .modal-slider-arrow {
        top: 38%;
    }
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

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

@media (max-width: 992px) {
    :root {
        --section-padding: 60px;
    }

    .hero-stats-row {
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .workflow-steps {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .modal-container {
        margin: 20px;
    }

    .modal-body {
        padding: 2rem;
    }

    .project-sidebar {
        margin-top: 2rem;
        position: static;
    }

    .testimonials-carousel-wrapper {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta-buttons .btn {
        width: 100%;
    }

    .service-card {
        padding: 2rem;
    }

    .portfolio-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    .cta-gradient-bg {
        padding: 3rem 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .modal-header-image {
        height: 250px;
    }

    .testimonials-carousel-wrapper {
        padding: 0 40px;
    }

    .testimonial-nav {
        width: 40px;
        height: 40px;
    }

    .testimonial-card-item {
        padding: 2rem;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .step-circle {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .stat-column {
        min-width: 100px;
    }

    .hero-stats-row {
        padding: 1.5rem;
    }

    .stats-grid,
    .metrics-row {
        grid-template-columns: 1fr;
    }

    .testimonial-card-item {
        padding: 1.5rem;
    }

    .section-heading {
        font-size: 1.25rem;
    }

    .tool-badge {
        min-width: 150px;
        padding: 1.25rem 1.5rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles — only show outline for keyboard nav, not mouse clicks */
a:focus,
button:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gradient-start);
    outline-offset: 3px;
    border-radius: 4px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--gradient-start);
    outline-offset: 2px;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    :root {
        --border-light: rgba(255, 255, 255, 0.3);
        --border-medium: rgba(255, 255, 255, 0.5);
    }

    body.light-theme {
        --border-light: rgba(0, 0, 0, 0.3);
        --border-medium: rgba(0, 0, 0, 0.5);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .navbar,
    .fab-dial,
    .scroll-indicator,
    .floating-shapes,
    .cta-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.hide {
    transform: translateY(100%);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.cookie-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.cookie-text h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-cookie-reject {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-medium);
}

.btn-cookie-reject:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-cookie-accept {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(205, 1, 253, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
    .cookie-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.25rem;
    }

    .cookie-icon {
        margin: 0 auto;
    }

    .cookie-actions {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .cookie-banner {
        padding: 1.25rem;
    }

    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .cookie-text h4 {
        font-size: 1rem;
    }

    .cookie-text p {
        font-size: 0.85rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {

    .vm-card,
    .leadership-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {

    .vm-card,
    .leadership-card {
        padding: 1.5rem;
    }

    .leadership-content p {
        font-size: 0.9rem;
    }

    .vm-icon {
        width: 50px;
        height: 50px;
    }

    .vm-icon i {
        font-size: 1.5rem;
    }

}

/* ============================================
   MOBILE HAMBURGER BUTTON
   ============================================ */
.mobile-menu-btn {
    background: rgba(205, 1, 253, 0.08);
    border: 1px solid rgba(205, 1, 253, 0.2);
    color: var(--gradient-start);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-quick);
    padding: 0;
}

.mobile-menu-btn:hover,
.mobile-menu-btn.open {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(205, 1, 253, 0.35);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
    transform-origin: center;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   OFFCANVAS NAV OVERLAY
   ============================================ */
.nav-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
}

.nav-offcanvas.open {
    pointer-events: all;
}

/* Backdrop */
.nav-offcanvas-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-offcanvas.open .nav-offcanvas-backdrop {
    opacity: 1;
}

/* Slide Panel */
.nav-offcanvas-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(340px, 88vw);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-light);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

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

/* Panel Header */
.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border-light);
}

.offcanvas-logo {
    height: 36px;
    width: auto;
}

.offcanvas-close {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-quick);
    flex-shrink: 0;
}

.offcanvas-close:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

/* Nav Links */
.offcanvas-nav {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    flex: 1;
}

.offcanvas-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.75rem;
    color: var(--text-secondary);
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: var(--transition-quick);
    position: relative;
}

.offcanvas-link span {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gradient-start);
    opacity: 0.6;
    letter-spacing: 1px;
    min-width: 20px;
}

.offcanvas-link:hover,
.offcanvas-link.active {
    color: var(--text-primary);
    border-left-color: var(--gradient-start);
    background: linear-gradient(90deg, rgba(205, 1, 253, 0.06) 0%, transparent 100%);
    padding-left: 2rem;
}

/* Divider */
.offcanvas-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0 1.75rem;
}

/* Contact Items */
.offcanvas-contact {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.offcanvas-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition-quick);
}

.offcanvas-contact-item i {
    width: 32px;
    height: 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--gradient-start);
    flex-shrink: 0;
}

.offcanvas-contact-item:hover {
    color: var(--text-primary);
}

/* Social Links */
.offcanvas-social {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.75rem 2rem;
}

.offcanvas-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-quick);
    text-decoration: none;
}

.offcanvas-social a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Logo visibility in offcanvas (respect theme) */
.nav-offcanvas-panel .logo-light {
    display: none;
}

body.light-theme .nav-offcanvas-panel .logo-dark {
    display: none;
}

body.light-theme .nav-offcanvas-panel .logo-light {
    display: block;
}

/* Staggered link animation */
.nav-offcanvas.open .offcanvas-link {
    animation: linkSlideIn 0.4s ease forwards;
}

.nav-offcanvas.open .offcanvas-link:nth-child(1) {
    animation-delay: 0.05s;
    opacity: 0;
}

.nav-offcanvas.open .offcanvas-link:nth-child(2) {
    animation-delay: 0.10s;
    opacity: 0;
}

.nav-offcanvas.open .offcanvas-link:nth-child(3) {
    animation-delay: 0.15s;
    opacity: 0;
}

.nav-offcanvas.open .offcanvas-link:nth-child(4) {
    animation-delay: 0.20s;
    opacity: 0;
}

.nav-offcanvas.open .offcanvas-link:nth-child(5) {
    animation-delay: 0.25s;
    opacity: 0;
}

.nav-offcanvas.open .offcanvas-link:nth-child(6) {
    animation-delay: 0.30s;
    opacity: 0;
}

.nav-offcanvas.open .offcanvas-link:nth-child(7) {
    animation-delay: 0.35s;
    opacity: 0;
}

@keyframes linkSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.menu-svg-icon {
    display: block;
    transition: var(--transition-quick);
}

.mobile-menu-btn:hover .menu-svg-icon line,
.mobile-menu-btn.open .menu-svg-icon line {
    stroke-opacity: 1;
}

.mobile-menu-btn.open .menu-svg-icon {
    transform: scale(0.9);
}