/* ============================================
   Elite Software Labs - Main Stylesheet
   Midnight Steel — Professional Edition
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary:       #0A1628;
    --primary-light:  #112240;
    --accent:        #0070F3;
    --accent-light:  #60A5FA;
    --accent-dark:   #0057C2;
    --accent-glow:   rgba(0, 112, 243, 0.4);
    --teal:          #06B6D4;
    --teal-light:    #67E8F9;
    --coral:         #F87171;
    --gold:          #F59E0B;
    --white:         #ffffff;
    --gray-50:       #f8f9fc;
    --gray-100:      #f1f3f8;
    --gray-200:      #e2e6ef;
    --gray-300:      #c8cedd;
    --gray-400:      #9ba3b5;
    --gray-500:      #6b7280;
    --gray-600:      #4b5563;
    --gray-700:      #374151;
    --gray-800:      #1f2937;
    --gray-900:      #111827;
    --success:       #10b981;
    --danger:        #ef4444;
    --warning:       #f59e0b;
    --info:          #06B6D4;
    --gradient:      linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    --gradient-reverse: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    --gradient-vibrant: linear-gradient(135deg, #0070F3 0%, #06B6D4 50%, #60A5FA 100%);
    --gradient-warm: linear-gradient(135deg, #0070F3 0%, #0057C2 100%);
    --gradient-cool: linear-gradient(135deg, #0A1628 0%, #112240 50%, #0070F3 100%);
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:     0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg:     0 12px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
    --shadow-xl:     0 24px 56px rgba(0,0,0,0.16), 0 8px 16px rgba(0,0,0,0.08);
    --shadow-glow:   0 0 40px rgba(0, 112, 243, 0.14);
    --shadow-card:   0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.09);
    --radius-sm:     6px;
    --radius-md:     10px;
    --radius-lg:     16px;
    --radius-xl:     24px;
    --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:     'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --transition:    all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height:    72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    color: var(--gray-600);
    background: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; }
pre { max-width: 100%; overflow-x: auto; }

h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); letter-spacing: -0.01em; }

p { margin-bottom: 1rem; }

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ---- Utility Classes ---- */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.required { color: var(--danger); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.5;
    position: relative;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 1px 2px rgba(0,112,243,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 112, 243, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn-secondary:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 112, 243, 0.25);
}

.btn-outline {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

.btn-outline-light {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.25);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}

.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 14px 34px; font-size: 0.95rem; letter-spacing: 0.02em; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Section Tag ---- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(0, 112, 243, 0.08);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0, 112, 243, 0.18);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--gray-200);
    box-shadow: 0 1px 0 var(--gray-200), 0 4px 24px rgba(15,23,42,0.06);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.nav-logo {
    height: 48px;
    width: auto;
    display: block;
}
.footer-logo {
    height: 52px;
    width: auto;
    display: block;
    margin-bottom: 16px;
}
.brand-elite { color: var(--primary); }
.brand-labs {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.nav-link {
    padding: 7px 13px;
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: 0.005em;
}
.nav-link:hover {
    color: var(--gray-800);
    background: var(--gray-100);
}
.nav-link.active {
    color: var(--accent);
    background: rgba(0, 112, 243, 0.07);
    font-weight: 600;
}

.nav-cta {
    margin-left: 10px;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../images/hero-bg.jpg') center 40% / cover no-repeat;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg,
            rgba(10, 22, 40, 0.94) 0%,
            rgba(10, 22, 40, 0.88) 45%,
            rgba(0, 87, 194, 0.55) 100%),
        linear-gradient(to bottom,
            rgba(10, 22, 40, 0.3) 0%,
            rgba(10, 22, 40, 0.15) 60%,
            rgba(10, 22, 40, 0.6) 100%);
    z-index: 1;
}

.hero-bg-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}

.hero-grid {
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    animation: gridMove 28s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(72px, 72px); }
}

.hero::after {
    content: '';
    position: absolute;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,112,243,0.12) 0%, transparent 70%);
    top: -10%;
    right: -15%;
    z-index: 1;
    animation: floatOrb 12s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 24px) scale(1.06); }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 780px;
    padding: 72px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(0,112,243,0.15);
    color: var(--accent-light);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1px solid rgba(0,112,243,0.3);
    margin-bottom: 2rem;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -0.035em;
    font-weight: 800;
}

