/*
 * NORTHGRID IT SERVICES - Premium Enterprise Stylesheet
 * Custom Designed for Premium Agency Aesthetics (Awwwards, Cuberto, Locomotive inspired)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

/* Legacy subpage cards — IO reveal (main.js toggles .is-in) */
.sub-reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(14px);
}

.sub-reveal {
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sub-reveal.is-in {
  opacity: 1;
  transform: none;
}

:root {
    --primary-color: #2F6BFF;
    --secondary-color: #7C3AED;
    --accent-color: #06B6D4;
    --accent-2-color: #EC4899;
    --accent-3-color: #22C55E;
    --highlight-color: #F59E0B;
    --text-color: #0F172A;
    --text-light: #475569;
    --bg-light: #F8FAFC;
    /* Softened enterprise dark palette (~35% dark surface budget) */
    --bg-dark: #0E1A2B;
    --bg-dark-deep: #132238;
    --bg-dark-card: rgba(19, 34, 56, 0.55);
    --bg-frost: #FCFDFF;
    --bg-mist-start: #F8FAFF;
    --bg-mist-end: #EEF5FF;
    --ng-heading: #0F172A;
    --ng-body: #64748B;
    --ng-label: #2F6BFF;
    --ng-border: #E6EDF8;
    --card-color: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    --gradient-dark: linear-gradient(135deg, #0E1A2B 0%, #132238 100%);
    --gradient-glow: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, rgba(6, 182, 212, 0) 70%);
    --font-headings: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --hero-bg: #0E1A2B;
    --hero-space-xs: 8px;
    --hero-space-sm: 12px;
    --hero-space-md: 20px;
    --hero-space-lg: 28px;
    --hero-badge-size: 14px;
    --hero-heading-min: 72px;
    --hero-heading-max: 88px;
    --hero-desc-size: 22px;
    --hero-btn-size: 18px;
    --hero-stat-size: 56px;
    --hero-image-max: 1250px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

picture {
    display: block;
    max-width: 100%;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 800;
    color: var(--ng-heading, #0F172A);
    letter-spacing: -0.02em;
}

p {
    font-size: 1.05rem;
    color: var(--text-light);
    font-weight: 400;
}

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

/* Custom Selection */
::selection {
    background-color: var(--secondary-color);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 5px;
    border: 2px solid var(--bg-light);
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Custom Global Cursor (Interactive) */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
}
@media (min-width: 992px) {
    .custom-cursor {
        display: block;
    }
}
.custom-cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(21, 94, 239, 0.1);
    border-color: var(--accent-color);
}

/* Custom Section Spacing — aligned to design system */
section {
    padding: var(--ng-section-y, clamp(5rem, 7vw, 6rem)) 0;
    position: relative;
}
@media (max-width: 768px) {
    section {
        padding: var(--ng-section-y-mobile, clamp(3.5rem, 8vw, 4.5rem)) 0;
    }
}

/* Dark Section Configuration */
.section-dark {
    background-color: var(--bg-dark);
    color: #FFFFFF;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
    color: #FFFFFF;
}
.section-dark p {
    color: #94A3B8;
}

/* Navigation - Glassmorphic Navbar */
.navbar-custom {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition-smooth);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.navbar-custom.scrolled {
    padding: 14px 0;
    /* Superseded by site-chrome.css solid dark glass for readable sticky nav */
    background: rgba(8, 17, 32, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.section-dark-nav.scrolled {
    background: rgba(8, 20, 32, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.navbar-brand-custom {
    font-family: var(--font-headings);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
    letter-spacing: -0.03em;
}
.nav-link-custom {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(241, 245, 249, 0.88) !important;
    padding: 8px 16px !important;
    position: relative;
    letter-spacing: 0.01em;
}
.section-dark-nav .nav-link-custom {
    color: #E2E8F0 !important;
}
.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}
.nav-link-custom:hover::after, .nav-link-custom.active::after {
    width: calc(100% - 32px);
}

/* Mega Dropdown & Hover Dropdowns */
.nav-item-dropdown {
    position: relative;
}
.dropdown-menu-mega {
    position: absolute;
    width: 900px;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    top: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 3px solid var(--secondary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-md);
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-spring);
    display: block;
    z-index: 1050;
}
.nav-item-dropdown:hover .dropdown-menu-mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
@media (max-width: 991px) {
    .dropdown-menu-mega {
        position: static;
        width: 100%;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 10px;
    }
}

.mega-menu-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.mega-menu-link {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    text-decoration: none;
}
.mega-menu-link:hover {
    background: rgba(21, 94, 239, 0.04);
}
.mega-menu-link-icon {
    width: 40px;
    height: 40px;
    background: rgba(21, 94, 239, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}
.mega-menu-link:hover .mega-menu-link-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.mega-menu-link-content h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary-color);
}
.mega-menu-link-content p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Premium Buttons & Magnetic Wrappers */
.btn-magnetic-wrap {
    display: inline-block;
    position: relative;
}

.btn-premium {
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(21, 94, 239, 0.2);
    transition: var(--transition-smooth);
}

.btn-premium-primary {
    background: var(--gradient-primary);
    color: #FFFFFF !important;
}

.btn-premium-outline {
    background: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    box-shadow: none;
}
.section-dark .btn-premium-outline {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-premium:hover::before {
    width: 300px;
    height: 300px;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(21, 94, 239, 0.35);
}

.btn-premium-outline:hover {
    background: var(--primary-color);
    color: white !important;
    box-shadow: 0 12px 35px rgba(10, 31, 68, 0.25);
}
.section-dark .btn-premium-outline:hover {
    background: white;
    color: var(--bg-dark) !important;
    border-color: white;
}

.btn-arrow {
    transition: var(--transition-spring);
}
.btn-premium:hover .btn-arrow {
    transform: translateX(5px);
}

/* Background Animations (Mesh, Blobs, Glowing Circles) */
.mesh-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background-color: var(--bg-light);
}
.section-dark .mesh-gradient-bg {
    background-color: var(--bg-dark);
}

.glowing-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
    animation: blob-float 15s infinite alternate;
}
.section-dark .glowing-blob {
    opacity: 0.08;
}

.glowing-blob-1 {
    width: 500px;
    height: 500px;
    background: var(--secondary-color);
    top: -10%;
    right: -10%;
}
.glowing-blob-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-color);
    bottom: -15%;
    left: -10%;
    animation-delay: -5s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(80px, 50px) scale(1.1);
    }
    100% {
        transform: translate(-40px, -80px) scale(0.9);
    }
}

