/* ============================================================
   Omni Stack – Premium Agency Design System
   Apple-inspired UI/UX with glassmorphism & smooth animations
   ============================================================ */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
    /* Colors – Light Mode */
    --color-bg:           #fbfbfd;
    --color-bg-secondary: #f5f5f7;
    --color-surface:      #ffffff;
    --color-border:       rgba(0,0,0,0.08);
    --color-text:         #1d1d1f;
    --color-text-muted:   #6e6e73;
    --color-text-subtle:  #86868b;
    --color-accent:       #0066cc;
    --color-accent-hover: #004499;
    --color-accent-light: rgba(0,102,204,0.10);
    --color-success:      #28a745;
    --color-error:        #dc3545;

    /* Glass effect */
    --glass-bg:           rgba(255,255,255,0.72);
    --glass-border:       rgba(255,255,255,0.50);
    --glass-blur:         20px;

    /* Typography */
    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, monospace;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.375rem;
    --text-2xl:  1.75rem;
    --text-3xl:  2.25rem;
    --text-4xl:  3rem;
    --text-5xl:  4rem;
    --text-6xl:  5.5rem;
    --text-hero: clamp(2.5rem, 7vw, 6rem);

    --weight-regular: 400;
    --weight-medium:  500;
    --weight-semibold:600;
    --weight-bold:    700;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12:3rem;
    --space-16:4rem;
    --space-20:5rem;
    --space-24:6rem;
    --space-32:8rem;

    /* Layout */
    --max-w-xs:  480px;
    --max-w-sm:  640px;
    --max-w-md:  768px;
    --max-w-lg:  1024px;
    --max-w-xl:  1200px;
    --max-w-2xl: 1400px;
    --container-padding: clamp(1rem, 4vw, 3rem);

    /* Border radius */
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  18px;
    --radius-xl:  24px;
    --radius-2xl: 32px;
    --radius-full:9999px;

    /* Shadows */
    --shadow-sm:   0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.10);
    --shadow-md:   0 4px 6px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg:   0 10px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    --shadow-xl:   0 20px 60px rgba(0,0,0,0.15);
    --shadow-accent:0 8px 32px rgba(0,102,204,0.25);

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   280ms cubic-bezier(0.4,0,0.2,1);
    --transition-slow:   500ms cubic-bezier(0.4,0,0.2,1);
    --transition-spring: 600ms cubic-bezier(0.34,1.56,0.64,1);

    /* Navbar height */
    --navbar-h: 52px;
}

/* Dark Mode */
[data-theme="dark"] {
    --color-bg:           #000000;
    --color-bg-secondary: #161617;
    --color-surface:      #1c1c1e;
    --color-border:       rgba(255,255,255,0.10);
    --color-text:         #f5f5f7;
    --color-text-muted:   #ababab;
    --color-text-subtle:  #6e6e73;
    --color-accent:       #2997ff;
    --color-accent-hover: #5eb0ff;
    --color-accent-light: rgba(41,151,255,0.15);
    --glass-bg:           rgba(28,28,30,0.80);
    --glass-border:       rgba(255,255,255,0.12);
    --shadow-md:          0 4px 6px rgba(0,0,0,0.30), 0 8px 24px rgba(0,0,0,0.40);
    --shadow-lg:          0 10px 40px rgba(0,0,0,0.50);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-base);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--color-accent-hover); }

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--weight-semibold);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

p { color: var(--color-text-muted); line-height: 1.7; }

ul { list-style: none; }