.hero-subtitle {
    color: rgba(255,255,255,0.62);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.85;
    margin-bottom: 2.5rem;
    max-width: 580px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    gap: 44px;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat {
    text-align: left;
}
.hero-stat .stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.03em;
}
.hero-stat .stat-suffix {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-light);
}
.hero-stat .stat-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* ============================================
   PAGE HERO (Inner Pages)
   ============================================ */
.page-hero {
    position: relative;
    background: var(--primary);
    padding: calc(var(--nav-height) + 72px) 0 72px;
    text-align: center;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,112,243,0.3) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 10% 100%, rgba(6,182,212,0.1) 0%, transparent 50%);
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(to top, var(--white) 0%, transparent 100%);
    z-index: 2;
}
.page-hero-sm { padding-bottom: 48px; }

.page-hero .container { position: relative; z-index: 3; }

.page-hero h1 {
    color: var(--white);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    font-weight: 800;
}
.page-hero p,
.page-hero .blog-post-meta {
    color: rgba(255,255,255,0.62);
    font-size: 1.05rem;
}
.page-hero .blog-post-meta span { margin: 0 12px; }
.page-hero .blog-post-meta i { margin-right: 6px; }

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 96px 0;
}
.section-alt {
    background: var(--gray-50);
    position: relative;
}

.section-header {
    margin-bottom: 56px;
}
.section-header h2 {
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}
.section-header p {
    color: var(--gray-500);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   ABOUT PREVIEW (Home Page)
   ============================================ */
.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-preview-content h2 { margin-bottom: 1rem; }
.about-preview-content p { color: var(--gray-600); margin-bottom: 1rem; }

/* Code Window — Glass effect */
.code-window {
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        var(--shadow-xl),
        0 0 60px rgba(0, 112, 243, 0.15);
    border: 1px solid rgba(255,255,255,0.05);
    max-width: 100%;
}
.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.code-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--gray-400);
    font-family: var(--font-mono);
}
.code-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    color: #e2e8f0;
    overflow-x: auto;
    word-break: break-word;
    white-space: pre-wrap;
}
.code-keyword { color: #c678dd; }
.code-class { color: #e5c07b; }
.code-func { color: #61dafb; }
.code-string { color: #98c379; }
.code-comment { color: #5c6370; }

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

.service-card {
    padding: 36px 28px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--teal) 100%);
    opacity: 0;
    transition: var(--transition);
}
.service-card:hover {
    border-color: var(--gray-200);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 112, 243, 0.08);
    color: var(--accent);
    font-size: 1.3rem;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0,112,243,0.12);
}
.service-card:hover .service-icon {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}
.service-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}
.service-link:hover { gap: 12px; color: var(--accent-dark); }
.service-link i { font-size: 0.75rem; transition: var(--transition); }

/* Services Detail (Services Page) */
.services-detail-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-detail-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: start;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.service-detail-card:hover {
    border-color: rgba(108,92,231,0.2);
    box-shadow: var(--shadow-card);
}
.service-detail-card.reverse { direction: rtl; }
.service-detail-card.reverse > * { direction: ltr; }

.service-detail-icon {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--white);
    font-size: 2rem;
    border-radius: var(--radius-xl);
    flex-shrink: 0;
    box-shadow: 0 12px 32px rgba(0, 112, 243, 0.3);
}
.service-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.service-detail-content h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.service-detail-short { color: var(--gray-600); font-size: 1.05rem; margin-bottom: 0.5rem; }
.service-detail-full { color: var(--gray-500); margin-bottom: 1.5rem; }

/* Process — Enhanced */
.process-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    max-width: 220px;
    padding: 0 16px;
}
.process-number {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(0, 112, 243, 0.3);
    transition: var(--transition);
}
.process-step:hover .process-number {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 112, 243, 0.45);
}
.process-step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.85rem; color: var(--gray-500); }

.process-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-light), var(--teal-light));
    margin-top: 32px;
    flex-shrink: 0;
    border-radius: 1px;
}