/* Hero base utilities (full hero system defined in Premium Hero block below) */
.hero-image-wrap {
    position: relative;
    width: 100%;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 4px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Infinite Client Logo Ticker */
.ticker-wrap {
    overflow: hidden;
    padding: 30px 0;
    background: rgba(248, 250, 252, 0.8);
    border-top: 1px solid rgba(15, 23, 42, 0.03);
    border-bottom: 1px solid rgba(15, 23, 42, 0.03);
    position: relative;
    z-index: 2;
}
.section-dark + .ticker-wrap {
    background: #06111C;
    border-color: rgba(255, 255, 255, 0.03);
}

.logo-ticker {
    display: flex;
    width: max-content;
    gap: 80px;
    animation: ticker-animation 30s linear infinite;
}

.logo-ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    font-family: var(--font-headings);
    font-size: 1.4rem;
    font-weight: 800;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.03em;
    user-select: none;
    transition: var(--transition-smooth);
}
.ticker-item:hover {
    color: var(--secondary-color);
}
.ticker-item i {
    font-size: 1.6rem;
}

@keyframes ticker-animation {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Section Header Typography */
.section-header {
    margin-bottom: 60px;
}
.section-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}
.section-dark .section-subtitle {
    color: var(--accent-color);
}
.section-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
}

/* Custom Interactive Services Grid (Awwwards Style) */
.services-showcase-container {
    margin-top: 40px;
}

.service-card-premium {
    background: var(--card-color);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--border-radius-lg);
    padding: 50px 40px;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(10, 31, 68, 0.02);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.service-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.service-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(10, 31, 68, 0.08);
    border-color: rgba(21, 94, 239, 0.15);
}

.service-card-premium:hover::before {
    opacity: 1;
}

/* Dark Card Explicit Styles & Hover Support */
.bg-dark-card {
    background: var(--bg-dark-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #FFFFFF !important;
}

.bg-dark-card h3 {
    color: #FFFFFF !important;
}

.bg-dark-card p {
    color: #94A3B8 !important;
}

.bg-dark-card .service-card-link {
    color: var(--accent-color) !important;
}

.service-card-premium.bg-dark-card:hover {
    background: #0E2742 !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 30px 60px rgba(0, 194, 255, 0.15) !important;
}

.service-card-premium.bg-dark-card:hover h3 {
    color: var(--accent-color) !important;
}

.service-card-premium.bg-dark-card:hover p {
    color: #E2E8F0 !important;
}

.service-card-premium.bg-dark-card:hover .service-card-link {
    color: #FFFFFF !important;
}

.service-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(21, 94, 239, 0.06);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.service-card-premium:hover .service-icon-box {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-card-premium h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 16px;
    transition: all 0.4s ease;
}
.service-card-premium:hover h3 {
    color: var(--secondary-color);
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}
.service-card-link i {
    font-size: 0.85rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.service-card-premium:hover .service-card-link i {
    transform: translateX(6px);
    color: var(--secondary-color);
}

/* Cloud Platform Section & 3D Dashboard Mock */
.dashboard-glass-container {
    background: rgba(8, 20, 32, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    padding: 30px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.dashboard-dots {
    display: flex;
    gap: 6px;
}
.dashboard-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dashboard-dot-red { background: #FF5F56; }
.dashboard-dot-yellow { background: #FFBD2E; }
.dashboard-dot-green { background: #27C93F; }

.dashboard-tab {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cloud-chart-bar {
    height: 140px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cloud-chart-column {
    width: 25px;
    background: rgba(21, 94, 239, 0.2);
    border-radius: 6px 6px 0 0;
    transition: height 1s ease-in-out;
    position: relative;
}
.cloud-chart-column::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--gradient-primary);
    border-radius: 6px 6px 0 0;
}

.cloud-chart-column-1 { height: 60%; }
.cloud-chart-column-2 { height: 85%; }
.cloud-chart-column-3 { height: 45%; }
.cloud-chart-column-4 { height: 95%; }
.cloud-chart-column-5 { height: 70%; }
.cloud-chart-column-6 { height: 90%; }

.console-terminal {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius-md);
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #22C55E;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Technology Stack & Interactive Logos */
.tech-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tech-tab-btn {
    padding: 12px 28px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.tech-tab-btn.active, .tech-tab-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(21, 94, 239, 0.25);
}

.tech-grid-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.tech-logo-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition-spring);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.tech-logo-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 194, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 194, 255, 0.1);
}

.tech-logo-card i {
    font-size: 2.5rem;
    color: #94A3B8;
    transition: var(--transition-smooth);
}
.tech-logo-card:hover i {
    color: var(--accent-color);
}

.tech-logo-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #E2E8F0;
}

/* Industries Section Styling */
.industry-grid-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 380px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    z-index: 1;
}

.industry-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-grid-card:hover .industry-image-bg {
    transform: scale(1.1);
}

.industry-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.industry-glass-card {
    z-index: 2;
}

/* Digital Transformation Step-by-Step Node */
.process-step-container {
    position: relative;
    margin-top: 50px;
}
.process-line {
    position: absolute;
    top: 15%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(15, 23, 42, 0.08);
    z-index: 1;
}
.section-dark .process-line {
    background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 768px) {
    .process-line {
        display: none;
    }
}

.process-step-node {
    text-align: center;
    position: relative;
    z-index: 2;
}

.process-step-num {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 0 auto 24px auto;
    box-shadow: 0 10px 25px rgba(21, 94, 239, 0.1);
    transition: var(--transition-spring);
}
.section-dark .process-step-num {
    background: var(--bg-dark);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.process-step-node:hover .process-step-num {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(21, 94, 239, 0.3);
}

.process-step-node h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Interactive Before / After Comparison */
.compare-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(10, 31, 68, 0.12);
}

.compare-img-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.compare-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-overlay-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    border-right: 3px solid #FFFFFF;
}
.compare-overlay-before img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
}