/* ---------- Layout Primitives ---------- */
.container {
    width: 100%;
    max-width: var(--max-w-xl);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.container-wide {
    width: 100%;
    max-width: var(--max-w-2xl);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.section {
    padding-block: var(--space-24);
}

.section-sm {
    padding-block: var(--space-16);
}

.section-lg {
    padding-block: var(--space-32);
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Typography Utilities ---------- */
.text-xs     { font-size: var(--text-xs); }
.text-sm     { font-size: var(--text-sm); }
.text-lg     { font-size: var(--text-lg); }
.text-xl     { font-size: var(--text-xl); }
.text-2xl    { font-size: var(--text-2xl); }
.text-3xl    { font-size: var(--text-3xl); }
.text-4xl    { font-size: var(--text-4xl); }
.text-hero   { font-size: var(--text-hero); }
.font-medium { font-weight: var(--weight-medium); }
.font-semibold{ font-weight: var(--weight-semibold); }
.font-bold   { font-weight: var(--weight-bold); }
.text-muted  { color: var(--color-text-muted); }
.text-subtle { color: var(--color-text-subtle); }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }
.tracking-tight { letter-spacing: -0.03em; }
.leading-tight  { line-height: 1.1; }

/* ---------- Button System ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-base);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
}

.btn-ghost:hover {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: var(--text-lg);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--text-sm);
}

/* ---------- Card ---------- */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card-body { padding: var(--space-8); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ---------- Badge ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.875rem;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    background: var(--color-accent-light);
    color: var(--color-accent);
}

/* ---------- Form Elements ---------- */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }

.form-label {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.125rem;
    font-family: var(--font-base);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-fast);
    -webkit-appearance: none;
}

.form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-control::placeholder { color: var(--color-text-subtle); }

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

/* ---------- Divider ---------- */
.divider {
    height: 1px;
    background: var(--color-border);
    border: none;
    margin-block: var(--space-8);
}

/* ---------- Section Header ---------- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: var(--space-16);
}

.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
    font-weight: var(--weight-bold);
    letter-spacing: -0.025em;
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-h);
    /* Always have a very subtle background so content is never invisible against it */
    background: rgba(255,255,255,0.02);
    transition: background var(--transition-base), backdrop-filter var(--transition-base),
                border-color var(--transition-base), box-shadow var(--transition-base);
    will-change: background;
}

[data-theme="dark"] .navbar {
    background: rgba(0,0,0,0.02);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-w-xl);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.navbar-scrolled {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 16px rgba(0,0,0,0.08);
}

/* Mobile nav backdrop */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    top: var(--navbar-h);
    background: rgba(0,0,0,0.4);
    z-index: 998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease;
}

.navbar-logo {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    letter-spacing: -0.03em;
    text-decoration: none;
    transition: opacity var(--transition-fast);
    /* Prevent any background from appearing on focus or active state */
    background: none !important;
    outline: none;
    border-radius: 0;
    padding: 0;
}

.navbar-logo:hover { opacity: 0.75; color: var(--color-text); background: none !important; }
.navbar-logo:focus { outline: none; background: none !important; }
.navbar-logo:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; background: none !important; border-radius: var(--radius-sm); }
.navbar-logo.active { background: none !important; }

.navbar-logo span { color: var(--color-accent); }

.navbar-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.navbar-link {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--color-text);
    background: var(--color-accent-light);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Theme toggle */
.theme-toggle {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
    font-size: 1.1rem;
}

.theme-toggle:hover {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

/* Mobile menu toggle */
.mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
    position: fixed;
    inset: 0;
    top: var(--navbar-h);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    z-index: 999;
    padding: var(--space-6) var(--container-padding);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    transform: translateX(100%);
    transition: transform var(--transition-base);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav .navbar-link {
    font-size: var(--text-lg);
    padding: var(--space-4);
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .navbar-links { display: none; }
    .mobile-menu-btn { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--navbar-h);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,102,204,0.12), transparent 60%),
                radial-gradient(ellipse 60% 40% at 80% 80%, rgba(41,151,255,0.06), transparent 50%);
    pointer-events: none;
}

[data-theme="dark"] .hero-bg {
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(41,151,255,0.15), transparent 60%),
                radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,102,204,0.10), transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    padding: var(--space-12) var(--container-padding);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-6);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: var(--text-hero);
    font-weight: var(--weight-bold);
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--color-text);
    margin-bottom: var(--space-6);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.15s forwards;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--color-accent) 0%, #5eb0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
    color: var(--color-text-muted);
    max-width: 620px;
    margin-inline: auto;
    margin-bottom: var(--space-10);
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.45s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-subtle);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: fadeIn 1.2s ease 1s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-16);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    letter-spacing: -0.03em;
    color: var(--color-text);
    display: block;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-weight: var(--weight-medium);
}

/* ---------- Service Cards ---------- */
.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent-light), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--color-accent);
    transform: scale(1.1);
}