/* ============================================
   TECHNOLOGIES — Enhanced
   ============================================ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.tech-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    border-radius: inherit;
}
.tech-item:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 112, 243, 0.15);
}
.tech-item:hover::after {
    opacity: 1;
}
.tech-item i {
    font-size: 2rem;
    color: var(--accent);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}
.tech-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}
.tech-item:hover i,
.tech-item:hover span {
    color: var(--white);
}

/* ============================================
   PROJECTS / PORTFOLIO — Enhanced
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card), 0 0 40px rgba(0, 112, 243, 0.1);
    border-color: transparent;
}

.project-image {
    position: relative;
    height: 210px;
    overflow: hidden;
}
.project-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-cool);
    color: rgba(255,255,255,0.25);
    font-size: 3rem;
    transition: var(--transition-slow);
}
.project-card:hover .project-placeholder-img {
    transform: scale(1.05);
}
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.9), rgba(0, 112, 243, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }

.project-info {
    padding: 24px;
}
.project-industry {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.08), rgba(6, 182, 212, 0.06));
    color: var(--accent);
    font-size: 0.73rem;
    font-weight: 700;
    border-radius: 14px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.project-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.project-info p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tech-tag {
    padding: 4px 12px;
    background: var(--gray-50);
    color: var(--gray-600);
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 14px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.project-card:hover .tech-tag {
    border-color: rgba(108,92,231,0.15);
    background: rgba(108,92,231,0.04);
}

/* Portfolio Filters — Enhanced */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
}
.filter-btn {
    padding: 10px 24px;
    background: var(--white);
    color: var(--gray-600);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 112, 243, 0.1);
}
.filter-btn.active {
    background: var(--gradient);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(0, 112, 243, 0.3);
}

/* ============================================
   TESTIMONIALS — Enhanced
   ============================================ */
.section-testimonials {
    position: relative;
    overflow: hidden;
}
.section-testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108,92,231,0.06) 0%, transparent 70%);
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 48px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 5rem;
    color: rgba(0, 112, 243, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 24px;
}
.testimonial-stars i { margin: 0 2px; }

.testimonial-text {
    font-size: 1.15rem;
    color: var(--gray-700);
    line-height: 1.85;
    font-style: italic;
    margin-bottom: 28px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.testimonial-avatar {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 112, 243, 0.3);
}
.testimonial-author strong {
    display: block;
    color: var(--gray-800);
    font-size: 0.95rem;
}
.testimonial-author span {
    font-size: 0.82rem;
    color: var(--gray-400);
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
}
.testimonial-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
}
.testimonial-btn:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}
.testimonial-dot {
    width: 8px;
    height: 8px;
    background: var(--gray-300);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.testimonial-dot.active {
    width: 28px;
    background: var(--gradient);
    border-radius: 4px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.section-cta {
    background: var(--primary);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}
.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,112,243,0.28) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 100% 100%, rgba(6,182,212,0.1) 0%, transparent 50%);
}
.section-cta::after { display: none; }
.cta-content {
    position: relative;
    z-index: 2;
}
.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 800;
}
.cta-content p {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ============================================
   ABOUT PAGE — Enhanced
   ============================================ */
.about-story-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}
.about-story-content p { color: var(--gray-600); }

.about-stats-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.about-stat {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.about-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-vibrant);
    opacity: 0;
    transition: var(--transition);
}
.about-stat:hover {
    border-color: transparent;
    transform: translateY(-6px);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}
.about-stat:hover::before { opacity: 1; }
.about-stat .stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.about-stat .stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about-stat .stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Mission Cards — Enhanced */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.mission-card {
    padding: 44px 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.mission-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-vibrant);
    transform: scaleX(0);
    transition: var(--transition);
}
.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}
.mission-card:hover::after {
    transform: scaleX(1);
}
.mission-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--white);
    font-size: 1.6rem;
    border-radius: 50%;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(0, 112, 243, 0.3);
    transition: var(--transition);
}
.mission-card:hover .mission-icon {
    transform: scale(1.1) rotate(5deg);
}
.mission-card h3 { margin-bottom: 0.75rem; }
.mission-card p { color: var(--gray-500); font-size: 0.9rem; }

/* Why Us */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.why-us-item {
    padding: 28px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}
.why-us-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--teal));
    border-radius: 3px 0 0 3px;
    opacity: 0;
    transition: var(--transition);
}
.why-us-item:hover {
    border-color: var(--gray-200);
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}
.why-us-item:hover::before { opacity: 1; }
.why-us-number {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.8;
}
.why-us-item h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--gray-800); }
.why-us-item p { color: var(--gray-500); font-size: 0.875rem; margin-bottom: 0; line-height: 1.7; }

