/* ============================================
   DATRIXLOOP - EPIC LANDING PAGE STYLES
   Primary: #4f46e5 | Dark Theme
   ============================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.4);
    --primary-bg: rgba(79, 70, 229, 0.1);
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-dark: #0a0a1a;
    --bg-card: #111128;
    --bg-card-hover: #1a1a3e;
    --bg-surface: #0d0d24;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(79, 70, 229, 0.15);
    --border-light: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(17, 17, 40, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== LIGHT THEME ==================== */
:root[data-theme="light"] {
    --bg-dark: #f8f9fc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-surface: #eef2f7;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: rgba(79, 70, 229, 0.18);
    --border-light: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.1);
}

:root[data-theme="light"] .header.scrolled {
    background: rgba(248, 249, 252, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .header-blur {
    background: linear-gradient(180deg, rgba(248, 249, 252, 0.5) 0%, transparent 100%);
}

:root[data-theme="light"] .nav-link:hover,
:root[data-theme="light"] .nav-link.active {
    background: rgba(79, 70, 229, 0.05);
}

:root[data-theme="light"] .hamburger span {
    background: var(--text-primary);
}

/* ==================== THEME TOGGLE ==================== */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.theme-toggle i {
    transition: transform 0.4s ease;
}

.theme-toggle:hover i {
    transform: rotate(30deg);
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    outline: none;
}

::selection {
    background: var(--primary);
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== PRELOADER ==================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.preloader-svg {
    width: 100%;
    height: 100%;
    animation: preloaderRotate 2s linear infinite;
}

.preloader-circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-dasharray: 283;
    stroke-dashoffset: 280;
    stroke-linecap: round;
    animation: preloaderDash 1.5s ease-in-out infinite;
}

.preloader-logo-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-bg);
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--border-color);
    border-radius: 3px;
    margin: 0 auto 15px;
    overflow: hidden;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: width 0.3s;
}

.preloader-status {
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@keyframes preloaderRotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes preloaderDash {
    0% {
        stroke-dashoffset: 280;
    }

    50% {
        stroke-dashoffset: 70;
    }

    100% {
        stroke-dashoffset: 280;
    }
}

/* ==================== CUSTOM CURSOR ==================== */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

.cursor-outline {
    position: fixed;
    width: 35px;
    height: 35px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transition: all 0.15s ease-out;
    mix-blend-mode: difference;
}

.cursor-outline.hover {
    transform: scale(1.5);
    border-color: var(--accent);
    background: rgba(79, 70, 229, 0.1);
}

/* ==================== SIDE NAV DOTS ==================== */
.side-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.side-nav-dot:hover,
.side-nav-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.side-nav-dot::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.side-nav-dot:hover::before {
    opacity: 1;
    right: 28px;
}

/* ==================== HEADER / NAVBAR ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 8px 0;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-blur {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 26, 0.5) 0%, transparent 100%);
    pointer-events: none;
}

.navbar {
    position: relative;
    z-index: 2;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo .logo-image {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
}

.logo-text h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-text span {
    font-size: 11px;
    color: var(--primary-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--primary-bg);
}

.nav-link.active {
    color: var(--primary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-gradient-orbs {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -10%;
    right: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image: linear-gradient(rgba(79, 70, 229, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-badge i {
    color: var(--warning);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.typed-cursor {
    animation: cursorBlink 1s infinite;
    color: var(--primary);
    font-weight: 300;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    font-size: 16px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.5);
}

.btn-bg-anim {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover .btn-bg-anim {
    opacity: 1;
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    background: transparent;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.hero-stats {
    display: flex;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.hero-stat h3 {
    display: inline;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-light);
}

.hero-stat span {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-light);
}

.hero-stat p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    background: var(--border-light);
}

/* Hero Visual / Code Blocks */
.hero-visual {
    position: relative;
}

.hero-3d-container {
    position: relative;
    min-height: 450px;
}

.floating-code-block {
    position: absolute;
    background: rgba(17, 17, 40, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow), var(--shadow-glow);
}

.block-1 {
    top: 20px;
    left: 0;
    right: 40px;
    animation: floatCode1 6s ease-in-out infinite;
}

.block-2 {
    bottom: 40px;
    left: 40px;
    right: 0;
    animation: floatCode2 7s ease-in-out infinite;
}

.code-header {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-light);
}