.service-title {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 1;
}

.service-description {
    color: var(--color-text-muted);
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
    position: relative;
    z-index: 1;
}

.service-tag {
    font-size: 0.7rem;
    font-weight: var(--weight-semibold);
    color: var(--color-text-subtle);
    background: var(--color-bg-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ---------- Project Cards ---------- */
.project-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.project-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-text-subtle);
}

.project-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: var(--space-6);
}

.project-card:hover .project-img-overlay { opacity: 1; }

.project-overlay-links {
    display: flex;
    gap: var(--space-3);
}

.project-overlay-btn {
    padding: var(--space-2) var(--space-4);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.project-overlay-btn:hover {
    background: rgba(255,255,255,0.35);
    color: #fff;
}

.project-body { padding: var(--space-6); flex: 1; }

.project-industry {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}

.project-title {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.project-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: var(--space-4);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tech-tag {
    font-size: 0.7rem;
    font-weight: var(--weight-semibold);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    background: var(--color-accent-light);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ---------- Blog Cards ---------- */
.blog-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-body { padding: var(--space-6); }

.blog-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.blog-category {
    color: var(--color-accent);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.blog-title {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.blog-excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: var(--space-4);
}

.blog-read-more {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    transition: gap var(--transition-fast);
}

.blog-read-more:hover { gap: var(--space-2); color: var(--color-accent); }

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    max-width: 680px;
    margin-inline: auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--color-accent) 10%, var(--color-accent) 90%, transparent);
}

.timeline-item {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
    margin-bottom: var(--space-10);
    position: relative;
    padding-left: var(--space-4);
}

.timeline-dot {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 3px solid var(--color-bg);
    box-shadow: 0 0 0 3px var(--color-accent);
    position: relative;
    z-index: 1;
    margin-top: 4px;
    margin-left: 16px;
}

.timeline-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    flex: 1;
    transition: all var(--transition-base);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.timeline-year {
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    color: var(--color-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.timeline-title {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.timeline-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

@media (max-width: 640px) {
    .timeline::before { left: 16px; }
    .timeline-dot { margin-left: 8px; }
}

/* ---------- Footer ---------- */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding-block: var(--space-16) var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand { }

.footer-logo {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-4);
    display: block;
}

.footer-logo span { color: var(--color-accent); }

.footer-tagline {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.65;
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-accent);
    color: #fff;
}

.footer-heading {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    letter-spacing: 0.04em;
    margin-bottom: var(--space-4);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--color-accent); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
}

.footer-copy {
    font-size: var(--text-sm);
    color: var(--color-text-subtle);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
}

.footer-bottom-links a {
    font-size: var(--text-sm);
    color: var(--color-text-subtle);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover { color: var(--color-accent); }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Glassmorphism Panel ---------- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--color-accent) 0%, #004499 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-24) var(--container-padding);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.08), transparent 60%);
}

.cta-section * { position: relative; z-index: 1; }

.cta-title {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
    font-weight: var(--weight-bold);
    color: #fff;
    margin-bottom: var(--space-4);
    letter-spacing: -0.025em;
}

.cta-text {
    color: rgba(255,255,255,0.82);
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    max-width: 520px;
    margin-inline: auto;
    margin-bottom: var(--space-8);
}

.btn-white {
    background: #fff;
    color: var(--color-accent);
    font-weight: var(--weight-semibold);
}

.btn-white:hover {
    background: rgba(255,255,255,0.92);
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: #fff;
}

/* ---------- Process Steps ---------- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(12.5% + 28px);
    right: calc(12.5% + 28px);
    height: 2px;
    background: linear-gradient(to right, var(--color-accent), var(--color-accent-hover));
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    margin-bottom: var(--space-4);
}

.process-step-title {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.process-step-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-steps::before { display: none; }
}

@media (max-width: 480px) {
    .process-steps { grid-template-columns: 1fr; }
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.testimonial-text {
    font-size: var(--text-lg);
    color: var(--color-text);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: var(--space-6);
}

.testimonial-text::before { content: '\201C'; }
.testimonial-text::after  { content: '\201D'; }

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--color-accent);
    flex-shrink: 0;
}

.author-name {
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    font-size: var(--text-base);
}

.author-role {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.stars {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: var(--space-4);
}

/* ---------- Tech Stack Display ---------- */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.tech-chip:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* ---------- Contact Form ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
    align-items: start;
}