.compare-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border: 4px solid #FFFFFF;
    border-radius: 50%;
    z-index: 3;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Testimonials Carousel Section */
.testimonial-card-premium {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    margin: 15px;
    box-shadow: 0 20px 40px rgba(10, 31, 68, 0.04);
}
.section-dark .testimonial-card-premium {
    background: rgba(13, 32, 53, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-client-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.testimonial-client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--secondary-color);
}
.testimonial-client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-client-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.testimonial-client-info p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.rating-stars {
    color: #FBBF24;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Timeline Components */
.timeline-premium {
    position: relative;
    padding: 40px 0;
}
.timeline-premium::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(15, 23, 42, 0.06);
    transform: translateX(-50%);
}
@media (max-width: 768px) {
    .timeline-premium::before {
        left: 20px;
    }
}

.timeline-item-premium {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    width: 100%;
    position: relative;
}
.timeline-item-premium:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--bg-light);
    border: 4px solid var(--secondary-color);
    border-radius: 50%;
    z-index: 2;
}
@media (max-width: 768px) {
    .timeline-dot {
        left: 20px;
    }
}

.timeline-content-card {
    width: 45%;
    background: var(--card-color);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: 0 15px 35px rgba(10, 31, 68, 0.03);
}
@media (max-width: 768px) {
    .timeline-content-card {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    .timeline-item-premium {
        flex-direction: row !important;
    }
}

/* Forms & Validation (Floating Labels) */
.form-group-custom {
    position: relative;
    margin-bottom: 24px;
}

.form-control-custom {
    width: 100%;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--border-radius-md);
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
    outline: none;
}
.section-dark .form-control-custom {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
}

.form-control-custom:focus {
    background: var(--bg-light);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.1);
}
.section-dark .form-control-custom:focus {
    background: var(--bg-dark);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 194, 255, 0.15);
}

.form-label-custom {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition-smooth);
}
.form-control-custom:focus ~ .form-label-custom,
.form-control-custom:not(:placeholder-shown) ~ .form-label-custom {
    top: 0;
    left: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 4px;
}
.section-dark .form-control-custom:focus ~ .form-label-custom,
.section-dark .form-control-custom:not(:placeholder-shown) ~ .form-label-custom {
    color: var(--accent-color);
    background: var(--bg-dark);
}

/* Footer Section */
.footer-custom {
    background: #040A12;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 30px 0;
    color: #94A3B8;
}

.footer-custom h4 {
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-link-list {
    list-style: none;
    padding-left: 0;
}
.footer-link-list li {
    margin-bottom: 12px;
}
.footer-link-list a {
    color: #94A3B8;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.footer-link-list a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
    display: inline-block;
}

.social-circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #E2E8F0;
    font-size: 1.1rem;
    transition: var(--transition-spring);
}
.social-circle-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-4px) scale(1.05);
    border-color: transparent;
}

.footer-bottom-line {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    margin-top: 60px;
    font-size: 0.9rem;
}

/* Preloader Animation */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    text-align: center;
}

.loader-logo .logo--loader {
    margin: 0 auto 15px;
}

.loader-bar {
    width: 150px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar-fill {
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    animation: loader-fill-anim 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loader-fill-anim {
    to {
        width: 100%;
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(21, 94, 239, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-spring);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    transform: translateY(-5px);
}

/* FAQ Styling */
.faq-accordion-custom .accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    margin-bottom: 12px;
}
.section-dark .faq-accordion-custom .accordion-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.faq-accordion-custom .accordion-button {
    background: transparent;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.15rem;
    padding: 24px 0;
    border: none;
    box-shadow: none;
}
.section-dark .faq-accordion-custom .accordion-button {
    color: #FFFFFF;
}

.faq-accordion-custom .accordion-button::after {
    filter: grayscale(1) invert(0);
}
.section-dark .faq-accordion-custom .accordion-button::after {
    filter: grayscale(1) invert(1);
}

.faq-accordion-custom .accordion-body {
    padding: 0 0 24px 0;
    color: var(--text-light);
}
.section-dark .faq-accordion-custom .accordion-body {
    color: #94A3B8;
}

/* Jobs and Open Positions styling */
.job-item-card {
    background: var(--card-color);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(10, 31, 68, 0.02);
    transition: var(--transition-spring);
}
.job-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(21, 94, 239, 0.08);
    border-color: rgba(21, 94, 239, 0.15);
}

.job-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}
.job-tag {
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(21, 94, 239, 0.05);
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Career CTA Section Improvements */
.career-cta-section {
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    z-index: 1;
}

.career-cta-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/opt/hero_team-1024w.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.75;
    z-index: 0;
    pointer-events: none;
}

.career-cta-section p {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 650px;
    margin-bottom: 40px;
}

.career-glass-opening-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.career-glass-opening-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(21, 94, 239, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
    transition: all 0.5s ease;
}