.code-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-header span:nth-child(1) {
    background: #ef4444;
}

.code-header span:nth-child(2) {
    background: #f59e0b;
}

.code-header span:nth-child(3) {
    background: #10b981;
}

.floating-code-block pre {
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
}

.floating-code-block code {
    font-family: var(--font-mono);
}

.code-keyword {
    color: #c084fc;
}

.code-var {
    color: #60a5fa;
}

.code-func {
    color: #34d399;
}

.code-prop {
    color: #fbbf24;
}

.code-string {
    color: #fb923c;
}

@keyframes floatCode1 {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-15px) rotate(0deg);
    }
}

@keyframes floatCode2 {

    0%,
    100% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-10px) rotate(0deg);
    }
}

.hero-float-icons {
    position: absolute;
    inset: 0;
}

.float-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 22px;
    color: var(--primary-light);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.fi-1 {
    top: 0;
    right: 20px;
    animation: floatIcon 4s ease-in-out infinite;
    color: #61dafb;
}

.fi-2 {
    top: 40%;
    left: -20px;
    animation: floatIcon 5s ease-in-out infinite 0.5s;
    color: #68a063;
}

.fi-3 {
    bottom: 10%;
    left: 10px;
    animation: floatIcon 4.5s ease-in-out infinite 1s;
    color: #3776ab;
}

.fi-4 {
    top: 15%;
    left: 40%;
    animation: floatIcon 5.5s ease-in-out infinite 1.5s;
    color: #02569b;
}

.fi-5 {
    bottom: 30%;
    right: -10px;
    animation: floatIcon 4s ease-in-out infinite 2s;
    color: #ff9900;
}

.fi-6 {
    top: 60%;
    right: 40%;
    animation: floatIcon 6s ease-in-out infinite 0.8s;
    color: #2496ed;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

.hero-scroll-indicator span {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==================== MARQUEE ==================== */
.marquee-section {
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: rgba(79, 70, 229, 0.02);
}

.marquee-label {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 24px;
}

.marquee-track {
    overflow: hidden;
    position: relative;
}

.marquee-track::before,
.marquee-track::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
}

.marquee-track::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-dark), transparent);
}

.marquee-track::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-dark), transparent);
}

.marquee-content {
    display: flex;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 30px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.marquee-item i {
    color: var(--primary-light);
    font-size: 18px;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==================== SECTION HEADERS ==================== */
section {
    padding: 100px 0;
    position: relative;
}

.section-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 50px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background: var(--bg-surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-image-wrapper {
    position: relative;
}

.about-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(var(--primary) 2px, transparent 2px);
    background-size: 30px 30px;
}

.about-icon-center {
    font-size: 80px;
    color: var(--primary);
    opacity: 0.2;
    position: relative;
    z-index: 1;
}

.floating-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    z-index: 2;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.floating-tag i {
    color: var(--success);
}

.ft-1 {
    top: 20px;
    right: 4px;
    animation: floatTag 5s ease-in-out infinite;
    color: var(--success);
}

.ft-2 {
    bottom: 9px;
    left: 10px;
    animation: floatTag 6s ease-in-out infinite 1s;
    color: var(--accent);
}

.ft-3 {
    bottom: 5px;
    right: 15px;
    animation: floatTag 5.5s ease-in-out infinite 2s;
    color: var(--primary-light);
}

@keyframes floatTag {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.about-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 4px;
}

.about-tab {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    text-align: center;
}

.about-tab:hover {
    color: var(--text-primary);
}

.about-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.about-tab-content {
    display: none;
}

.about-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.about-tab-content h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-tab-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 15px;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.value-item {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    text-align: center;
}

.value-item i {
    font-size: 24px;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.value-item h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.value-item p {
    font-size: 12px;
    color: var(--text-muted);
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    font-size: 13px;
    font-weight: 500;
}

.about-feature i {
    color: var(--primary-light);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== STATS SECTION ==================== */
.stats-section {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(124, 58, 237, 0.05));
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stats-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234f46e5' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 30px 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 28px;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.stat-bar {
    width: 100%;
    height: 3px;
    background: var(--border-light);
    border-radius: 3px;
    margin-top: 16px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    width: 0%;
    transition: width 1.5s ease;
}

.stat-card.animated .stat-bar-fill {
    width: var(--fill-width, 90%);
}

/* ==================== SERVICES SECTION ==================== */
.services {
    background: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    overflow: hidden;
}

.service-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.05));
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow), var(--shadow-glow);
}