.contact-info { }

.contact-info-title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    letter-spacing: -0.025em;
    margin-bottom: var(--space-4);
}

.contact-info-text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-detail-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-subtle);
    margin-bottom: 2px;
}

.contact-detail-value {
    font-size: var(--text-base);
    color: var(--color-text);
    font-weight: var(--weight-medium);
}

.contact-form-wrap {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-success {
    text-align: center;
    padding: var(--space-12);
}

.form-success-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ---------- 404 Page ---------- */
.error-page {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--container-padding);
}

.error-code {
    font-size: clamp(6rem, 20vw, 14rem);
    font-weight: var(--weight-bold);
    letter-spacing: -0.05em;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-accent), rgba(0,102,204,0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
}

.error-title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-4);
}

.error-text {
    color: var(--color-text-muted);
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    max-width: 480px;
    margin-inline: auto;
    margin-bottom: var(--space-8);
}

/* ---------- Case Study Layout ---------- */
.case-study-hero {
    background: var(--color-bg-secondary);
    padding: calc(var(--navbar-h) + var(--space-16)) var(--container-padding) var(--space-16);
}

.case-study-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.case-meta-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.case-meta-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
}

.case-meta-value {
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    color: var(--color-text);
}

.case-study-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-16);
    align-items: start;
}

.case-study-content h2 {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
}

.case-study-content p {
    font-size: var(--text-lg);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.case-study-content ul {
    list-style: disc;
    padding-left: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    color: var(--color-text-muted);
}

.case-sidebar {
    position: sticky;
    top: calc(var(--navbar-h) + var(--space-6));
}

.case-sidebar-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
}

.case-sidebar-title {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-subtle);
    margin-bottom: var(--space-4);
}

@media (max-width: 900px) {
    .case-study-body { grid-template-columns: 1fr; }
    .case-sidebar { position: static; }
}

/* ---------- About Page ---------- */
.team-card {
    text-align: center;
    transition: all var(--transition-base);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), #5eb0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    margin-inline: auto;
    margin-bottom: var(--space-4);
    transition: all var(--transition-base);
}

.team-card:hover .team-avatar { transform: scale(1.08); }

.team-name {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-1);
}

.team-role {
    font-size: var(--text-sm);
    color: var(--color-accent);
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-3);
}

.team-bio {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* ---------- Scroll Reveal Animations ---------- */
/* Content is ALWAYS visible (SEO-safe, SSR-safe).
   JS enhances with entrance animations when elements scroll into view. */

/* The entrance animation plays when in-view class is added */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.js-animations .reveal.in-view {
    animation: revealUp 0.65s ease both;
}

.js-animations .reveal.in-view.reveal-delay-1 { animation-delay: 0.1s; }
.js-animations .reveal.in-view.reveal-delay-2 { animation-delay: 0.2s; }
.js-animations .reveal.in-view.reveal-delay-3 { animation-delay: 0.3s; }
.js-animations .reveal.in-view.reveal-delay-4 { animation-delay: 0.4s; }
.js-animations .reveal.in-view.reveal-delay-5 { animation-delay: 0.5s; }

/* ---------- Keyframes ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-ring {
    0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0,102,204,0.4); }
    70%  { transform: scale(1); box-shadow: 0 0 0 12px rgba(0,102,204,0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0,102,204,0); }
}

/* ---------- Utility ---------- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.w-full { width: 100%; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* ---------- Page wrapper ---------- */
.page-wrap {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.page-wrap > main {
    flex: 1;
    padding-top: var(--navbar-h);
}

/* ---------- Blazor error UI ---------- */
#blazor-error-ui {
    position: fixed;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    background: #b32121;
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: var(--space-3);
    box-shadow: var(--shadow-lg);
}

#blazor-error-ui.blazor-error-boundary { display: flex; }

.blazor-error-boundary::after { content: "An error has occurred."; }

.reload, .dismiss {
    color: rgba(255,255,255,0.85);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
    padding: 0;
}

/* ---------- Selection ---------- */
::selection {
    background: var(--color-accent);
    color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--color-text-subtle);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* ---------- Focus styles ---------- */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* ---------- Separator with text ---------- */
.or-separator {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--color-text-subtle);
    font-size: var(--text-sm);
}