.career-glass-opening-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 194, 255, 0.3);
    box-shadow: 0 40px 80px rgba(0, 194, 255, 0.1);
}

.career-glass-opening-card:hover::before {
    background: radial-gradient(circle, rgba(0, 194, 255, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
}

.career-opening-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 0;
    transition: all 0.3s ease;
}
.career-opening-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.career-opening-item:first-child {
    padding-top: 0;
}
.career-opening-item:hover {
    padding-left: 8px;
}

.career-opening-info h5 {
    color: #FFFFFF !important;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.career-opening-info span {
    font-size: 0.8rem;
    color: #94A3B8;
}

.career-opening-arrow {
    color: var(--accent-color);
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}
.career-opening-item:hover .career-opening-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   NORTHGRID PREMIUM REDESIGN - HIGH-END FUTURISTIC DESIGN SYSTEM
   ========================================================================== */


/* Shared hero primitives for subpages (non-home) */
.hero-wrapper:not(.hero-home) {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--hero-bg);
}
.hero-wrapper:not(.hero-home) .hero-heading {
    visibility: visible;
    color: #FFFFFF;
    font-weight: 800;
    line-height: 1.15;
}
.hero-wrapper:not(.hero-home) .hero-heading span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-wrapper:not(.hero-home) .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.22);
    color: var(--accent-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.hero-wrapper:not(.hero-home) .hero-desc {
    max-width: 650px;
    color: #94A3B8;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* 1. Premium Hero — homepage hero layout (do not clip under navbar) */
.hero-home.hero-wrapper {
    --nav-offset: 140px;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--nav-offset) 0 80px;
    z-index: 10;
    background: var(--hero-bg);
    overflow: visible;
    color: #FFFFFF;
    margin: 0;
    transform: none;
}

.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: auto;
    min-height: calc(100dvh - var(--nav-offset, 140px) - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-home .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.22);
    color: var(--accent-color);
    font-weight: 700;
    font-size: var(--hero-badge-size);
    line-height: 1;
    margin-bottom: var(--hero-space-md);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.hero-home .hero-tag i {
    font-size: 12px;
    opacity: 0.9;
}

.hero-home .hero-heading {
    max-width: 700px;
    margin: 0 0 var(--hero-space-md);
    font-size: clamp(56px, 6vw, 84px);
    font-weight: 800;
    line-height: 1.08;
    text-align: left;
    letter-spacing: -2px;
    color: #FFFFFF;
    visibility: visible;
    overflow: visible;
    position: relative;
    z-index: 2;
}

.hero-home .hero-heading .line {
    display: block;
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
    background: none;
}

.hero-home .hero-heading .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-home .hero-desc {
    max-width: 650px;
    margin: 0 auto var(--hero-space-lg);
    text-align: center;
    font-size: var(--hero-desc-size);
    line-height: 1.55;
    color: #94A3B8;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--hero-space-lg);
}

.hero-wrapper .btn-premium {
    font-size: var(--hero-btn-size);
    padding: 14px 28px;
    will-change: transform;
}

.hero-wrapper .btn-premium-primary {
    box-shadow: 0 10px 36px rgba(37, 99, 235, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hero-wrapper .btn-premium-primary:hover {
    box-shadow: 0 14px 42px rgba(124, 58, 237, 0.4), 0 0 24px rgba(6, 182, 212, 0.2);
}

.hero-wrapper .btn-premium-outline {
    background: rgba(255, 255, 255, 0.03);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
}

.hero-wrapper .btn-premium-outline:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(124, 58, 237, 0.22));
    border-color: rgba(6, 182, 212, 0.45);
    color: #FFFFFF !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.hero-home .hero-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 0 0 var(--hero-space-lg);
    flex-wrap: wrap;
    width: 100%;
}

.stat-card-premium {
    position: relative;
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    padding: 14px 22px;
    min-width: 168px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.stat-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.55), rgba(124, 58, 237, 0.35), rgba(236, 72, 153, 0.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.35s ease;
}

.stat-card-premium:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 18px 36px rgba(6, 182, 212, 0.14), 0 14px 30px rgba(0, 0, 0, 0.3);
}

.stat-card-premium:hover::before {
    opacity: 1;
}

.stat-card-premium h3,
.stat-card-premium .counter-val {
    font-size: clamp(2rem, 3.5vw, var(--hero-stat-size));
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card-premium p {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
}

.hero-illustration-centered {
    position: relative;
    max-width: min(var(--hero-image-max), 92vw);
    width: 100%;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px;
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.38);
    will-change: transform;
}

.hero-image-container {
    position: relative;
    border-radius: calc(var(--border-radius-lg) - 4px);
    overflow: hidden;
    z-index: 2;
    aspect-ratio: 1 / 1;
    max-height: min(42vh, 520px);
    margin: 0 auto;
    width: min(100%, calc(min(42vh, 520px) * 1.25));
    box-shadow: 0 20px 48px rgba(10, 31, 68, 0.35);
}

.hero-image-container img,
.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    opacity: 0;
    transform: translateZ(0);
    transition: opacity 0.55s ease;
}

.hero-main-img.is-loaded,
.hero-main-img.loaded {
    opacity: 1;
}

.skeleton-placeholder {
    background: radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.12) 0%, rgba(6, 182, 212, 0.06) 45%, rgba(8, 17, 32, 0.4) 100%);
}

.skeleton-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform: translateX(-100%);
    animation: skeleton-shimmer 1.8s infinite;
    z-index: 1;
    pointer-events: none;
}

.skeleton-placeholder:has(.hero-main-img.is-loaded)::before,
.skeleton-placeholder:has(.hero-main-img.loaded)::before {
    display: none;
}

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