.service-card:hover .service-card-bg {
    opacity: 1;
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.service-icon-wrap {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-light);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.service-card h3 {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card>p {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.service-list {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 0;
}

.service-list li i {
    color: var(--success);
    font-size: 10px;
}

.service-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
}

.service-link:hover {
    gap: 10px;
}

.service-link i {
    font-size: 12px;
    transition: var(--transition);
}

/* ==================== TECH STACK ==================== */
.tech-stack {
    background: var(--bg-surface);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.tech-category {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.tech-category:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.tech-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-light);
    font-family: var(--font-display);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.tech-item:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.tech-item i {
    color: var(--primary-light);
    font-size: 16px;
}

/* ==================== PROCESS / TIMELINE ==================== */
.process-section {
    background: var(--bg-dark);
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 48px;
    position: relative;
}

.process-step:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}

.step-number {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: white;
    z-index: 2;
    box-shadow: 0 0 20px var(--primary-glow);
}

.step-content {
    flex: 1;
    max-width: calc(50% - 50px);
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.step-content:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.step-icon {
    font-size: 28px;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== PORTFOLIO ==================== */
.portfolio {
    background: var(--bg-surface);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.portfolio-card.hidden {
    display: none;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow), var(--shadow-glow);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
}

.portfolio-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(79, 70, 229, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transform: scale(0.5);
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-link {
    transform: scale(1);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-cat {
    font-size: 12px;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-info h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0;
}

.portfolio-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.portfolio-tech span {
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--primary-bg);
    color: var(--primary-light);
    font-size: 11px;
    font-weight: 600;
}

/* ==================== WHY CHOOSE US ==================== */
.why-us {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-light);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary-light);
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: var(--primary);
    color: white;
}

.why-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.why-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== PARTNERSHIPS ==================== */
.partnerships {
    background: var(--bg-surface);
}

.partnership-showcase {
    max-width: 1000px;
    margin: 0 auto;
}

.partnership-card {
    position: relative;
    padding: 48px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 32px;
}

.partnership-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 50%);
    animation: partnerGlow 8s ease-in-out infinite;
}

@keyframes partnerGlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10%, 10%);
    }
}

.partnership-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.partnership-content {
    position: relative;
    z-index: 1;
}

.partnership-icon {
    font-size: 48px;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.partnership-content h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.partnership-type {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 16px;
}

.partnership-content>p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.partnership-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
}

.partnership-benefits li i {
    color: var(--success);
    font-size: 14px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cert-card {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.cert-icon {
    font-size: 36px;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.cert-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cert-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
}

/* ==================== TEAM ==================== */
.team {
    background: var(--bg-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow), var(--shadow-glow);
}

.team-avatar {
    margin-bottom: 20px;
}

.avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.7);
    border: 3px solid var(--border-color);
}

.team-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    color: var(--primary-light);
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.team-card>p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
    background: var(--bg-surface);
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    width: 100%;
    padding: 40px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    margin: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-stars i {
    color: var(--warning);
    font-size: 16px;
}