/* Team — Enhanced */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.team-card {
    padding: 40px 24px 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-vibrant);
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}
.team-avatar {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 18px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 112, 243, 0.25);
    transition: var(--transition);
}
.team-card:hover .team-avatar {
    transform: scale(1.05);
}
.team-avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.team-role {
    display: block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.team-card p { color: var(--gray-500); font-size: 0.85rem; }
.team-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}
.team-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-500);
    border-radius: 50%;
    transition: var(--transition);
}
.team-social a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

/* ============================================
   BLOG — Enhanced
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}
.blog-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-cool);
    color: rgba(255,255,255,0.25);
    font-size: 2.5rem;
    transition: var(--transition-slow);
}
.blog-card:hover .blog-placeholder-img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 28px;
}
.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}
.blog-meta span {
    font-size: 0.78rem;
    color: var(--gray-400);
    font-weight: 500;
}
.blog-meta i { margin-right: 4px; }

.blog-card-content h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.blog-card-content h2 a { color: var(--gray-900); }
.blog-card-content h2 a:hover { color: var(--accent); }
.blog-card-content p {
    color: var(--gray-500);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}
.blog-read-more:hover { gap: 12px; color: var(--accent-dark); }

/* Single Blog Post */
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
}
.blog-article {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--gray-700);
}
.blog-article p { margin-bottom: 1.5rem; }
.blog-article h2, .blog-article h3 { margin-top: 2rem; }
.blog-post-footer {
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--gray-200);
}

/* ============================================
   CONTACT PAGE — Enhanced
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 50px;
    margin-bottom: 60px;
}

.contact-form-wrapper h2 { margin-bottom: 1.5rem; }

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

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 0.875rem;
    color: var(--gray-800);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-error {
    display: block;
    font-size: 0.78rem;
    color: var(--danger);
    margin-top: 4px;
    min-height: 18px;
}

.form-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: none;
}
.form-message.success {
    display: block;
    background: rgba(0, 112, 243, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 112, 243, 0.2);
}
.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Contact Info — Enhanced */
.contact-info-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-vibrant);
}
.contact-info-card h3 { margin-bottom: 24px; }

.contact-detail {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.contact-detail:last-child { margin-bottom: 0; }
.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.1), rgba(6, 182, 212, 0.06));
    color: var(--accent);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    font-size: 1.05rem;
}
.contact-detail strong { display: block; font-size: 0.85rem; color: var(--gray-800); }
.contact-detail p { margin: 0; font-size: 0.9rem; color: var(--gray-500); }

.contact-social { margin-top: 8px; }
.contact-social h4 { margin-bottom: 12px; }

.social-links {
    display: flex;
    gap: 10px;
}
.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-500);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1rem;
}
.social-links a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 112, 243, 0.3);
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    max-width: 100%;
}

/* ============================================
   404 PAGE — Enhanced
   ============================================ */
.section-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    background: var(--gray-50);
}
.error-code {
    font-size: clamp(6rem, 15vw, 14rem);
    font-weight: 800;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.error-content h2 { margin-bottom: 0.5rem; }
.error-content p { color: var(--gray-500); margin-bottom: 2rem; }

/* ============================================
   MODAL — Enhanced
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 24px;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 44px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-800); }

#modalBody h2 { margin-bottom: 0.5rem; }
#modalBody .modal-industry {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(0, 112, 243, 0.08);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 1rem;
}
#modalBody .modal-desc { color: var(--gray-600); margin-bottom: 1.5rem; }
#modalBody .modal-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* ============================================
   FOOTER — Enhanced
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,112,243,0.5), var(--teal), rgba(0,112,243,0.5), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 16px;
}
.footer .footer-brand .brand-elite { color: #ffffff !important; }
.footer .footer-brand .brand-labs { color: var(--accent-light) !important; }
.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0;
}
.footer-col ul a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
    margin-right: 0;
}
.footer-col ul a:hover {
    color: var(--white);
}
.footer-col ul a:hover::before {
    width: 12px;
    margin-right: 8px;
}
.footer-col p { font-size: 0.9rem; }

.newsletter-form { margin-bottom: 20px; }
.newsletter-input-group {
    display: flex;
    gap: 0;
}
.newsletter-input-group input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}
.newsletter-input-group input::placeholder { color: var(--gray-500); }
.newsletter-input-group input:focus { border-color: var(--accent); background: rgba(255,255,255,0.08); }
.newsletter-input-group button {
    padding: 12px 20px;
    background: var(--accent);
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}
.newsletter-input-group button:hover { background: var(--accent-dark); }

.newsletter-message {
    font-size: 0.8rem;
    margin-top: 6px;
    min-height: 18px;
}
.newsletter-message.success { color: var(--success); }
.newsletter-message.error { color: var(--danger); }

.footer-contact { margin-top: 0; }
.footer-contact p {
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.footer-contact i { margin-right: 8px; color: var(--accent); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
}
.footer-bottom p { margin: 0; font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--gray-400); font-size: 0.85rem; }
.footer-bottom-links a:hover { color: var(--white); }

/* ============================================
   BACK TO TOP — Enhanced
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 112, 243, 0.4);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 112, 243, 0.5);
}

/* ============================================
   SERVICE REQUEST FORM
   ============================================ */
.service-request-wrapper {
    max-width: 750px;
    margin: 0 auto;
}
.form-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin: 28px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}
.form-section-title:first-child { margin-top: 0; }
.form-group select {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ba3b5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.form-group select:focus {
    border-color: var(--accent);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 112, 243, 0.1);
}