/* Background system */
.hero-bg-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-mesh-gradient {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse 50% 40% at 20% 30%, rgba(37, 99, 235, 0.28), transparent 60%),
        radial-gradient(ellipse 45% 35% at 80% 20%, rgba(124, 58, 237, 0.26), transparent 55%),
        radial-gradient(ellipse 40% 40% at 60% 80%, rgba(6, 182, 212, 0.18), transparent 55%),
        radial-gradient(ellipse 35% 30% at 15% 75%, rgba(236, 72, 153, 0.12), transparent 50%);
    animation: mesh-drift 22s ease-in-out infinite alternate;
    will-change: transform;
}

.glow-aurora {
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 90, 237, 0.22) 0%, rgba(6, 182, 212, 0.1) 45%, transparent 70%);
    filter: blur(90px);
    top: -18%;
    right: -12%;
    animation: aurora-slow-spin 28s infinite linear;
    will-change: transform;
}

.glow-aurora-secondary {
    width: 55%;
    height: 55%;
    top: auto;
    bottom: -20%;
    right: auto;
    left: 25%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.16) 0%, rgba(37, 99, 235, 0.08) 50%, transparent 70%);
    animation-duration: 36s;
    animation-direction: reverse;
}

.glow-blob-pink {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.16) 0%, transparent 70%);
    filter: blur(80px);
    bottom: -12%;
    left: -8%;
    animation: blob-float-alt 18s infinite alternate ease-in-out;
    will-change: transform;
}

.hero-subtle-glow {
    position: absolute;
    width: 40%;
    height: 40%;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    filter: blur(60px);
}

.mouse-glow-tracker {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.16) 0%, transparent 70%);
    filter: blur(70px);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    will-change: transform, opacity;
}

.svg-grid-lines {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 35%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 78%);
}

.hero-neural-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
    z-index: 1;
}

.hero-neural-paths path {
    stroke-dasharray: 8 14;
    animation: neural-dash 18s linear infinite;
}

.hero-neural-nodes circle {
    animation: neural-pulse 4s ease-in-out infinite;
}

.hero-neural-nodes circle:nth-child(odd) {
    animation-delay: 1.2s;
}

.svg-wave-lines {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    opacity: 0.18;
    z-index: 1;
}

.svg-wave-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-waves 12s infinite alternate ease-in-out;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    will-change: transform, opacity;
}

.particle-1 {
    width: 10px;
    height: 10px;
    background: rgba(6, 182, 212, 0.35);
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.45);
    top: 22%;
    left: 12%;
    animation: particle-floating-slow 9s infinite alternate ease-in-out;
}

.particle-2 {
    width: 7px;
    height: 7px;
    background: rgba(124, 58, 237, 0.35);
    box-shadow: 0 0 14px rgba(124, 58, 237, 0.45);
    top: 42%;
    right: 14%;
    animation: particle-floating-slow-alt 11s infinite alternate ease-in-out;
}

.particle-3 {
    width: 12px;
    height: 12px;
    background: rgba(236, 72, 153, 0.22);
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.35);
    bottom: 28%;
    left: 20%;
    animation: particle-floating-slow 13s infinite alternate-reverse ease-in-out;
}

.particle-4 {
    width: 6px;
    height: 6px;
    background: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.45);
    top: 18%;
    right: 28%;
    animation: particle-floating-slow-alt 8s infinite alternate ease-in-out;
}

.particle-5 {
    width: 9px;
    height: 9px;
    background: rgba(6, 182, 212, 0.25);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
    bottom: 18%;
    right: 22%;
    animation: particle-floating-slow 10s infinite alternate ease-in-out;
}

@keyframes aurora-slow-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.08); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes blob-float-alt {
    0% { transform: translate3d(0, 0, 0) scale(0.92); }
    50% { transform: translate3d(90px, -50px, 0) scale(1.08); }
    100% { transform: translate3d(-40px, 60px, 0) scale(0.96); }
}

@keyframes mesh-drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-2%, 1.5%, 0) scale(1.05); }
}

@keyframes draw-waves {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}

@keyframes neural-dash {
    to { stroke-dashoffset: -400; }
}

@keyframes neural-pulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.35); }
}

@keyframes particle-floating-slow {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.45; }
    50% { transform: translate3d(24px, -32px, 0) scale(1.15); opacity: 0.85; }
    100% { transform: translate3d(-16px, 16px, 0) scale(0.92); opacity: 0.55; }
}

@keyframes particle-floating-slow-alt {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
    50% { transform: translate3d(-28px, 22px, 0) scale(0.85); opacity: 0.8; }
    100% { transform: translate3d(18px, -14px, 0) scale(1.08); opacity: 0.5; }
}

/* Floating glass KPI cards */
.floating-glass-card {
    position: absolute;
    z-index: 20;
    width: max-content;
    max-width: 230px;
    padding: 1px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.55), rgba(124, 58, 237, 0.35), rgba(255, 255, 255, 0.08));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
    color: #FFFFFF;
    will-change: transform;
}

.floating-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: calc(var(--border-radius-md) - 1px);
    background: rgba(8, 17, 32, 0.72);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.floating-glass-card i {
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
}