.testimonial-text {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.author-info h4 {
    font-size: 16px;
    font-weight: 700;
}

.author-info span {
    font-size: 13px;
    color: var(--text-muted);
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.testimonial-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.testimonial-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dots .dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}

.testimonials .container {
    overflow: hidden;
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.testimonial-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== PRICING ==================== */
.pricing {
    background: var(--bg-dark);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1050px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: 36px 28px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow), var(--shadow-glow);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-header {
    margin-bottom: 28px;
}

.pricing-icon {
    font-size: 36px;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.pricing-header h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.currency {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 600;
}

.amount {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-light);
}

.period {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 4px;
}

.pricing-features {
    margin-bottom: 28px;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .included i {
    color: var(--success);
}

.pricing-features .not-included {
    color: var(--text-muted);
}

.pricing-features .not-included i {
    color: var(--text-muted);
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    transition: var(--transition);
}

.pricing-btn:hover,
.pricing-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

/* ==================== BLOG ==================== */
.blog {
    background: var(--bg-surface);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.blog-img {
    position: relative;
}

.blog-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: rgba(255, 255, 255, 0.2);
}

.blog-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.blog-content {
    padding: 24px;
}

.blog-category {
    font-size: 12px;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0 12px;
    line-height: 1.4;
}

.blog-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
}

.blog-link:hover {
    gap: 10px;
}

/* ==================== FAQ ==================== */
.faq {
    background: var(--bg-dark);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.faq-question i {
    color: var(--primary-light);
    transition: var(--transition);
    font-size: 14px;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== NEWSLETTER ==================== */
.newsletter-section {
    padding: 60px 0;
    background: var(--bg-surface);
}

.newsletter-card {
    position: relative;
    padding: 60px 48px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-align: center;
}

.newsletter-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0.9;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter-icon {
    font-size: 42px;
    color: white;
    margin-bottom: 16px;
}

.newsletter-content h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.newsletter-content>p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto 28px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-wrap {
    display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.newsletter-input-wrap input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 15px;
    backdrop-filter: blur(10px);
}

.newsletter-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input-wrap button {
    padding: 16px 28px;
    background: white;
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.newsletter-input-wrap button:hover {
    background: var(--bg-dark);
    color: white;
}

.newsletter-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
}

.newsletter-note i {
    margin-right: 4px;
}

/* ==================== CONTACT ==================== */
.contact {
    background: var(--bg-surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form-wrapper {
    padding: 36px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.submit-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.5);
}

.submit-btn .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-icon {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-block {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.info-block h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-block p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.contact-detail:hover {
    border-color: var(--primary);
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-light);
}

.detail-text h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.detail-text p {
    font-size: 13px;
    color: var(--text-secondary);
}

.contact-social {
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

.contact-social h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-card);
    position: relative;
    padding-top: 60px;
}

.footer-wave {
    position: relative;
    margin-top: -60px;
}

.footer-wave svg {
    width: 100%;
    height: 60px;
    color: var(--bg-card);
    display: block;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-light);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer .logo-image {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
}

.footer-logo-text h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.footer-logo-text span {
    font-size: 11px;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-brand>p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-light);
}

.footer-links-col h4 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links-col ul li {
    margin-bottom: 10px;
}

.footer-links-col ul li a {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-contact-col h4 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-contact-item i {
    color: var(--primary-light);
    font-size: 14px;
    width: 16px;
}

.footer-social-icons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.footer-social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-social-icons a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.footer-bottom {
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-credits i {
    font-size: 12px;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9990;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.6);
}

/* ==================== SUCCESS MODAL ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 48px;
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 400px;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 56px;
    color: var(--success);
    margin-bottom: 16px;
}

.modal-content h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal-close {
    padding: 12px 32px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: white;
    font-weight: 700;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary-dark);
}

/* ==================== SCROLL ANIMATIONS ==================== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-contact-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .process-line {
        display: none;
    }

    .process-step,
    .process-step:nth-child(odd) {
        flex-direction: column;
        text-align: left;
    }

    .step-number {
        position: static;
        transform: none;
        margin-bottom: 16px;
    }

    .step-content {
        max-width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 80px 30px;
        gap: 8px;
        transition: var(--transition-slow);
        z-index: 9998;
        border-left: 1px solid var(--border-light);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: 12px 16px;
        width: 100%;
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .side-nav {
        display: none;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-stat-divider {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 15px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .about-tabs {
        flex-wrap: wrap;
    }

    .partnership-card {
        padding: 28px 20px;
    }

    .newsletter-card {
        padding: 36px 20px;
    }
}

/* ==================== HOVER & CURSOR STATES ==================== */
@media (hover: hover) {
    .service-card {
        cursor: pointer;
    }

    .portfolio-card {
        cursor: pointer;
    }

    .team-card {
        cursor: pointer;
    }

    .why-card {
        cursor: pointer;
    }

    .cert-card {
        cursor: pointer;
    }

    .tech-category {
        cursor: pointer;
    }
}

/* ==================== UTILITY ANIMATIONS ==================== */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ==================== MARQUEE ADDITIONAL ==================== */
.marquee-item i.fa-check-circle {
    color: #10b981;
    font-size: 14px;
    margin-left: -5px;
}

.msme-icon {
    color: #f59e0b !important;
}

.mca-icon {
    color: #3b82f6 !important;
}

.mou-icon {
    color: #4f46e5 !important;
}

/* ==================== ABOUT LOGO ==================== */
.about-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    z-index: 1;
}

.about-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* ==================== SERVICES GRID 5-COL ==================== */
@media (min-width: 1201px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* ==================== CERTIFICATIONS TITLE ==================== */
.certifications-section {
    margin-top: 60px;
}

.certs-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.certs-title i {
    color: var(--primary-light);
}

/* ============================================================
   MoU COLLABORATION GALLERY — EPIC EDITION
   ============================================================ */
.mou-gallery {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--border-light);
}

.gallery-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.gallery-title i {
    color: var(--primary-light);
    font-size: 22px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    text-align: center;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-img-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    transition: var(--transition);
}

.gallery-item:hover .gallery-img-placeholder {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow), 0 20px 50px rgba(0, 0, 0, 0.3);
}

.gallery-image {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.12);
    filter: brightness(1.1) contrast(1.05);
}

/* Gallery overlay effect */
.gallery-img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(79, 70, 229, 0.0) 0%,
            rgba(79, 70, 229, 0.15) 50%,
            rgba(124, 58, 237, 0.0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-img-placeholder::after {
    opacity: 1;
}

.gallery-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.gallery-fallback i {
    font-size: 32px;
    opacity: 0.3;
}

.gallery-caption {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    color: var(--primary-light);
}


/* ============================================================
   OUR TEAM — EPIC EDITION
   ============================================================ */
.team-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

/* Ambient glow behind the team grid */
.team-grid-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.team-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 44px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Animated gradient border on hover */
.team-card-modern::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary), var(--primary));
    background-size: 300% 300%;
    border-radius: 25px;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: gradientBorderSpin 4s ease infinite;
}