.or-separator::before,
.or-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

/* Spacing for page content below fixed navbar */
.page-content {
    padding-top: var(--navbar-h);
}

/* Inner page hero */
.inner-hero {
    background: var(--color-bg-secondary);
    padding: calc(var(--navbar-h) + var(--space-16)) var(--container-padding) var(--space-16);
    text-align: center;
}

.inner-hero-title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: var(--weight-bold);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-4);
}

.inner-hero-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 560px;
    margin-inline: auto;
}

/* ---------- Hero Particles Canvas ---------- */
#hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ---------- Gradient Text ---------- */
.gradient-text {
    background: linear-gradient(135deg, var(--color-accent) 0%, #5eb0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Animated gradient background ---------- */
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background: linear-gradient(270deg, var(--color-accent), #5eb0ff, #004499, var(--color-accent));
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Glow Card ---------- */
.glow-card {
    position: relative;
    transition: all var(--transition-base);
}
.glow-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--color-accent), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
    filter: blur(8px);
}
.glow-card:hover::after { opacity: 0.4; }

/* ---------- Skill Pill ---------- */
.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
    cursor: default;
    white-space: nowrap;
}
.skill-pill:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-light);
    transform: translateY(-2px) scale(1.03);
}

/* ---------- Marquee (scrolling tech strip) ---------- */
.marquee-wrapper {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-track {
    display: flex;
    gap: var(--space-4);
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-track-reverse {
    animation-direction: reverse;
    animation-duration: 35s;
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Testimonials Infinite Scroll Track ---------- */
.testimonials-scroll-wrapper {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.testimonials-scroll-track {
    display: flex;
    gap: var(--space-6);
    width: max-content;
    animation: marqueeScroll 60s linear infinite;
}
.testimonials-scroll-track:hover { animation-play-state: paused; }
.testimonials-scroll-track .testimonial-card {
    width: 340px;
    flex-shrink: 0;
}

/* ---------- Floating badge ---------- */
.floating-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-accent);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    animation: float 3s ease-in-out infinite;
}

/* ---------- Section with gradient border top ---------- */
.section-gradient-top {
    border-top: 2px solid transparent;
    background-image: linear-gradient(var(--color-bg), var(--color-bg)),
                      linear-gradient(90deg, var(--color-accent), #5eb0ff, var(--color-accent));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* ---------- Stats with glow ---------- */
.stat-number-lg {
    font-size: clamp(var(--text-4xl), 8vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--color-accent), #5eb0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
}

/* ---------- Filter Buttons ---------- */
.filter-btn {
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.filter-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* ---------- Blog List View ---------- */
.blog-list-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-6);
    align-items: start;
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}
.blog-list-item:last-child { border-bottom: none; }
.blog-list-item:hover .blog-list-title { color: var(--color-accent); }
.blog-list-num {
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    color: var(--color-text-subtle);
    letter-spacing: 0.06em;
    padding-top: 4px;
    min-width: 2rem;
    text-align: right;
}
.blog-list-title {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-1);
    transition: color var(--transition-fast);
    line-height: 1.35;
}
.blog-list-meta {
    display: flex;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    flex-wrap: wrap;
}

/* ---------- Responsive helpers ---------- */
@media (max-width: 640px) {
    .hide-mobile { display: none !important; }
    .testimonials-scroll-track .testimonial-card { width: 280px; }
}
@media (min-width: 641px) {
    .hide-desktop { display: none !important; }
}

/* ---------- Star rating ---------- */
.stars { color: #f59e0b; letter-spacing: 2px; }
.stars-sm { font-size: 0.75rem; }

/* ---------- Country flag badge ---------- */
.country-badge {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    font-weight: var(--weight-medium);
}

/* ---------- Pulsing dot (availability indicator) ---------- */
.dot-live {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-ring 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* ---------- Extra reveal delay classes ---------- */
.js-animations .reveal.in-view.reveal-delay-6 { animation-delay: 0.6s; }
.js-animations .reveal.in-view.reveal-delay-7 { animation-delay: 0.7s; }
.js-animations .reveal.in-view.reveal-delay-8 { animation-delay: 0.8s; }

/* ---------- Page transition ---------- */
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.page-fade-in { animation: pageFadeIn 0.4s ease both; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-text-subtle); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* ---------- Typing cursor ---------- */
.typing-cursor::after {
    content: '|';
    color: var(--color-accent);
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ---------- Video/Image gradient overlay ---------- */
.img-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(0,102,204,0.2), transparent 60%);
    pointer-events: none;
}

/* ---------- Dark mode specific ---------- */
[data-theme="dark"] .glass-panel {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 20px 40px rgba(0,0,0,0.3);
}

/* ---------- Navbar height compensator ---------- */
.navbar-spacer { height: var(--navbar-h); }

/* ---------- Scroll-to-top button ---------- */
.scroll-top-btn {
    position: fixed;
    bottom: var(--space-6, 1.5rem);
    right: var(--space-6, 1.5rem);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--color-primary, #0066cc);
    color: #fff;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--color-primary-dark, #0052a3);
    transform: translateY(-2px);
}

/* ---------- Showcase Slider (Apple-style) ---------- */

/* Section: clips the peeking side cards */
.showcase-section {
    position: relative;
    overflow: hidden;
}

.showcase-bg-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.30;
    background:
        radial-gradient(ellipse 60% 50% at 20% 40%, var(--color-accent-light) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 60%, var(--color-accent) 0%, transparent 70%);
    filter: blur(80px);
    animation: meshDrift 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes meshDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 20px) scale(1.08); }
}