.floating-card-copy h6 {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.floating-card-copy p {
    margin: 2px 0 0;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.3;
}

.floating-card-1 { top: 14%; left: -2%; }
.floating-card-2 { bottom: 16%; right: -1%; }
.floating-card-3 { top: 58%; left: -1%; }
.floating-card-4 { top: 4%; right: 8%; }

@media (max-width: 1199px) {
    .floating-card-1 { left: 0; }
    .floating-card-2 { right: 0; }
    .floating-card-3 { left: 0; }
    .floating-card-4 { right: 2%; }
}

@media (max-width: 991px) {
    .hero-home.hero-wrapper {
        --nav-offset: 120px;
        height: auto;
        max-height: none;
        min-height: 100vh;
        min-height: 100dvh;
        padding: var(--nav-offset) 0 64px;
        overflow: visible;
    }

    .hero-home .hero-heading {
        font-size: clamp(40px, 8vw, 56px);
        max-width: 92vw;
        visibility: visible;
        letter-spacing: -1.5px;
    }

    .hero-home .hero-desc {
        font-size: 1.05rem;
        max-width: 92vw;
    }

    .hero-wrapper .btn-premium {
        font-size: 1rem;
        padding: 12px 22px;
    }

    .stat-card-premium {
        min-width: 140px;
        padding: 12px 16px;
        flex: 1 1 140px;
    }

    .stat-card-premium h3,
    .stat-card-premium .counter-val {
        font-size: 2rem;
    }

    .floating-glass-card {
        display: none;
    }

    .hero-image-container {
        max-height: min(38vh, 420px);
        width: min(100%, 420px);
    }
}

@media (max-width: 575px) {
    .hero-stats {
        gap: 10px;
    }

    .hero-cta-group {
        width: 100%;
        flex-direction: column;
    }

    .hero-cta-group .btn-magnetic-wrap,
    .hero-cta-group .btn-premium {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .glow-aurora,
    .glow-blob-pink,
    .hero-mesh-gradient,
    .hero-particle,
    .svg-wave-path,
    .hero-neural-paths path,
    .hero-neural-nodes circle,
    .skeleton-placeholder::before {
        animation: none !important;
    }
}


@media (max-height: 860px) and (min-width: 992px) {
    .hero-home.hero-wrapper {
        --nav-offset: 120px;
        --hero-space-md: 12px;
        --hero-space-lg: 16px;
        padding-top: var(--nav-offset);
        padding-bottom: 56px;
    }
    .hero-home .hero-heading {
        font-size: clamp(44px, 4.5vw, 64px);
    }
    .hero-home .hero-desc {
        font-size: 1.05rem;
        line-height: 1.45;
    }
    .hero-home .hero-visual-frame {
        max-height: min(48vh, 420px);
    }
    .hero-home .stat-card-premium {
        padding: 10px 16px;
        min-width: 150px;
    }
    .hero-home .stat-card-premium .counter-val {
        font-size: 2.2rem;
    }
}

/* 4. Section Custom Backdrops & Unique Visual Identities (Light/Dark alternating) */
.bg-decorations-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

/* Alternating text & background mappings */
.section-dark, #services-sec, #tech-stack-sec, #case-studies-sec, #careers-sec, .footer-custom {
    background-color: var(--bg-dark, #0E1A2B) !important;
    color: #FFFFFF;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5, .section-dark h6,
#services-sec h1, #services-sec h2, #services-sec h3, #services-sec h4, #services-sec h5, #services-sec h6,
#tech-stack-sec h1, #tech-stack-sec h2, #tech-stack-sec h3, #tech-stack-sec h4, #tech-stack-sec h5, #tech-stack-sec h6,
#case-studies-sec h1, #case-studies-sec h2, #case-studies-sec h3, #case-studies-sec h4, #case-studies-sec h5, #case-studies-sec h6,
#careers-sec h1, #careers-sec h2, #careers-sec h3, #careers-sec h4, #careers-sec h5, #careers-sec h6 {
    color: #FFFFFF !important;
}
.section-dark p, #services-sec p, #tech-stack-sec p, #case-studies-sec p, #careers-sec p {
    color: #94A3B8 !important;
}

/* Light Sections */
#about, #solutions-sec, #industries-sec, #process-sec, #advantage-sec, #testimonials-sec {
    background-color: #FFFFFF !important;
    color: var(--text-color);
}
#about h1, #about h2, #about h3, #about h4, #about h5, #about h6,
#solutions-sec h1, #solutions-sec h2, #solutions-sec h3, #solutions-sec h4, #solutions-sec h5, #solutions-sec h6,
#industries-sec h1, #industries-sec h2, #industries-sec h3, #industries-sec h4, #industries-sec h5, #industries-sec h6,
#process-sec h1, #process-sec h2, #process-sec h3, #process-sec h4, #process-sec h5, #process-sec h6,
#advantage-sec h1, #advantage-sec h2, #advantage-sec h3, #advantage-sec h4, #advantage-sec h5, #advantage-sec h6,
#testimonials-sec h1, #testimonials-sec h2, #testimonials-sec h3, #testimonials-sec h4, #testimonials-sec h5, #testimonials-sec h6 {
    color: #0F172A !important;
}
#about p, #solutions-sec p, #industries-sec p, #process-sec p, #advantage-sec p, #testimonials-sec p {
    color: #64748B !important;
}

/* Custom background variety gradients for light sections */
#about {
    background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 100%) !important;
}
#solutions-sec {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF5FF 100%) !important;
}
#industries-sec {
    background: linear-gradient(135deg, #FFFFFF 0%, #ECFDF5 100%) !important;
}
#process-sec {
    background-color: #F8FAFC !important;
}
#testimonials-sec {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%) !important;
}

/* Glowing blobbies in sections */
#services-sec {
    background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px) !important;
    background-size: 30px 30px !important;
}
#services-sec .glow-blob-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(8, 17, 32, 0) 70%);
    filter: blur(100px);
    top: -10%;
    left: -10%;
}
#services-sec .glow-blob-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(8, 17, 32, 0) 70%);
    filter: blur(100px);
    bottom: -10%;
    right: -10%;
}

#solutions-sec .glow-blob-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(120px);
    top: -20%;
    right: -10%;
}
#solutions-sec .glow-blob-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(100px);
    bottom: -10%;
    left: -10%;
}

#industries-sec .glow-blob-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(100px);
    top: -10%;
    left: -10%;
}
#industries-sec .glow-blob-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(100px);
    bottom: -10%;
    right: -10%;
}