/* ============================================
   BOOKING / CONSULTATION — Enhanced
   ============================================ */
.booking-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: start;
}
.booking-info-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.booking-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-vibrant);
}
.booking-info-card h3 { margin-bottom: 16px; }
.booking-info-card h3 i { color: var(--accent); margin-right: 8px; }
.booking-checklist { list-style: none; margin-bottom: 24px; }
.booking-checklist li {
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--gray-100);
}
.booking-checklist li:last-child { border-bottom: none; }
.booking-checklist li i { color: var(--teal); font-size: 0.85rem; }
.booking-hours { padding-top: 16px; border-top: 1px solid var(--gray-200); }
.booking-hours h4 { font-size: 0.85rem; margin-bottom: 8px; }
.booking-hours p { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 6px; }
.booking-hours i { color: var(--accent); margin-right: 6px; width: 16px; }

/* ============================================
   CLIENT LOGIN & PORTAL — Enhanced
   ============================================ */
.client-login-wrapper { max-width: 440px; margin: 0 auto; }
.client-login-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.client-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-vibrant);
}
.client-login-note {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--gray-400);
    text-align: center;
    line-height: 1.6;
}

/* Portal Tabs */
.portal-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    background: var(--gray-50);
    padding: 6px;
    border-radius: var(--radius-md);
}
.portal-tab {
    padding: 12px 24px;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-500);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.portal-tab:hover { color: var(--accent); }
.portal-tab.active {
    color: var(--accent);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.portal-logout { margin-left: auto; color: var(--gray-400); }
.portal-logout:hover { color: var(--danger); }

.portal-panel { display: none; }
.portal-panel.active { display: block; }

.portal-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-400);
}
.portal-empty i { font-size: 3rem; margin-bottom: 16px; display: block; opacity: 0.5; }

/* Portal Project Cards */
.portal-project-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 20px;
    transition: var(--transition);
}
.portal-project-card:hover {
    box-shadow: var(--shadow-card);
    border-color: transparent;
}
.portal-project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.portal-project-header h3 { font-size: 1.15rem; margin-bottom: 4px; }
.portal-project-header p { color: var(--gray-500); font-size: 0.9rem; margin: 0; }