[data-theme="dark"] .showcase-bg-mesh { opacity: 0.15; }

.showcase-section .container {
    position: relative;
    z-index: 1;
}

/* Slider wrapper */
.showcase-slider {
    position: relative;
    margin-top: var(--space-8);
    padding: var(--space-8) 0 var(--space-4);
}

/* Viewport: overflow VISIBLE — section clips, not viewport.
   This allows adjacent cards to peek from the section edges. */
.showcase-viewport {
    position: relative;
    overflow: visible;
    min-height: 520px;
}

/* Edge fade gradients — the Apple signature touch.
   They smoothly dissolve peeking cards at the section edges. */
.showcase-viewport::before,
.showcase-viewport::after {
    content: '';
    position: absolute;
    top: -40px;
    bottom: -40px;
    width: 18%;
    min-width: 90px;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.showcase-viewport::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg) 25%, transparent 100%);
}

.showcase-viewport::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg) 25%, transparent 100%);
}

/* Hide the left gradient on the first slide — nothing to the left */
.showcase-slider[data-edge="first"] .showcase-viewport::before { opacity: 0; }
/* Hide the right gradient on the last slide — nothing to the right */
.showcase-slider[data-edge="last"]  .showcase-viewport::after  { opacity: 0; }

/* Track: position context for absolutely-placed slides */
.showcase-track {
    position: relative;
    min-height: 520px;
    perspective: 1400px;
    perspective-origin: center 45%;
}

/* Slides: all stacked at center; JS applies pixel-based transforms */
.showcase-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(520px, 80vw);
    /* Default: centred + hidden. JS overrides both for every slide on updateSlides().
       This means: (a) before JS runs the first slide (class="active") is visible & centred,
       (b) if Blazor's DOM patch clears inline style, next initShowcaseSlider() re-fires
       and restores everything via the _showcase.refresh() path. */
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: transform 0.68s cubic-bezier(0.32, 0.72, 0, 1),
                opacity 0.55s ease;
    will-change: transform, opacity;
}

/* The slide marked active in the SSR HTML is visible before JS */
.showcase-slide.active {
    opacity: 1;
}

/* Per-card spotlight: ambient glow behind the active card using the slide's own colour */
.showcase-spotlight {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -10%);
    width: 80%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
        var(--slide-a, var(--color-accent-light)) 0%,
        transparent 70%);
    opacity: 0;
    filter: blur(48px);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

.showcase-slide.active .showcase-spotlight { opacity: 0.6; }