#case-studies-sec .glow-blob-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(8, 17, 32, 0) 70%);
    filter: blur(100px);
    top: -10%;
    right: -10%;
}
#case-studies-sec .glow-blob-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(8, 17, 32, 0) 70%);
    filter: blur(100px);
    bottom: -10%;
    left: -10%;
}

#testimonials-sec .glow-blob-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(110px);
    top: -20%;
    left: -10%;
}
#testimonials-sec .glow-blob-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(110px);
    bottom: -20%;
    right: -10%;
}

#careers-sec .glow-aurora-beam-1 {
    position: absolute;
    width: 150px;
    height: 150%;
    background: linear-gradient(to bottom, rgba(124, 58, 237, 0) 0%, rgba(124, 58, 237, 0.15) 50%, rgba(124, 58, 237, 0) 100%);
    top: -20%;
    left: 25%;
    transform: rotate(15deg);
    filter: blur(50px);
    animation: aurora-beam-move 12s infinite alternate ease-in-out;
}
#careers-sec .glow-aurora-beam-2 {
    position: absolute;
    width: 150px;
    height: 150%;
    background: linear-gradient(to bottom, rgba(6, 182, 212, 0) 0%, rgba(6, 182, 212, 0.15) 50%, rgba(6, 182, 212, 0) 100%);
    top: -20%;
    right: 25%;
    transform: rotate(-15deg);
    filter: blur(50px);
    animation: aurora-beam-move 15s infinite alternate-reverse ease-in-out;
}

@keyframes aurora-beam-move {
    0% { transform: rotate(10deg) translateX(-50px); opacity: 0.7; }
    100% { transform: rotate(20deg) translateX(50px); opacity: 1; }
}

/* 5. Curved Section separators */
.section-divider-curve {
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
    pointer-events: none;
}
.section-divider-curve svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* 6. Premium High Contrast Cards */
.glass-card-premium {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Pop cards in Dark Sections */
#services-sec .glass-card-premium {
    background: rgba(8, 17, 32, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    min-height: 320px;
}
#services-sec .glass-card-premium:hover {
    transform: translateY(-12px);
    background: rgba(8, 17, 32, 0.75) !important;
    border-color: rgba(6, 182, 212, 0.35) !important;
    box-shadow: 0 30px 60px rgba(6, 182, 212, 0.18) !important;
}

/* Testimonial frosted glass over light background */
#testimonials-sec .glass-card-premium {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 20px 40px rgba(10, 31, 68, 0.04) !important;
}
#testimonials-sec .glass-card-premium p {
    color: #334155 !important;
}

/* Advantage Cards (Why Choose Us - Light section) */
.advantage-card-premium {
    background: #FFFFFF !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    height: 100%;
    transition: var(--transition-spring);
    box-shadow: 0 10px 30px rgba(10, 31, 68, 0.03);
    color: var(--text-color) !important;
    border-top: 4px solid var(--primary-color) !important;
    position: relative;
    overflow: hidden;
}
.advantage-card-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(37, 99, 235, 0.015) 0%, transparent 100%);
    pointer-events: none;
}
.advantage-card-premium h4 {
    color: #0F172A !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.advantage-card-premium p {
    color: #64748B !important;
    font-size: 0.95rem;
}
.advantage-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: var(--transition-spring);
}
.advantage-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 31, 68, 0.08);
    border-color: rgba(37, 99, 235, 0.15) !important;
}
.advantage-card-premium:hover .advantage-icon-box {
    background: var(--gradient-primary);
    color: #FFFFFF;
    transform: scale(1.05) rotate(5deg);
}

/* Gradient Borders */
.glass-card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

/* Shimmer Sweep Animation */
.shimmer-element {
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
    z-index: 10;
    pointer-events: none;
}