.team-card-modern::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-card);
    border-radius: 23px;
    z-index: -1;
}

.team-card-modern:hover::before {
    opacity: 1;
}

@keyframes gradientBorderSpin {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.team-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(79, 70, 229, 0.2),
        0 0 80px rgba(79, 70, 229, 0.08);
}

/* Spotlight glow on hover */
.team-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(79, 70, 229, 0.08) 0%, transparent 60%);
    transition: opacity 0.5s ease;
    opacity: 0;
}

.team-card-modern:hover .team-card-glow {
    opacity: 1;
}

/* Avatar with animated ring */
.team-avatar-modern {
    width: 130px;
    height: 130px;
    margin: 0 auto 28px;
    position: relative;
}

.avatar-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-bottom-color: var(--accent);
    animation: spin 4s linear infinite;
}

.team-card-modern:hover .avatar-ring {
    border-top-color: var(--accent);
    border-right-color: var(--secondary);
    border-bottom-color: var(--primary);
    animation-duration: 2s;
}

.team-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-card);
    transition: var(--transition);
}

.team-card-modern:hover .team-img {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-card-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: var(--primary-light);
    transition: var(--transition);
}

.team-card-modern:hover .avatar-fallback {
    background: linear-gradient(135deg, var(--primary-bg), rgba(79, 70, 229, 0.15));
    color: var(--primary);
}

