/*
  Theme Name: NewBiz
  Theme URL: https://bootstrapmade.com/newbiz-bootstrap-business-template/
  Author: BootstrapMade.com
  License: https://bootstrapmade.com/license/
*/

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

:root {
    /* Color Palette */
    --primary: #0B5EA2;
    --primary-dark: #084B82;
    --primary-light: #1B7BC7;
    --secondary: #0B5EA2;
    --accent: #0B5EA2;
    --dark: #1A1F2F;
    --darker: #0F1219;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0B5EA2 0%, #1B7BC7 100%);
    --gradient-secondary: linear-gradient(135deg, #0B5EA2 0%, #1B7BC7 100%);
    --gradient-accent: linear-gradient(135deg, #0B5EA2 0%, #1B7BC7 100%);
    --gradient-dark: linear-gradient(135deg, #1A1F2F 0%, #2A3447 100%);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --section-padding: 72px 0;
    --container-padding: 0 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===== CURSOR ANIMATIONS ===== */
.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.05s ease;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: var(--transition);
}

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

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

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

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--dark);
    color: white;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(99, 102, 241, 0.1) 100%),
        linear-gradient(0deg, transparent 98%, rgba(99, 102, 241, 0.1) 100%);
    background-size: 50px 50px;
    animation: matrix 20s linear infinite;
}

@keyframes matrix {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.floating-element:nth-child(3) { top: 80%; left: 20%; animation-delay: 2s; }
.floating-element:nth-child(4) { top: 30%; left: 70%; animation-delay: 3s; }
.floating-element:nth-child(5) { top: 70%; left: 60%; animation-delay: 4s; }
.floating-element:nth-child(6) { top: 40%; left: 30%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.75rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.4s;
}

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

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

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.15rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards 0.6s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards 0.8s;
}

#home .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    width: 100%;
    max-width: none;
}