.glass-card-premium:hover .shimmer-element {
    animation: shimmer-sweep 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shimmer-sweep {
    100% { left: 150%; }
}

/* Card Glow and Shadow Adjustments */
.glass-card-premium:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.card-glow-blue:hover {
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-glow-purple:hover {
    box-shadow: 0 30px 60px rgba(124, 58, 237, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-glow-pink:hover {
    box-shadow: 0 30px 60px rgba(236, 72, 153, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-glow-green:hover {
    box-shadow: 0 30px 60px rgba(34, 197, 94, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 7. Premium Navigation Scroll Upgrades & Mega Menu */
.navbar-custom {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent !important;
    padding: 20px 0;
    transition: padding 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-custom.scrolled {
    padding: 10px 0 !important;
    background: rgba(8, 17, 32, 0.82) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.navbar-brand-custom {
    color: #FFFFFF !important;
}

.navbar-brand-custom:hover {
    opacity: 0.92;
}

.nav-link-custom {
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 8px 14px !important;
    margin: 0 2px;
    transition: color 0.3s ease;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: #FFFFFF !important;
}

.nav-link-custom::after {
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color)) !important;
    height: 2px;
    bottom: 2px;
    left: 14px;
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: calc(100% - 28px);
}

/* Mega menu styles */
.dropdown-menu-mega {
    background: rgba(8, 17, 32, 0.95) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5) !important;
    transform: translateX(-50%) translateY(20px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item-dropdown:hover .dropdown-menu-mega {
    transform: translateX(-50%) translateY(0) scale(1);
}

.mega-menu-title {
    color: var(--accent-color) !important;
}

.mega-menu-link {
    color: rgba(255, 255, 255, 0.7) !important;
}

.mega-menu-link:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(6, 182, 212, 0.2) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

.mega-menu-link-content h5 {
    color: #FFFFFF !important;
}

.mega-menu-link-content p {
    color: #94A3B8 !important;
}

.mega-menu-link-icon {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--accent-color) !important;
}

/* 8. Animated Icon Draw Effects */
.svg-icon-wrap {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 25px;
}

.svg-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    z-index: 1;
    transition: var(--transition-spring);
}

.glass-card-premium:hover .svg-icon-bg {
    transform: scale(1.1) rotate(6deg);
    background: var(--gradient-primary);
}

.svg-icon {
    position: relative;
    z-index: 2;
    width: 32px;
    height: 32px;
    stroke: var(--accent-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: var(--transition-smooth);
}

.glass-card-premium:hover .svg-icon {
    stroke: #FFFFFF;
}

.svg-icon-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.8s ease;
}

.glass-card-premium:hover .svg-icon-path {
    animation: draw-icon-pulse 1s ease-in-out;
}

@keyframes draw-icon-pulse {
    0% { stroke-dashoffset: 0; }
    50% { stroke-dashoffset: 200; }
    100% { stroke-dashoffset: 0; }
}

/* 9. Text Mask Reveals */
.split-word-wrapper {
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
}

.split-word-inner {
    display: inline-block;
}

/* 10. Footer Wave Divider & Glows */
.footer-custom {
    background: var(--bg-dark-deep, #132238) !important;
    position: relative;
    border-top: none !important;
}

.footer-wave-container {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave-container svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.footer-wave-container .shape-fill {
    fill: var(--bg-dark-deep, #132238);
}

/* ==========================================================================
   NORTHGRID UI/UX POLISH - PREMIUM ENHANCEMENTS
   ========================================================================== */

/* Cloud Solutions Section: Interactive widget cards overlay */
.floating-widget-solutions {
    position: absolute;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    z-index: 20;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    width: max-content;
    transition: all 0.3s ease;
}
.widget-ingress {
    top: 20%;
    left: -8%;
}
.widget-cluster {
    bottom: 25%;
    right: -6%;
}
.floating-widget-solutions:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    background: #FFFFFF !important;
}
.solutions-glow-image {
    position: relative;
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.18) !important;
}

/* Technology Stack interactive cards */
.tech-grid-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.tech-logo-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--border-radius-lg);
    padding: 30px 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}
.tech-logo-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--border-radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.tech-card-inner {
    position: relative;
    z-index: 2;
}
.tech-icon-wrap {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    transition: all 0.4s ease;
}
.tech-logo-card h4 {
    color: #FFFFFF !important;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.tech-logo-card p {
    color: #94A3B8 !important;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0;
}
.tech-logo-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.12);
}
.tech-logo-card:hover .tech-icon-wrap {
    background: var(--gradient-primary);
    color: #FFFFFF;
    transform: scale(1.08) rotate(5deg);
}

/* Industries Section: overlay system in image-card-overlay.css */
.industry-glass-card .industry-link {
    color: var(--accent-color) !important;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.industry-glass-card .industry-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.industry-grid-card:hover .industry-glass-card .industry-link i {
    transform: translateX(4px);
}

/* Process Timeline Section: Rings and glowing process line */
.process-step-container {
    position: relative;
    padding: 40px 0;
}
.process-line {
    position: absolute;
    top: 80px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
}
.process-line-active {
    position: absolute;
    top: 80px;
    left: 12.5%;
    width: 0%; /* Dynamic expansion */
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    z-index: 2;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}
.process-progress-circle {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}
.progress-ring-active {
    transition: stroke-dashoffset 1.5s ease-out;
}
.process-step-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    position: relative;
    z-index: 6;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}
.process-step-node:hover .process-step-num {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    transform: scale(1.05);
}

/* Results & ROI Case Studies: cost bar styling */
.roi-stats-dashboard {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.roi-progress-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}
.roi-progress-fill {
    height: 100%;
    width: 0%; /* Animated via GSAP */
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.bg-accent {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color)) !important;
}
.bg-secondary {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-2-color)) !important;
}

/* Testimonial Carousel: sliding transitions and dot navigation */
.testimonial-carousel-wrapper {
    min-height: 380px;
    overflow: visible;
}
.testimonial-carousel-inner {
    width: 100%;
    position: relative;
}
.testimonial-slide {
    display: none;
    opacity: 0;
    width: 100%;
}
.testimonial-slide.active {
    display: block;
    opacity: 1;
}
.carousel-nav-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
.carousel-nav-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}
.prev-btn { left: -70px; }
.next-btn { right: -70px; }
.carousel-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-dot.active {
    background: var(--accent-color);
    width: 24px;
    border-radius: 5px;
}
@media (max-width: 991px) {
    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }
}

/* Careers section text glass container card */
.career-content-glass-card {
    background: rgba(8, 17, 32, 0.55) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

/* Interactive Footer: newsletter inputs, office card, and floating Back to top button */
.footer-office-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
}
.footer-office-card:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(6, 182, 212, 0.2) !important;
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.08);
}
.social-circle-btn:hover {
    box-shadow: 0 0 15px var(--primary-color);
    background: var(--primary-color) !important;
    color: #FFFFFF !important;
}
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
}
.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.6);
}

/* Services section upgrades */
#services-sec .svg-icon-wrap {
    width: 75px !important;
    height: 75px !important;
    margin-bottom: 30px !important;
}
#services-sec .svg-icon {
    width: 38px !important;
    height: 38px !important;
}
#services-sec h3 {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}
#services-sec p {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    margin-bottom: 25px !important;
}

/* Global paragraph width & line height limits for premium readability */
.testimonial-quote, .roi-stats-dashboard, #careers-sec p {
    max-width: 720px;
    line-height: 1.85 !important;
    margin-left: auto;
    margin-right: auto;
}

/* Premium button arrow motion (shine handled in design-system.css) */
.btn-premium .btn-arrow {
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-premium:hover .btn-arrow {
    transform: translateX(5px);
}