.portal-status {
    display: inline-block;
    padding: 5px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-in_progress, .status-active { background: #dbeafe; color: #1e40af; }
.status-completed, .status-paid { background: #d1fae5; color: #065f46; }
.status-on_hold { background: #f3f4f6; color: #6b7280; }
.status-cancelled, .status-overdue { background: #fee2e2; color: #991b1b; }
.status-new { background: #ede9fe; color: #5b21b6; }
.status-sent { background: #dbeafe; color: #1e40af; }
.status-draft { background: #f3f4f6; color: #6b7280; }
.status-confirmed { background: #d1fae5; color: #065f46; }
.status-reviewed { background: #dbeafe; color: #1e40af; }

.portal-project-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.portal-project-meta span {
    font-size: 0.82rem;
    color: var(--gray-500);
}
.portal-project-meta i { margin-right: 4px; color: var(--accent); }

/* Payment progress — Enhanced */
.portal-payment-bar { margin-bottom: 16px; }
.portal-payment-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}
.portal-progress {
    height: 10px;
    background: var(--gray-100);
    border-radius: 5px;
    overflow: hidden;
}
.portal-progress-fill {
    height: 100%;
    background: var(--gradient-vibrant);
    border-radius: 5px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Milestones */
.portal-milestones { margin-top: 16px; }
.portal-milestones h4 {
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: var(--gray-700);
}
.portal-milestones h4 i { margin-right: 6px; color: var(--accent); }
.milestone-list { display: flex; flex-direction: column; gap: 8px; }
.milestone-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gray-300);
    transition: var(--transition);
}
.milestone-item:hover { background: var(--white); box-shadow: var(--shadow-sm); }
.milestone-completed { border-left-color: var(--success); }
.milestone-in_progress { border-left-color: var(--accent); }
.milestone-check { padding-top: 2px; font-size: 1rem; }
.milestone-completed .milestone-check { color: var(--success); }
.milestone-in_progress .milestone-check { color: var(--accent); }
.milestone-pending .milestone-check { color: var(--gray-300); }
.milestone-info strong { display: block; font-size: 0.85rem; }
.milestone-info p { font-size: 0.8rem; color: var(--gray-500); margin: 2px 0 0; }
.milestone-date { font-size: 0.75rem; color: var(--gray-400); }
.milestone-date i { margin-right: 4px; }

/* Invoices table in portal */
.portal-invoices-table { overflow-x: auto; }
.portal-invoices-table .admin-table th { font-size: 0.72rem; }
.portal-invoices-table .admin-table td { font-size: 0.85rem; }

@media (max-width: 768px) {
    .booking-wrapper { grid-template-columns: 1fr; }
    .portal-tabs { overflow-x: auto; }
    .portal-project-header { flex-direction: column; gap: 8px; }
}

/* ============================================
   LEGAL PAGES (Privacy, Terms) — Enhanced
   ============================================ */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--gray-700);
}
.legal-content h2 {
    font-size: 1.3rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-100);
    color: var(--gray-800);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
    font-size: 1.05rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content ul,
.legal-content ol {
    margin: 0 0 1.25rem 1.5rem;
}
.legal-content li {
    margin-bottom: 0.5rem;
}
.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(0, 112, 243, 0.3);
    text-underline-offset: 2px;
}
.legal-content a:hover {
    color: var(--accent-dark);
    text-decoration-color: var(--accent-dark);
}
.legal-contact {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin: 1rem 0 1.5rem;
    border-left: 4px solid var(--accent);
}
.legal-contact p {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

/* ============================================
   ANIMATIONS — Enhanced
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Smooth scale on hover for interactive cards */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 112, 243, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(0, 112, 243, 0); }
}

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

    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .about-preview-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-story-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --nav-height: 64px; }

    /* Prevent horizontal overflow globally */
    html, body { overflow-x: hidden; max-width: 100vw; }
    .navbar, .section, .hero, .footer, .page-hero, .section-cta, .section-testimonials {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Prevent grid children from overflowing */
    .about-preview-grid > *,
    .about-story-grid > *,
    .contact-grid > *,
    .footer-grid > *,
    .services-grid > *,
    .projects-grid > *,
    .blog-grid > * {
        min-width: 0;
        max-width: 100%;
    }

    /* Hide large decorative pseudo-elements that break layout */
    .section-cta::before,
    .section-cta::after,
    .section-testimonials::before { display: none; }

    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        flex-direction: column;
        background: var(--white);
        padding: 16px 20px 32px;
        gap: 2px;
        border-top: 1px solid var(--gray-200);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-link {
        padding: 14px 16px;
        width: 100%;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }
    .nav-cta {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
        justify-content: center;
        width: 100%;
        padding: 14px 20px;
    }

    /* Container */
    .container { padding: 0 16px; }

    /* Hero */
    .hero { min-height: auto; }
    .hero-content { padding: 32px 0; }
    .hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); margin-bottom: 1rem; }
    .hero-badge { font-size: 0.7rem; padding: 8px 16px; letter-spacing: 1.5px; margin-bottom: 1.5rem; }
    .hero-subtitle { font-size: 0.95rem; line-height: 1.7; margin-bottom: 2rem; }
    .hero-stats { gap: 20px; padding-top: 2rem; }
    .hero-stat .stat-number { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; gap: 12px; margin-bottom: 2.5rem; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    /* Floating orb - smaller on mobile */
    .hero::after { width: 200px; height: 200px; top: 5%; right: -60px; }

    /* Page hero */
    .page-hero { padding: calc(var(--nav-height) + 40px) 0 48px; }
    .page-hero::after { height: 40px; }
    .page-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
    .page-hero p { font-size: 0.95rem; }

    /* Sections */
    .section { padding: 56px 0; }
    .section-header { margin-bottom: 40px; }
    .section-header p { font-size: 0.95rem; }

    /* Buttons */
    .btn { padding: 12px 24px; font-size: 0.9rem; }
    .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
    .btn-sm { padding: 10px 18px; font-size: 0.85rem; }

    /* About preview */
    .about-preview-grid { gap: 32px; }
    .code-body { font-size: 0.72rem; padding: 16px; line-height: 1.7; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { padding: 28px 24px; }
    .service-card:hover { transform: none; }

    /* Projects */
    .projects-grid { grid-template-columns: 1fr; gap: 20px; }
    .project-image { height: 180px; }
    .project-info { padding: 20px; }
    .project-card:hover { transform: none; }

    /* Testimonials */
    .testimonial-card { padding: 28px 20px; }
    .testimonial-card::before { font-size: 3rem; top: 12px; left: 16px; }
    .testimonial-text { font-size: 0.95rem; line-height: 1.75; }
    .testimonial-author { flex-direction: column; gap: 10px; text-align: center; }
    .testimonial-avatar { width: 44px; height: 44px; font-size: 1rem; }

    /* CTA */
    .section-cta { padding: 64px 0; }
    .cta-content p { font-size: 0.95rem; }

    /* About page */
    .about-story-grid { gap: 32px; }
    .about-stat { padding: 24px 16px; }
    .about-stat .stat-number { font-size: 2.2rem; }
    .mission-grid { grid-template-columns: 1fr; gap: 16px; }
    .mission-card { padding: 32px 24px; }
    .mission-card:hover { transform: none; }
    .why-us-grid { grid-template-columns: 1fr; gap: 16px; }
    .why-us-item { padding: 24px; }
    .why-us-item:hover { transform: none; }

    /* Team */
    .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .team-card { padding: 28px 16px 24px; }
    .team-card:hover { transform: none; }
    .team-avatar { width: 72px; height: 72px; font-size: 1.1rem; }

    /* Blog */
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .blog-card-image { height: 180px; }
    .blog-card-content { padding: 20px; }
    .blog-card:hover { transform: none; }

    /* Tech grid */
    .tech-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .tech-item { padding: 20px 12px; gap: 8px; }
    .tech-item:hover { transform: none; }
    .tech-item i { font-size: 1.5rem; }
    .tech-item span { font-size: 0.72rem; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; }
    .form-group input,
    .form-group textarea,
    .form-group select { padding: 12px 14px; font-size: 16px; }

    /* Contact */
    .contact-grid { gap: 32px; }
    .contact-info-card { padding: 28px 24px; }
    .map-container iframe { height: 280px; }

    /* Services detail */
    .service-detail-card { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
    .service-detail-card.reverse { direction: ltr; }
    .service-detail-icon { width: 64px; height: 64px; font-size: 1.3rem; }
    .services-detail-list { gap: 32px; }

    /* Process */
    .process-grid { flex-direction: column; align-items: center; }
    .process-connector { width: 2px; height: 24px; }
    .process-step { max-width: 280px; }

    /* Footer */
    .footer { padding: 64px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom-links { justify-content: center; }
    .newsletter-input-group { flex-direction: column; gap: 8px; }
    .newsletter-input-group input { border-radius: var(--radius-sm); }
    .newsletter-input-group button { border-radius: var(--radius-sm); padding: 14px 20px; }

    /* Modal */
    .modal-overlay { padding: 12px; }
    .modal-content { padding: 24px; margin: 0; max-height: 90vh; border-radius: var(--radius-md); }

    /* Booking */
    .booking-wrapper { grid-template-columns: 1fr; }
    .booking-info-card { padding: 28px 24px; }

    /* Portal */
    .portal-tabs { overflow-x: auto; gap: 2px; padding: 4px; -webkit-overflow-scrolling: touch; }
    .portal-tab { padding: 10px 16px; font-size: 0.82rem; white-space: nowrap; }
    .portal-project-header { flex-direction: column; gap: 8px; }
    .portal-project-card { padding: 24px; }

    /* Client login */
    .client-login-card { padding: 28px 24px; }

    /* Legal pages */
    .legal-content { font-size: 0.92rem; }
    .legal-contact { padding: 20px; }

    /* Back to top */
    .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }

    /* Disable hover transforms on touch devices */
    .service-card:active { border-color: transparent; box-shadow: var(--shadow-card); }
    .project-card:active { box-shadow: var(--shadow-card); }

    /* Portfolio filters */
    .portfolio-filters { gap: 8px; }
    .filter-btn { padding: 8px 18px; font-size: 0.8rem; }
}

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

    .hero h1 { font-size: clamp(1.5rem, 8vw, 2rem); }
    .hero-stats { flex-direction: column; gap: 16px; text-align: left; }
    .hero-stat { display: flex; align-items: baseline; gap: 8px; }
    .hero-stat .stat-label { margin-top: 0; }

    .team-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stats-card { grid-template-columns: 1fr; }

    .testimonial-card { padding: 24px 16px; }
    .testimonial-text { font-size: 0.9rem; }

    .section { padding: 44px 0; }
    .section-cta { padding: 48px 0; }

    .service-card { padding: 24px 20px; }
    .service-icon { width: 50px; height: 50px; font-size: 1.2rem; margin-bottom: 18px; }

    .blog-card-content { padding: 16px; }
    .project-info { padding: 16px; }

    .footer-grid { gap: 24px; }

    .modal-content { padding: 20px 16px; }

    .nav-brand { font-size: 1.15rem; }

    /* Ensure touch targets are large enough */
    .nav-link { min-height: 48px; display: flex; align-items: center; }
    .btn { min-height: 48px; }
    .filter-btn { min-height: 44px; }
    .testimonial-btn { width: 48px; height: 48px; }
    .social-links a { width: 48px; height: 48px; }
    .team-social a { width: 44px; height: 44px; }

    /* Prevent text overflow */
    .hero-subtitle { max-width: 100%; }
    .section-header p { max-width: 100%; }
    .cta-content p { max-width: 100%; }
}

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover,
    .project-card:hover,
    .blog-card:hover,
    .team-card:hover,
    .mission-card:hover,
    .why-us-item:hover,
    .tech-item:hover,
    .about-stat:hover { transform: none; }
}

/* ============================================
   PROFESSIONAL POLISH — Global Refinements
   ============================================ */

/* Sharper section alt dividers */
.section-alt {
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

/* Testimonial section subtle bg */
.section-testimonials {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

/* Tech section on white */
.section-technologies {
    background: var(--white);
}

/* Tighter service grid on large screens */
.services-grid {
    gap: 20px;
}

/* Project card image gradient */
.project-placeholder-img {
    background: linear-gradient(145deg, var(--primary) 0%, #112240 60%, #0057C2 100%);
    color: rgba(255,255,255,0.15);
}

/* Blog placeholder img */
.blog-placeholder-img {
    background: linear-gradient(145deg, var(--primary) 0%, #112240 60%, #0057C2 100%);
    color: rgba(255,255,255,0.15);
}

/* Testimonial card cleaner */
.testimonial-card {
    box-shadow: var(--shadow-sm);
}

/* Mission icon cleaner */
.mission-icon {
    background: var(--accent);
    box-shadow: 0 6px 20px rgba(0,112,243,0.25);
    border-radius: var(--radius-md);
}

/* About stat numbers */
.about-stat {
    box-shadow: var(--shadow-sm);
}

/* Process numbers */
.process-number {
    box-shadow: 0 4px 16px rgba(0,112,243,0.2);
}

/* Contact info card top border */
.contact-info-card::before {
    background: linear-gradient(90deg, var(--accent), var(--teal));
}

/* Form labels */
.form-group label {
    color: var(--gray-700);
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

/* Footer link hover line */
.footer-col ul a:hover {
    color: var(--white);
    padding-left: 0;
}

/* Sticky nav border always visible for clarity */
.navbar {
    border-bottom-color: rgba(0,0,0,0.06);
}

/* Portfolio filter buttons */
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(0,112,243,0.25);
}

/* Card group focus outline for accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
.filter-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Subtle divider between hero stats */
.hero-stat + .hero-stat {
    padding-left: 44px;
    border-left: 1px solid rgba(255,255,255,0.08);
}

/* Service detail card hover border color fix */
.service-detail-card:hover {
    border-color: rgba(0,112,243,0.15);
    box-shadow: var(--shadow-card);
}

/* Team card top bar on white bg */
.team-card {
    border-top: 3px solid transparent;
    background-clip: padding-box;
}
.team-card:hover {
    border-top-color: var(--accent);
}
.team-card::before { display: none; }