.hero-research-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.85rem 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.research-pill {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(27, 123, 199, 0.85);
    background: linear-gradient(135deg, rgba(11, 94, 162, 0.45) 0%, rgba(27, 123, 199, 0.25) 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 4px 20px rgba(11, 94, 162, 0.35);
}

.hero-research-callout {
    flex: 1 1 auto;
    min-width: 12rem;
    max-width: 32rem;
    margin: 0;
    padding: 0.85rem 1rem 0.85rem 1.1rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    border-left: 3px solid rgba(27, 123, 199, 0.95);
    border-radius: 0 12px 12px 0;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-research-callout strong {
    color: #fff;
    font-weight: 700;
}

.hero-cta-explore {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    align-self: center;
}

.hero-cta-explore:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: #fff;
}

.btn-icon-rocket {
    animation: rocketFloat 1.8s ease-in-out infinite;
    transform-origin: center;
}

@keyframes rocketFloat {
    0%, 100% {
        transform: translateY(0) rotate(-10deg);
    }
    50% {
        transform: translateY(-3px) rotate(0deg);
    }
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(11, 94, 162, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-glow {
    position: relative;
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.btn-glow:hover .btn-particles {
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-editor {
    background: #1E1E1E;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 600px;
    font-family: var(--font-mono);
}

/* ===== UNIVERSITY HERO DASHBOARD (non-coding animation) ===== */
.dashboard-card {
    width: 100%;
    max-width: 680px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    overflow: hidden;
    transform: translateZ(0);
}

.dashboard-header {
    padding: 1.1rem 1.1rem 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-title {
    display: grid;
    gap: 0.35rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(11, 94, 162, 0.26);
    border: 1px solid rgba(11, 94, 162, 0.55);
    width: fit-content;
}

.dashboard-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
    font-size: 0.95rem;
}

.dashboard-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.chip {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 900;
    font-size: 0.85rem;
}

.dashboard-kpis {
    padding: 1rem 1.1rem 0.4rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.dash-kpi {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.9rem 0.9rem 0.75rem;
    position: relative;
    overflow: hidden;
}

.dash-kpi-label {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 900;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.dash-kpi-value {
    font-weight: 900;
    font-size: 1.35rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(99,102,241,0.9) 40%, rgba(11,94,162,0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dash-kpi-spark {
    height: 32px;
    margin-top: 0.55rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.dash-kpi-spark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.10) 50%, transparent 100%);
    transform: translateX(-60%);
    animation: shimmer 2.6s ease-in-out infinite;
}

.spark-a { border: 1px solid rgba(11, 94, 162, 0.35); }
.spark-b { border: 1px solid rgba(99, 102, 241, 0.30); }
.spark-c { border: 1px solid rgba(16, 185, 129, 0.28); }

@keyframes shimmer {
    0% { transform: translateX(-60%); opacity: 0.6; }
    55% { opacity: 0.95; }
    100% { transform: translateX(60%); opacity: 0.55; }
}

.dashboard-panels {
    padding: 0.65rem 1.1rem 1.1rem;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0.85rem;
}

.panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0.9rem;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 950;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.55rem;
}

.panel-body {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
    line-height: 1.45;
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.mini-btn {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 900;
    font-size: 0.82rem;
}

.line-chart {
    height: 110px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    margin-top: 0.25rem;
}

.line-chart .line {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 12% 72%, rgba(99,102,241,0.35) 0%, transparent 45%),
      radial-gradient(circle at 58% 42%, rgba(11,94,162,0.45) 0%, transparent 48%),
      radial-gradient(circle at 84% 58%, rgba(16,185,129,0.25) 0%, transparent 48%);
    filter: blur(0.2px);
    animation: drift 5.5s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% { transform: translateX(0px) translateY(0px) scale(1); }
    50% { transform: translateX(10px) translateY(-6px) scale(1.03); }
}

.legend {
    display: flex;
    justify-content: space-between;
    margin-top: 0.65rem;
    font-weight: 900;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.45rem;
}
.dot-a { background: rgba(11, 94, 162, 0.95); }
.dot-b { background: rgba(99, 102, 241, 0.95); }

@media (max-width: 980px) {
    .dashboard-kpis {
        grid-template-columns: 1fr;
    }
    .dashboard-panels {
        grid-template-columns: 1fr;
    }
}

.editor-header {
    background: #252526;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #333;
}

.editor-dots {
    display: flex;
    gap: 0.5rem;
}

.editor-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.editor-dots span:nth-child(1) { background: #FF5F56; }
.editor-dots span:nth-child(2) { background: #FFBD2E; }
.editor-dots span:nth-child(3) { background: #27C93F; }

.editor-title {
    color: #858585;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.editor-content {
    padding: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

.typing-code {
    color: #D4D4D4;
    margin: 0;
    font-family: var(--font-mono);
}

.typing-code .keyword { color: #569CD6; }
.typing-code .function { color: #DCDCAA; }
.typing-code .variable { color: #9CDCFE; }
.typing-code .string { color: #CE9178; }
.typing-code .property { color: #9CDCFE; }
.typing-code .comment { color: #6A9955; }

.code-editor::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-editor::-webkit-scrollbar-track {
    background: #1E1E1E;
}

.code-editor::-webkit-scrollbar-thumb {
    background: #424242;
    border-radius: 4px;
}

.code-editor::-webkit-scrollbar-thumb:hover {
    background: #4F4F4F;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    animation: scroll 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
}

@keyframes scroll {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 60px 0;
    margin-top: 0;
    background: var(--light);
    padding-top: 6rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.about-card p {
    color: var(--gray);
    line-height: 1.7;
}

.about-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.mission-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.mission-content p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 1.1rem;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
}

.service-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.service-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

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

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

.service-card.featured:hover {
    transform: scale(1.02) translateY(-10px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: white;
}

.service-card:not(.featured) .service-icon {
    background: var(--gradient-primary);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-features span {
    background: rgba(11, 94, 162, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.service-features span:hover {
    background: rgba(11, 94, 162, 0.2);
}

.service-card.featured .service-features span {
    background: rgba(11, 94, 162, 0.15);
    color: var(--primary);
}

.service-card.featured .service-features span:hover {
    background: rgba(11, 94, 162, 0.25);
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-us {
    padding: var(--section-padding);
    background: white;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.why-us-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    text-align: center;
}

.why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.why-us-card .card-icon {
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
}

.why-us-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.why-us-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* ===== INDUSTRIES SECTION ===== */
.industries {
    padding: var(--section-padding);
    background: var(--light);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.industry-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    text-align: center;
}

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

.industry-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.industry-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.industry-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--section-padding);
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.contact-item p {
    color: var(--gray);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 94, 162, 0.1);
}

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

.form-group select {
    cursor: pointer;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: 2.75rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.25rem 1.5rem 1.75rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-140%);
        opacity: 0;
        transition: var(--transition);
        max-height: calc(100vh - 74px);
        overflow-y: auto;
        pointer-events: none;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.35rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    #home .hero-buttons {
        align-items: center;
        max-width: none;
    }

    #home .hero-research-row {
        justify-content: center;
        text-align: left;
    }

    #home .hero-research-callout {
        text-align: center;
        border-left: none;
        border-top: 3px solid rgba(27, 123, 199, 0.95);
        border-radius: 12px;
        padding-top: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .about-mission {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== SCROLL ANIMATIONS ===== */
[data-aos] {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-left"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"] {
    transform: translateX(30px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== LOADING ANIMATIONS ===== */
.loading {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: var(--transition);
}

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

/* ===== GLOW EFFECTS ===== */
.glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

/* Remove any gap/box styles between sections */
section {
    position: relative;
    overflow: hidden;
}

/* Ensure CSS variables are available for all pages */
:root {
    --primary: #0B5EA2;
    --primary-dark: #084B82;
    --primary-light: #1B7BC7;
    --secondary: #0B5EA2;
    --accent: #0B5EA2;
    --dark: #1A1F2F;
    --darker: #0F1219;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #0B5EA2 0%, #1B7BC7 100%);
    --gradient-secondary: linear-gradient(135deg, #0B5EA2 0%, #1B7BC7 100%);
    --gradient-accent: linear-gradient(135deg, #0B5EA2 0%, #1B7BC7 100%);
    --gradient-dark: linear-gradient(135deg, #1A1F2F 0%, #2A3447 100%);
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --section-padding: 72px 0;
    --container-padding: 0 2rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== ZOOM-FRIENDLY HOME HEADER TUNING ===== */
.page-home .nav-container {
    padding: 0.8rem 1.5rem;
}

.page-home .logo-img {
    height: 44px;
}

.page-home .nav-menu {
    gap: 1.35rem;
}

.page-home .nav-link {
    font-size: 0.95rem;
}

.page-home main {
    padding-top: 82px;
}

.page-home .hero {
    min-height: calc(100vh - 82px);
    align-items: center;
    padding-top: 1.6rem;
    padding-bottom: 1.1rem;
}

.page-home .hero-content {
    align-items: center;
    max-width: 1060px;
    gap: 1.65rem;
}

.page-home .hero-title {
    font-size: clamp(1.85rem, 3vw, 2.45rem);
    margin-bottom: 0.85rem;
    max-width: 20ch;
}

.page-home .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 0.9rem;
    max-width: 42ch;
}

.page-home .hero-trust {
    font-size: 0.84rem;
    margin-bottom: 0.85rem;
    max-width: 46ch;
}

.page-home .hero-research-callout {
    font-size: 0.84rem;
    line-height: 1.45;
    padding: 0.68rem 0.85rem 0.68rem 0.9rem;
    max-width: 32rem;
}

.page-home .home-visual-carousel {
    position: relative;
    width: 100%;
    max-width: 420px;
    min-height: 255px;
}

.page-home .home-carousel-card {
    position: absolute;
    inset: 0;
    padding: 1rem 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translateX(18px) scale(0.985);
    animation: homeHeroCarousel 10.5s ease-in-out infinite;
}

.page-home .home-carousel-card:nth-child(1) { animation-delay: 0s; }
.page-home .home-carousel-card:nth-child(2) { animation-delay: 3.5s; }
.page-home .home-carousel-card:nth-child(3) { animation-delay: 7s; }

.page-home .home-carousel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.page-home .home-live-dot {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(27, 123, 199, 0.55);
    background: rgba(27, 123, 199, 0.14);
}

.page-home .home-carousel-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.page-home .home-carousel-stats div {
    padding: 0.65rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-home .home-carousel-stats small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
}

.page-home .home-carousel-stats strong {
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.98rem;
}

.page-home .home-carousel-bars {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    gap: 0.45rem;
    height: 78px;
    margin-top: 0.95rem;
}

.page-home .home-carousel-bars span {
    display: block;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, rgba(27, 123, 199, 0.95) 0%, rgba(11, 94, 162, 0.5) 100%);
    animation: shokaiBars 1.8s ease-in-out infinite alternate;
}

.page-home .home-carousel-bars span:nth-child(1) { height: 38%; animation-delay: 0.1s; }
.page-home .home-carousel-bars span:nth-child(2) { height: 66%; animation-delay: 0.28s; }
.page-home .home-carousel-bars span:nth-child(3) { height: 52%; animation-delay: 0.42s; }
.page-home .home-carousel-bars span:nth-child(4) { height: 80%; animation-delay: 0.56s; }
.page-home .home-carousel-bars span:nth-child(5) { height: 62%; animation-delay: 0.72s; }

@keyframes homeHeroCarousel {
    0% {
        opacity: 0;
        transform: translateX(18px) scale(0.985);
    }
    6%,
    28% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    34%,
    100% {
        opacity: 0;
        transform: translateX(-18px) scale(0.985);
    }
}

@media (max-width: 1200px) {
    .page-home .hero-content {
        gap: 1.2rem;
    }

    .page-home .home-visual-carousel {
        max-width: 390px;
    }

    .page-home .hero-title {
        font-size: clamp(1.75rem, 2.75vw, 2.15rem);
    }
}

@media (max-height: 920px) {
    .page-home .hero {
        min-height: calc(100vh - 82px);
    }

    .page-home .hero-title {
        font-size: clamp(1.75rem, 2.9vw, 2.2rem);
    }

    .page-home .home-visual-carousel {
        max-width: 390px;
    }
}

@media (max-height: 780px) {
    .page-home .hero {
        min-height: calc(100vh - 82px);
        padding-top: 1.2rem;
        padding-bottom: 0.8rem;
    }

    .page-home .hero-subtitle {
        font-size: 0.94rem;
    }

    .page-home .hero-research-callout {
        font-size: 0.8rem;
    }

    .page-home .home-visual-carousel {
        max-width: 360px;
        min-height: 235px;
    }
}

/* ===== SERVICES HERO FIT FIX ===== */
.page-services main {
    padding-top: 82px;
}

.page-services .hero {
    min-height: calc(100vh - 82px);
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.page-services .hero-content {
    align-items: center;
}

.page-services .hero-title {
    font-size: clamp(2rem, 3.4vw, 2.7rem);
    margin-bottom: 0.85rem;
}

.page-services .hero-subtitle {
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .page-home main {
        padding-top: 76px;
    }

    .page-home .hero {
        min-height: calc(100svh - 76px);
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .page-home .home-visual-carousel {
        max-width: 100%;
        min-height: 228px;
    }

    .page-home .home-carousel-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-home .home-carousel-stats div:nth-child(3) {
        grid-column: 1 / -1;
    }

    .page-services main {
        padding-top: 76px;
    }

    .page-services .hero {
        min-height: calc(100svh - 76px);
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .page-services .hero-title {
        font-size: 2rem;
    }
}

/* ===== UNIVERSITY PRODUCT DEMO ===== */
.product-demo {
    padding: var(--section-padding);
    background: linear-gradient(180deg, #0f172a 0%, #0b1326 60%, #0b1326 100%);
    color: white;
}

.product-demo-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.product-demo .section-title {
    color: white;
}

.demo-controls {
    position: sticky;
    top: 110px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
}

.demo-controls .control-group {
    margin-bottom: 1.25rem;
}

.demo-controls label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.role-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 700;
    font-size: 0.95rem;
}

.role-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.32);
}

.role-btn.active {
    border-color: rgba(11, 94, 162, 0.8);
    background: rgba(11, 94, 162, 0.22);
    box-shadow: 0 0 0 3px rgba(11, 94, 162, 0.18);
}

.demo-controls select,
.demo-controls input[type="range"] {
    width: 100%;
}

.demo-controls select {
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-weight: 600;
}

.demo-controls select:focus {
    outline: none;
    border-color: rgba(11, 94, 162, 0.85);
    box-shadow: 0 0 0 3px rgba(11, 94, 162, 0.25);
}

.range-labels {
    margin-top: 0.65rem;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
    font-size: 0.9rem;
}

.demo-preview {
    display: grid;
    gap: 1.5rem;
}

.preview-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1rem;
    backdrop-filter: blur(8px);
}

.kpi-label {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(99,102,241,0.9) 40%, rgba(11,94,162,0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.insight-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.25rem 1.25rem 1.1rem;
}

.insight-panel h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.muted {
    color: rgba(255, 255, 255, 0.72);
}

.insight-panel ul {
    margin: 0.9rem 0 0.9rem;
    padding-left: 1.1rem;
}

.ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ai-action {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
    transition: var(--transition-fast);
}

.ai-action:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.32);
}

.ai-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.ai-action:disabled:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.18);
}

.chat-container {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
}

.chat-header {
    padding: 1rem 1.1rem;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 900;
    letter-spacing: 0.2px;
}

.chat-log {
    height: 260px;
    overflow: auto;
    padding: 0.95rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-message {
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.ai {
    justify-content: flex-start;
}

.bubble {
    max-width: 86%;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    font-weight: 700;
    line-height: 1.45;
    white-space: pre-wrap;
}

.chat-message.user .bubble {
    background: rgba(11, 94, 162, 0.25);
    border: 1px solid rgba(11, 94, 162, 0.55);
    color: rgba(255, 255, 255, 0.95);
}

.chat-message.ai .bubble {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
}

.chat-form {
    display: flex;
    gap: 0.65rem;
    padding: 0.95rem 1.1rem 1.05rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.12);
}

.chat-form input {
    flex: 1;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-weight: 700;
}

.chat-form input:focus {
    outline: none;
    border-color: rgba(11, 94, 162, 0.85);
    box-shadow: 0 0 0 3px rgba(11, 94, 162, 0.25);
}

.chat-form button.btn {
    padding: 0.85rem 1.1rem;
}

.prompt-row {
    padding: 0 1.1rem 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.prompt-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.prompt-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.32);
}

/* Badge used on non-featured service cards */
.service-badge.other {
    background: rgba(100, 116, 139, 0.22);
}

@media (max-width: 980px) {
    .product-demo-grid {
        grid-template-columns: 1fr;
    }
    .demo-controls {
        position: relative;
        top: auto;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== EARLY-STAGE COPY / TRUST HIGHLIGHTS ===== */
.hero-trust {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1.1rem;
    max-width: 40rem;
    line-height: 1.55;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards 0.55s;
}

.stats-problem {
    padding: 2.75rem 0;
    background: var(--light);
}

.problem-lead {
    max-width: 46rem;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--dark);
    text-align: center;
}

.trust-highlight {
    max-width: 46rem;
    margin: 1.1rem auto 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--primary);
    background: rgba(11, 94, 162, 0.08);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.55;
}

.trust-highlight--center {
    text-align: center;
    border-left: none;
    border-radius: 12px;
}

.shokai-bullet-list {
    max-width: 46rem;
    margin: 0 auto 1.25rem;
    padding-left: 1.2rem;
    color: var(--dark);
    line-height: 1.75;
}

.shokai-bullet-list li {
    margin-bottom: 0.45rem;
}

.shokai-dark-list {
    margin: 0;
    padding-left: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.shokai-dark-list li {
    margin-bottom: 0.4rem;
}

.shokai-workflow-steps {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.shokai-workflow-steps span {
    position: relative;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(11, 94, 162, 0.3);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.shokai-workflow-steps span:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(11, 94, 162, 0.55);
    font-weight: 900;
}

.shokai-problem-section .problem-lead,
.shokai-value-section .problem-lead {
    margin-top: 0.8rem;
}

.shokai-point-grid {
    max-width: 940px;
    margin: 0 auto 0.8rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}

.shokai-point-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(11, 94, 162, 0.18);
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.shokai-point-card i {
    color: var(--primary);
    margin-top: 0.15rem;
}

.shokai-point-card p {
    margin: 0;
    color: var(--dark);
    line-height: 1.6;
    font-weight: 500;
}

.shokai-flow-inline {
    max-width: 42rem;
    margin-top: 0.95rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(11, 94, 162, 0.08);
    border: 1px solid rgba(11, 94, 162, 0.18);
    font-weight: 700;
}

.shokai-workflow-section {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.subpage-support-line {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.96rem;
    line-height: 1.55;
    max-width: 34rem;
    opacity: 0;
    transform: translateY(18px);
    animation: slideUp 0.8s ease forwards 0.58s;
}

.subpage-micro-trust {
    margin: 0.95rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(18px);
    animation: slideUp 0.8s ease forwards 0.84s;
}

.shokai-diff-section {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.shokai-diff-section .section-title {
    font-size: clamp(2.2rem, 3.4vw, 2.9rem);
}

.shokai-diff-highlight {
    max-width: 50rem;
    margin-bottom: 1.35rem;
    border-left: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(11, 94, 162, 0.14) 0%, rgba(27, 123, 199, 0.08) 100%);
    border: 1px solid rgba(11, 94, 162, 0.18);
    text-align: center;
}

.shokai-compare-section {
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
}

.shokai-compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    max-width: 980px;
    margin: 0 auto;
}

.shokai-compare-card {
    padding: 1.35rem 1.4rem;
    border-radius: 18px;
    background: white;
    border: 1px solid rgba(11, 94, 162, 0.14);
    box-shadow: var(--shadow-sm);
}

.shokai-compare-card h3 {
    margin: 0 0 0.9rem;
    font-size: 1.2rem;
    color: var(--dark);
}

.shokai-compare-card--positive {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    border-color: rgba(11, 94, 162, 0.24);
    box-shadow: var(--shadow-md);
}

.shokai-compare-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--dark);
    line-height: 1.75;
}

.shokai-compare-list li + li {
    margin-top: 0.35rem;
}

.shokai-ops-cards {
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
}

@media (max-width: 768px) {
    .shokai-bullet-list {
        padding-left: 1rem;
    }

    .shokai-point-grid {
        grid-template-columns: 1fr;
    }

    .shokai-workflow-steps span:not(:last-child)::after {
        display: none;
    }

    .shokai-compare-grid {
        grid-template-columns: 1fr;
    }

    .subpage-support-line,
    .subpage-micro-trust {
        max-width: 100%;
    }
}

.faculty-trust-copy {
    padding: 2.25rem 0;
}

.faculty-trust-copy .section-header {
    margin-bottom: 0;
}

.chat-form-static {
    padding: 0.85rem 1.1rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-static-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.55;
}

.contact-teaser .section-header {
    margin-bottom: 1.5rem;
}

.contact-teaser-card {
    max-width: 46rem;
    margin: 0 auto;
    padding: 1.5rem 1.75rem;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.contact-teaser-card p {
    margin: 0;
    color: var(--gray);
    line-height: 1.7;
}

.contact-teaser-actions {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

/* ===== SUBPAGE INTRO (CampusIQ, etc.) ===== */
.subpage-intro {
    position: relative;
    padding: 7rem 0 3rem;
    background: var(--dark);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.subpage-intro .container {
    position: relative;
    z-index: 2;
}

.subpage-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 98%, rgba(99, 102, 241, 0.1) 100%),
        linear-gradient(0deg, transparent 98%, rgba(99, 102, 241, 0.1) 100%);
    background-size: 50px 50px;
    animation: matrix 20s linear infinite;
    opacity: 1;
}

.subpage-intro::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(27, 123, 199, 0.28) 0%, transparent 55%),
        radial-gradient(circle at 85% 30%, rgba(11, 94, 162, 0.22) 0%, transparent 60%);
    pointer-events: none;
}

.subpage-eyebrow {
    position: relative;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(27, 123, 199, 0.55);
    background: rgba(255, 255, 255, 0.06);
}

.subpage-title {
    position: relative;
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 0.85rem;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subpage-hero-title {
    margin: 0 0 0.85rem;
    line-height: 1.05;
    display: block;
}

.subpage-hero-title .title-line {
    opacity: 0;
    transform: translateY(24px);
    animation: slideUp 0.8s ease forwards;
    color: rgba(255, 255, 255, 0.95);
    display: block;
}

.subpage-hero-title .title-line:nth-child(2) {
    animation-delay: 0.18s;
}

.subpage-hero-title .title-line:nth-child(3) {
    animation-delay: 0.34s;
}

.subpage-hero-title .title-line.highlight {
    color: transparent;
    width: fit-content;
}

.subpage-lead {
    position: relative;
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    max-width: 44rem;
    margin: 0;
    opacity: 0;
    transform: translateY(18px);
    animation: slideUp 0.8s ease forwards 0.5s;
}

.subpage-meta {
    position: relative;
    margin: 1.35rem 0 0;
    opacity: 0;
    transform: translateY(18px);
    animation: slideUp 0.8s ease forwards 0.7s;
}

.subpage-eyebrow {
    opacity: 0;
    transform: translateY(14px);
    animation: slideUp 0.7s ease forwards 0.08s;
}

.subpage-floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.subpage-floating-element {
    position: absolute;
    font-size: 1.6rem;
    opacity: 0.26;
    animation: float 6.5s ease-in-out infinite;
}

.subpage-floating-element:nth-child(1) { top: 18%; left: 8%; animation-delay: 0s; }
.subpage-floating-element:nth-child(2) { top: 68%; left: 14%; animation-delay: 1.1s; }
.subpage-floating-element:nth-child(3) { top: 22%; right: 14%; animation-delay: 2.1s; }
.subpage-floating-element:nth-child(4) { top: 58%; right: 8%; animation-delay: 3.1s; }
.subpage-floating-element:nth-child(5) { top: 78%; right: 30%; animation-delay: 4.2s; }

.page-shokai .subpage-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
}

.page-shokai .subpage-hero-copy {
    position: relative;
    z-index: 2;
}

.page-shokai .subpage-hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.page-shokai .subpage-visual-carousel {
    width: 100%;
    max-width: 420px;
    position: relative;
    min-height: 255px;
}

.page-shokai .subpage-visual-card {
    width: 100%;
    border-radius: 18px;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.page-shokai .subpage-carousel-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(18px) scale(0.985);
    animation: shokaiCarousel 10.5s ease-in-out infinite;
}

.page-shokai .subpage-carousel-card:nth-child(1) { animation-delay: 0s; }
.page-shokai .subpage-carousel-card:nth-child(2) { animation-delay: 3.5s; }
.page-shokai .subpage-carousel-card:nth-child(3) { animation-delay: 7s; }

.page-shokai .subpage-visual-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.page-shokai .subpage-live-dot {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.55);
    background: rgba(34, 197, 94, 0.14);
}

.page-shokai .subpage-visual-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.page-shokai .subpage-visual-stats div {
    padding: 0.65rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-shokai .subpage-visual-stats small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
}

.page-shokai .subpage-visual-stats strong {
    color: rgba(255, 255, 255, 0.96);
    font-size: 1rem;
}

.page-shokai .subpage-visual-bars {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    gap: 0.45rem;
    height: 78px;
    margin-top: 0.95rem;
}

.page-shokai .subpage-visual-bars span {
    display: block;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, rgba(27, 123, 199, 0.95) 0%, rgba(11, 94, 162, 0.5) 100%);
    animation: shokaiBars 1.8s ease-in-out infinite alternate;
}

.page-shokai .subpage-visual-bars span:nth-child(1) { height: 38%; animation-delay: 0.1s; }
.page-shokai .subpage-visual-bars span:nth-child(2) { height: 66%; animation-delay: 0.28s; }
.page-shokai .subpage-visual-bars span:nth-child(3) { height: 52%; animation-delay: 0.42s; }
.page-shokai .subpage-visual-bars span:nth-child(4) { height: 80%; animation-delay: 0.56s; }
.page-shokai .subpage-visual-bars span:nth-child(5) { height: 62%; animation-delay: 0.72s; }

@keyframes shokaiBars {
    from { opacity: 0.78; transform: scaleY(0.8); }
    to { opacity: 1; transform: scaleY(1); }
}

@keyframes shokaiCarousel {
    0% {
        opacity: 0;
        transform: translateX(18px) scale(0.985);
    }
    6%,
    28% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    34%,
    100% {
        opacity: 0;
        transform: translateX(-18px) scale(0.985);
    }
}

@media (max-width: 768px) {
    .page-shokai .subpage-hero-grid {
        grid-template-columns: 1fr;
    }

    .page-shokai .subpage-intro {
        padding-top: 6.3rem;
        padding-bottom: 2.25rem;
    }

    .page-shokai .subpage-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.55rem;
    }

    .page-shokai .subpage-hero-visual {
        margin-top: 0.8rem;
    }

    .page-shokai .subpage-visual-carousel {
        max-width: 100%;
        min-height: 245px;
    }

    .page-shokai .subpage-visual-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-shokai .subpage-visual-stats div:nth-child(3) {
        grid-column: 1 / -1;
    }

    .subpage-floating-element {
        font-size: 1.2rem;
        opacity: 0.2;
    }
}

.subpage-jump {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: var(--transition-fast);
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.06);
}

.subpage-jump:hover {
    color: white;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.12);
}

.subpage-jump-secondary {
    border-color: rgba(27, 123, 199, 0.55);
    background: rgba(11, 94, 162, 0.18);
}

.subpage-jump-secondary:hover {
    border-color: rgba(27, 123, 199, 0.9);
    background: rgba(11, 94, 162, 0.28);
}

.contact-contexts {
    scroll-margin-top: 100px;
}

.contact-anchor-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0 0 1.75rem;
}

.contact-anchor-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(11, 94, 162, 0.22);
    background: white;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-fast);
}

.contact-anchor-link:hover {
    background: rgba(11, 94, 162, 0.08);
    border-color: rgba(11, 94, 162, 0.4);
}

.contact-anchor-link.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.contact-panes {
    margin-top: 1.5rem;
}

.contact-pane {
    display: none;
}

.contact-pane.active {
    display: block;
}

.contact-pane-card {
    max-width: 58rem;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-md);
}

.contact-pane-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.contact-pane-card p {
    color: var(--gray);
    line-height: 1.75;
}

.contact-context-note {
    margin-top: 1rem;
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-page-first {
    padding-top: 6.25rem;
}

@media (max-width: 768px) {
    .subpage-title {
        font-size: 2.35rem;
    }

    .subpage-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