/* Glass card */
.showcase-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    /* Coloured top accent stripe — unique per card via --slide-a */
    border: 1px solid var(--glass-border);
    border-top: 3px solid var(--slide-a, var(--color-accent));
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: box-shadow 0.55s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Active card: prominent multi-layer glow in the card's own colour */
.showcase-slide.active .showcase-card {
    box-shadow:
        var(--shadow-xl),
        0 0 0 1px color-mix(in srgb, var(--slide-a, var(--color-accent)) 28%, transparent),
        0 30px 100px -20px var(--slide-a, var(--color-accent));
}

/* Emoji with gradient glow */
.showcase-emoji-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    width: 90px;
    height: 90px;
}

.showcase-emoji {
    font-size: 3.25rem;
    display: block;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.showcase-emoji-glow {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle,
        var(--slide-a, var(--color-accent-light)) 0%,
        transparent 70%);
    opacity: 0;
    z-index: 0;
    transition: opacity 0.55s ease;
    animation: emojiPulse 3s ease-in-out infinite;
}

.showcase-slide.active .showcase-emoji-glow { opacity: 0.72; }

@keyframes emojiPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.2); }
}

/* Typography */
.showcase-industry {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slide-a, var(--color-accent));
    margin-bottom: var(--space-2);
}

.showcase-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-3);
    line-height: 1.2;
}

.showcase-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    max-width: 400px;
    flex: 1;
}

/* Tech pills — tinted in the card's own colour */
.showcase-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
    margin-bottom: var(--space-6);
}

.showcase-pill {
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--slide-a, var(--color-accent)) 12%, transparent);
    color: var(--slide-a, var(--color-accent));
    border: 1px solid color-mix(in srgb, var(--slide-a, var(--color-accent)) 25%, transparent);
}

/* CTA link */
.showcase-cta {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--slide-a, var(--color-accent));
    text-decoration: none;
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-full);
    border: 1.5px solid var(--slide-a, var(--color-accent));
    transition: background var(--transition-fast), color var(--transition-fast);
    margin-top: auto;
}

.showcase-cta:hover {
    background: var(--slide-a, var(--color-accent));
    color: #fff;
}

/* Navigation arrows */
.showcase-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    /* Animate opacity AND transform so the hide/show is smooth */
    transition: opacity 0.35s ease,
                transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
                background var(--transition-fast);
}

.showcase-arrow:hover:not(.showcase-arrow--hidden) {
    background: var(--color-accent-light);
    transform: translateY(-50%) scale(1.1);
}

/* Hidden state: fade out and shrink */
.showcase-arrow--hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-50%) scale(0.5) !important;
}

.showcase-arrow--prev { left: var(--space-4); }
.showcase-arrow--next { right: var(--space-4); }

/* Dot indicators */
.showcase-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
}

.showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--color-border);
    cursor: pointer;
    padding: 0;
    transition: background var(--transition-fast),
                transform var(--transition-fast),
                width var(--transition-fast),
                border-radius var(--transition-fast);
}

.showcase-dot.active {
    background: var(--color-accent);
    width: 28px;
    border-radius: 4px;
}

.showcase-dot:hover:not(.active) {
    background: var(--color-text-muted);
    transform: scale(1.3);
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .showcase-slide { width: min(460px, 82vw); }
    .showcase-track { min-height: 480px; }
    .showcase-viewport { min-height: 480px; }
}

/* Responsive: Mobile — only center card visible, no side peeks */
@media (max-width: 768px) {
    .showcase-slide { width: min(340px, 90vw); }
    .showcase-track { min-height: 440px; }
    .showcase-viewport { min-height: 440px; }
    /* Hide edge gradients on mobile (nothing to fade) */
    .showcase-viewport::before,
    .showcase-viewport::after { display: none; }
    .showcase-arrow { width: 38px; height: 38px; }
    .showcase-arrow--prev { left: var(--space-2); }
    .showcase-arrow--next { right: var(--space-2); }
    .showcase-card { padding: var(--space-6) var(--space-4); }
    .showcase-emoji { font-size: 2.5rem; }
    .showcase-title { font-size: var(--text-xl); }
    .showcase-slider { padding: var(--space-6) 0 var(--space-4); }
}