/* Role badge */
.team-badge-role {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ceo-badge {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: white;
    animation: pulse 2s ease infinite;
}

/* Team info */
.team-info-modern h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.team-card-modern:hover .team-info-modern h3 {
    color: var(--primary-light);
}

.team-role-modern {
    font-size: 13px;
    color: var(--primary-light);
    font-weight: 600;
    display: block;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.team-info-modern p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Social links with glow */
.team-social-modern {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-social-modern a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-social-modern a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* CEO card — special spotlight */
.team-card-ceo {
    grid-column: span 3;
    max-width: 520px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--bg-card), rgba(79, 70, 229, 0.03));
    border-color: rgba(79, 70, 229, 0.15);
}

.team-card-ceo .avatar-ring {
    border-width: 3px;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.team-card-ceo .team-avatar-modern {
    width: 140px;
    height: 140px;
}

/* Staggered reveal animation */
.team-card-modern:nth-child(2) {
    transition-delay: 0.05s;
}

.team-card-modern:nth-child(3) {
    transition-delay: 0.1s;
}

.team-card-modern:nth-child(4) {
    transition-delay: 0.15s;
}

.team-card-modern:nth-child(5) {
    transition-delay: 0.2s;
}

.team-card-modern:nth-child(6) {
    transition-delay: 0.25s;
}

@media (max-width: 1024px) {
    .team-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-card-ceo {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .team-grid-modern {
        grid-template-columns: 1fr;
    }

    .team-card-ceo {
        grid-column: span 1;
        max-width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   LATEST NEWS / FEATURED BLOG — EPIC EDITION
   ============================================================ */
.blog-featured {
    max-width: 1000px;
    margin: 0 auto;
}

.blog-card-featured {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr;
    gap: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    position: relative;
}

.blog-card-featured:hover {
    transform: none;
    box-shadow: none;
}

.blog-img-featured {
    position: relative;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
}

.blog-placeholder-featured {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.15);
    transition: transform 0.6s ease;
}

.blog-card-featured:hover .blog-placeholder-featured {
    transform: none;
}

.blog-date-featured {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 18px;
    border-radius: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-content-featured {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 8px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    width: fit-content;
}

.blog-content-featured h3 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-content-featured p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Tags with glow */
.blog-featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.blog-featured-tags span {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.blog-featured-tags span:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: var(--primary-bg);
}

.blog-featured-tags i {
    color: var(--primary-light);
    font-size: 10px;
}

@media (max-width: 900px) {
    .blog-card-featured {
        grid-template-columns: 1fr;
    }

    .blog-content-featured {
        padding: 30px;
    }

    .blog-img-featured {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 24px;
    }
    .testimonial-text {
        font-size: 15px;
    }
}

/* ==================== LIGHT THEME OVERRIDES ==================== */
:root[data-theme="light"] .floating-code-block {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .code-header {
    background: rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .marquee-track::before {
    background: linear-gradient(90deg, var(--bg-dark), transparent);
}

:root[data-theme="light"] .marquee-track::after {
    background: linear-gradient(270deg, var(--bg-dark), transparent);
}

:root[data-theme="light"] .gradient-orb {
    opacity: 0.15;
}

:root[data-theme="light"] .hero-grid-bg {
    background-image: linear-gradient(rgba(79, 70, 229, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.06) 1px, transparent 1px);
}

:root[data-theme="light"] .team-card-modern::after {
    background: var(--bg-card);
}

:root[data-theme="light"] .blog-date-featured {
    color: var(--text-primary);
}