/* ─── Admin Editor ─────────────────────────────────────────── */
.admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: rgba(15, 23, 42, 0.97);
    border-bottom: 1px solid rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 9999;
    backdrop-filter: blur(12px);
}

.admin-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-bar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.9);
    animation: adminPulse 1.8s ease infinite;
}

@keyframes adminPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.admin-bar-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(245, 158, 11, 0.9);
    text-transform: uppercase;
}

.admin-saved-indicator {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(34, 211, 238, 0.9);
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-saved-indicator.visible {
    opacity: 1;
}

.admin-bar-right {
    display: flex;
    gap: 0.5rem;
}

.admin-bar-btn {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    border: 1px solid;
    cursor: pointer;
    transition: background 0.2s ease;
    letter-spacing: 0.3px;
}

.admin-exit-btn {
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(34, 211, 238, 0.07);
    color: var(--secondary-color);
}

.admin-exit-btn:hover {
    background: rgba(34, 211, 238, 0.15);
}

.admin-reset-btn {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.06);
    color: rgba(239, 68, 68, 0.8);
}

.admin-reset-btn:hover {
    background: rgba(239, 68, 68, 0.14);
}

/* Editable element highlight */
.admin-editable {
    outline: 1px dashed rgba(245, 158, 11, 0.25) !important;
    border-radius: 3px;
    cursor: text !important;
    transition: outline-color 0.2s ease, background 0.2s ease;
}

.admin-editable:hover {
    outline-color: rgba(245, 158, 11, 0.6) !important;
    background: rgba(245, 158, 11, 0.04) !important;
}

.admin-editable.admin-focused {
    outline: 1.5px solid rgba(245, 158, 11, 0.8) !important;
    background: rgba(245, 158, 11, 0.06) !important;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #22d3ee;
    --accent-color: #a78bfa;
    --text-primary: #f1f5f9;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-light: rgba(255, 255, 255, 0.38);
    --background: #0f172a;
    --background-alt: #1e293b;
    --background-dark: #0f172a;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-bg-hover: rgba(255, 255, 255, 0.08);
    --success-color: #34d399;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --water-mid:       #0891b2;
    --water-surface:   #22d3ee;
    --water-highlight: #67e8f9;
    --gradient-water-text: linear-gradient(135deg, #818cf8 0%, #0891b2 30%, #22d3ee 55%, #67e8f9 75%, #818cf8 100%);
    --gradient-water-flow: linear-gradient(90deg, #4f46e5, #0891b2, #22d3ee, #67e8f9, #22d3ee, #0891b2, #4f46e5);
    --dot-pattern: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect width="60" height="60" fill="url(%23dots)"/></svg>');
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Logo Circuit Mark ────────────────────────────────────── */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-circuit {
    color: var(--secondary-color);
    flex-shrink: 0;
    opacity: 0.85;
}

.logo-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.55rem;
    border-radius: 50px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.07);
    color: var(--secondary-color);
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-right: 0.35rem;
}

/* ─── Navigation ──────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none;
    padding: 1rem 2.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-water-text);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.78rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--primary-light);
}

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

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

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: rgba(34, 211, 238, 0.07);
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.resume-btn:hover {
    background: rgba(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 0.7);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-secondary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ─── Hero Section ─────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    color: white;
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: fadeInUp 1s ease;
}

.hero-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

/* ─── Hero Photo ───────────────────────────────────────────── */
.hero-photo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-photo-frame {
    position: relative;
    width: 300px;
    height: 300px;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 2px solid rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.06), 0 0 60px rgba(34, 211, 238, 0.15), 0 20px 50px rgba(0, 0, 0, 0.5);
    display: block;
}

.hero-photo-circuit {
    position: absolute;
    inset: -10px;
    pointer-events: none;
    animation: rotateSlow 30s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ─── Hero Role Badge ──────────────────────────────────────── */
.hero-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    padding: 0.45rem 0.9rem;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 50px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.hero-role-badge strong {
    color: var(--secondary-color);
    font-weight: 700;
}

.hero-role-badge svg {
    color: var(--secondary-color);
    opacity: 0.8;
    flex-shrink: 0;
}

.role-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.7);
    flex-shrink: 0;
    animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(52, 211, 153, 0.6); }
    50%       { box-shadow: 0 0 10px rgba(52, 211, 153, 0.9); }
}

.role-currently {
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #34d399;
}

.role-sep {
    color: var(--secondary-color);
    opacity: 0.4;
    font-weight: 700;
    font-size: 0.7rem;
}

.role-at {
    opacity: 0.5;
    font-size: 0.75rem;
}

/* ─── Hero chatbot nudge ───────────────────────────────────── */
.hero-chatbot-nudge {
    margin-top: 1.5rem !important;
    font-size: 0.8rem !important;
    opacity: 0.5;
    letter-spacing: 0.3px;
    cursor: default;
    margin-bottom: 0 !important;
}

.nudge-arrow {
    display: inline-block;
    animation: bounceY 2s ease-in-out infinite;
}

@keyframes bounceY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(4px); }
}

.hero-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient-water-flow);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 0.5px rgba(103, 232, 249, 0.15);
    animation: waterDrift 14s ease infinite;
    transition: filter 0.4s ease;
}

.hero-title:hover {
    filter: url(#water-distort);
}

.highlight {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 0;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
    padding: 1rem 2.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15), 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ─── Authority / Metrics Strip ───────────────────────────── */
.authority-strip {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(34, 211, 238, 0.15);
    border-bottom: 1px solid rgba(34, 211, 238, 0.15);
    padding: 0.875rem 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.authority-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.authority-chip {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.3px;
    white-space: nowrap;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    background: rgba(34, 211, 238, 0.05);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.authority-chip:hover {
    border-color: rgba(34, 211, 238, 0.45);
    background: rgba(34, 211, 238, 0.1);
}

.authority-icon {
    color: var(--secondary-color);
    opacity: 0.75;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .authority-strip-inner {
        gap: 0.5rem;
    }
    .authority-chip {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
    }
}

/* ─── Shared Section Styles ────────────────────────────────── */
section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Subtle dot pattern overlay on all non-hero sections */
.philosophy::before,
.expertise::before,
.products::before,
.media::before,
.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dot-pattern);
    pointer-events: none;
    z-index: 0;
}

.philosophy .container,
.expertise .container,
.products .container,
.media .container,
.contact .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-water-text);
    background-size: 250% 250%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Philosophy Section ───────────────────────────────────── */
.philosophy {
    background-color: var(--background-alt);
}

.philosophy-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.philosophy-intro .lead {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ─── Philosophy Carousel ──────────────────────────────────── */
.philosophy-carousel {
    margin-top: 3rem;
}

.carousel-track-outer {
    overflow: hidden;
    border-radius: 16px;
}

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

.philosophy-card {
    min-width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 300px;
    box-sizing: border-box;
}

.card-main {
    padding: 2.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
}

.card-why {
    padding: 2.5rem;
    background: rgba(99, 102, 241, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.why-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary-color);
    opacity: 0.8;
    margin: 0 0 0.25rem;
}

.card-why p:not(.why-label) {
    font-size: 0.88rem;
    line-height: 1.78;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.3);
    background: rgba(34, 211, 238, 0.06);
    color: var(--secondary-color);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.carousel-btn:hover {
    background: rgba(34, 211, 238, 0.14);
    border-color: rgba(34, 211, 238, 0.6);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--secondary-color);
    transform: scale(1.3);
}

.card-expand-inner {
    margin-top: 1.5rem;
    padding: 1.5rem 2.5rem 2rem;
    background: linear-gradient(145deg, rgba(79, 70, 229, 0.18) 0%, rgba(15, 23, 42, 0.6) 100%);
    border-top: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 0 0 12px 12px;
    position: relative;
}

.card-expand-inner::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 2.5rem;
    width: 10px;
    height: 10px;
    background: rgba(79, 70, 229, 0.35);
    border-left: 1px solid rgba(99, 102, 241, 0.3);
    border-top: 1px solid rgba(99, 102, 241, 0.3);
    transform: rotate(45deg);
}

.card-expand-inner p:not(.back-eyebrow) {
    font-size: 0.88rem;
    line-height: 1.78;
    color: rgba(255, 255, 255, 0.7);
}

.card-inline-link {
    color: var(--secondary-color);
    text-decoration: underline;
    text-decoration-color: rgba(34, 211, 238, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.card-inline-link:hover {
    color: white;
    text-decoration-color: rgba(34, 211, 238, 0.8);
}

/* Shared between expand panel and expertise card-back */
.back-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-light);
    opacity: 0.65;
    margin-bottom: 0.75rem;
}

/* Flip system — used only by expertise cards */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-front {
    background: var(--card-bg);
}

.card-back {
    background: linear-gradient(145deg, rgba(79, 70, 229, 0.2) 0%, rgba(15, 23, 42, 0.96) 100%);
    border-color: rgba(99, 102, 241, 0.3);
    transform: rotateY(180deg);
}

.card-back p:not(.back-eyebrow) {
    font-size: 0.88rem;
    line-height: 1.78;
    color: rgba(255, 255, 255, 0.72);
}

.flip-hint {
    display: block;
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary-light);
    opacity: 0.45;
    transition: opacity 0.3s ease;
    user-select: none;
}

.philosophy-number {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-light);
    background-color: rgba(99, 102, 241, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.philosophy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--water-highlight);
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.philosophy-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ─── AI Journey Timeline Section ─────────────────────────── */
.journey {
    background-color: var(--background-dark);
    position: relative;
    height: 100vh;
    min-height: 680px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.journey .container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: 5.5rem;
    padding-bottom: 1.25rem;
}

.journey .section-title  { margin-bottom: 0.4rem; flex-shrink: 0; }
.journey .section-subtitle {
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.journey .section-title {
    color: white;
}

.journey .section-subtitle {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4rem;
}

.journey::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dot-pattern);
    pointer-events: none;
}

/* Timeline wrapper */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        rgba(100, 116, 139, 0.4) 0%,
        rgba(6, 182, 212, 0.6) 35%,
        rgba(6, 182, 212, 0.6) 65%,
        rgba(79, 70, 229, 0.8) 100%
    );
}

/* Era blocks */
.timeline-era {
    padding: 3rem 0;
    position: relative;
}

/* Era header */
.era-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.era-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.era-rules .era-badge {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.era-conversational .era-badge {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.era-generative .era-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.era-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.4rem;
}

.era-years {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.era-rules .era-years { color: #94a3b8; }
.era-conversational .era-years { color: #22d3ee; }
.era-generative .era-years { color: #a5b4fc; }

.era-description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
}

/* Timeline items */
.timeline-items {
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item.item-left {
    flex-direction: row;
    padding-right: calc(50% + 2.5rem);
}

.timeline-item.item-right {
    flex-direction: row-reverse;
    padding-left: calc(50% + 2.5rem);
}

/* Connector dot on the spine */
.timeline-connector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    top: 1.25rem;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--background-dark);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.era-rules .timeline-dot { background: #64748b; box-shadow: 0 0 0 3px rgba(100,116,139,0.3); }
.era-conversational .timeline-dot { background: #06b6d4; box-shadow: 0 0 0 3px rgba(6,182,212,0.3); }
.era-generative .timeline-dot { background: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.3); }

.timeline-dot.dot-current {
    width: 18px;
    height: 18px;
    background: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.4), 0 0 20px rgba(99, 102, 241, 0.6);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.4), 0 0 20px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.2), 0 0 30px rgba(99, 102, 241, 0.7); }
}

/* Timeline card */
.timeline-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.era-rules .timeline-card:hover { border-color: rgba(100, 116, 139, 0.5); }
.era-conversational .timeline-card:hover { border-color: rgba(6, 182, 212, 0.5); }
.era-generative .timeline-card:hover { border-color: rgba(99, 102, 241, 0.5); }

.timeline-card.card-current {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.35);
}

/* Industry milestone cards */
.timeline-card.card-industry {
    border: 1px dashed rgba(251, 191, 36, 0.38);
    background: rgba(251, 191, 36, 0.03);
}

.timeline-card.card-industry:hover {
    border-color: rgba(251, 191, 36, 0.62) !important;
    background: rgba(251, 191, 36, 0.06) !important;
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.08);
}

.industry-badge {
    display: inline-block;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(251, 191, 36, 0.7);
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.22);
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}

/* Arrow connector from card to spine */
.item-left .timeline-card::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 1.5rem;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid rgba(255, 255, 255, 0.1);
}

.item-right .timeline-card::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 1.5rem;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid rgba(255, 255, 255, 0.1);
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.era-rules .timeline-year { color: #94a3b8; }
.era-conversational .timeline-year { color: #22d3ee; }
.era-generative .timeline-year { color: #a5b4fc; }

.timeline-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--water-highlight);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.timeline-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
}

.era-rules .timeline-tags span {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.era-conversational .timeline-tags span {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}

.era-generative .timeline-tags span {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

/* Era dividers */
.era-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    position: relative;
    z-index: 1;
}

.era-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.era-divider-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

/* ─── Timeline Tab Panels ─────────────────────────────────── */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: tabFadeIn 0.35s ease;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Journey Two-Column Layout ───────────────────────────── */
.journey-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

/* Left nav column */
.journey-nav {
    width: 240px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.025);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.journey-nav-header {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.22);
    padding-left: 0.25rem;
}

.journey-chapters {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.journey-chapter {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 0.2s ease, border-color 0.2s ease;
    color: inherit;
}

.journey-chapter:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.09);
}

.journey-chapter.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.13);
}

.chapter-num {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.18);
    transition: color 0.2s ease;
    font-variant-numeric: tabular-nums;
}

.chapter-conversational.active .chapter-num { color: #22d3ee; }
.chapter-rules.active       .chapter-num { color: #94a3b8; }
.chapter-generative.active  .chapter-num { color: #a5b4fc; }

.chapter-conversational:hover:not(.active) .chapter-num { color: rgba(34,  211, 238, 0.45); }
.chapter-rules:hover:not(.active)          .chapter-num { color: rgba(148, 163, 184, 0.45); }
.chapter-generative:hover:not(.active)     .chapter-num { color: rgba(165, 180, 252, 0.45); }

.chapter-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.chapter-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chapter-years {
    font-size: 0.7rem;
    color: var(--text-light);
}

.chapter-arrow {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.journey-chapter.active   .chapter-arrow { opacity: 1; }
.journey-chapter:hover    .chapter-arrow { opacity: 0.6; }

/* Field evolution indicator at bottom of nav */
.journey-evolution {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.journey-evolution-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 0.75rem;
}

.journey-evolution-track {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.evo-pill {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    display: inline-block;
    width: fit-content;
}

.evo-pill.step-rules         { background: rgba(100,116,139,0.18); color: #94a3b8; }
.evo-pill.step-conversational{ background: rgba(6,182,212,0.12);   color: #22d3ee; }
.evo-pill.step-generative    { background: rgba(99,102,241,0.18);  color: #a5b4fc; }

.evo-connector {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.65rem;
    padding-left: 0.5rem;
    line-height: 1;
}

/* Right scrollable content */
.journey-content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 1.5rem 2rem 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.journey-content::-webkit-scrollbar       { width: 5px; }
.journey-content::-webkit-scrollbar-track { background: transparent; }
.journey-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
.journey-content::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }

/* Continuous scroll: all panels always visible inside the pane */
.journey-content .tab-panel,
.journey-content .tab-panel.active {
    display: block;
    animation: none;
}

/* ─── Journey compact text (right-column only) ────────────── */
.journey-content .timeline-era      { padding: 0.75rem 0 1rem; }
.journey-content .era-header        { margin-bottom: 1.25rem; padding-top: 0.5rem; }
.journey-content .era-badge         { font-size: 0.62rem; padding: 0.25rem 0.7rem; margin-bottom: 0.5rem; }
.journey-content .era-title         { font-size: 1.25rem; margin-bottom: 0.25rem; }
.journey-content .era-years         { font-size: 0.8rem; margin-bottom: 0.6rem; }
.journey-content .era-description   { font-size: 0.82rem; line-height: 1.65; }
.journey-content .timeline-item     { margin-bottom: 1.25rem; }
.journey-content .timeline-card     { padding: 0.9rem 1.1rem; }
.journey-content .timeline-card h4  { font-size: 0.88rem; margin-bottom: 0.35rem; line-height: 1.35; }
.journey-content .timeline-card p   { font-size: 0.78rem; line-height: 1.6; margin-bottom: 0.6rem; }
.journey-content .timeline-year     { font-size: 0.68rem; margin-bottom: 0.3rem; }
.journey-content .industry-badge    { font-size: 0.58rem; padding: 0.15rem 0.5rem; margin-bottom: 0.3rem; }
.journey-content .timeline-tags     { gap: 0.35rem; }
.journey-content .timeline-tags span{ font-size: 0.62rem; padding: 0.2rem 0.55rem; }

/* Era divider between continuous sections */
.journey-content .timeline-era + .timeline-era {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.5rem;
    padding-top: 1.25rem;
}

/* ─── Journey Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
    .journey {
        height: 100svh; /* use small viewport height on mobile to avoid address bar issues */
        min-height: 600px;
    }

    .journey .container {
        padding-top: 4.5rem;
        padding-bottom: 0.75rem;
    }

    .journey-layout {
        flex-direction: column;
    }

    .journey-nav {
        width: 100%;
        flex-shrink: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding: 0.875rem 1rem;
        gap: 0.5rem;
    }

    .journey-chapters {
        flex-direction: row;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
    }

    .journey-chapters::-webkit-scrollbar { display: none; }

    .journey-chapter {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.6rem 0.75rem;
        min-width: 110px;
        flex-shrink: 0;
    }

    .chapter-num  { font-size: 1.1rem; }
    .chapter-name { font-size: 0.78rem; }
    .chapter-years{ font-size: 0.65rem; }
    .chapter-arrow { display: none; }
    .journey-evolution { display: none; }

    .journey-content {
        flex: 1;
        min-height: 0;
        padding: 0.875rem 0.875rem 1rem;
    }
}

/* ─── Field Evolution Bar ──────────────────────────────────── */
.field-evolution {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 100;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.field-evolution-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.22);
    margin-bottom: 0.875rem;
}

.field-evolution-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.field-evolution-step {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.875rem;
    border-radius: 50px;
    letter-spacing: 0.3px;
    opacity: 0.45;
    cursor: pointer;
    transition: opacity 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    user-select: none;
}

.field-evolution-step:hover {
    opacity: 0.75;
}

.field-evolution-step.active {
    opacity: 1;
}

.step-rules {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.25);
}

.step-rules.active {
    background: rgba(100, 116, 139, 0.28);
    border-color: rgba(100, 116, 139, 0.6);
    box-shadow: 0 0 14px rgba(100, 116, 139, 0.22);
}

.step-conversational {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.step-conversational.active {
    background: rgba(6, 182, 212, 0.18);
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.22);
}

.step-generative {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.step-generative.active {
    background: rgba(99, 102, 241, 0.28);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.22);
}

.field-evolution-connector {
    color: rgba(255, 255, 255, 0.18);
    font-size: 1rem;
    transition: opacity 0.4s ease;
}

/* Career path divider */
.career-path-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem auto 2.5rem;
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.career-path-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.career-path-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    white-space: nowrap;
}

/* ─── Expertise Section ────────────────────────────────────── */
.expertise {
    background-color: var(--background);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.expertise-card {
    perspective: 1200px;
    height: 260px;
    cursor: pointer;
}

.expertise-card:hover .card-inner,
.expertise-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.expertise-card .card-front,
.expertise-card .card-back {
    padding: 2rem;
}

.expertise-card .card-front {
    justify-content: flex-start;
}

.expertise-card:hover .flip-hint {
    opacity: 0;
}

.expertise-icon {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.expertise-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--water-highlight);
    font-weight: 700;
    position: relative;
}

.expertise-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ─── Products Section ─────────────────────────────────────── */
.products {
    background-color: var(--background-alt);
}

.products-grid {
    display: grid;
    gap: 2.5rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.product-header {
    background: var(--gradient-secondary);
    padding: 1.25rem 1.5rem 1rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.product-header-svg {
    display: block;
    width: 100%;
    height: 72px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.product-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.6rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.product-content {
    padding: 1.25rem 1.5rem;
}

.product-challenge,
.product-solution {
    margin-bottom: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.product-challenge strong,
.product-solution strong {
    color: var(--text-primary);
    font-weight: 600;
}

.product-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 0.2rem;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.product-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-tags span {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.product-link:hover {
    gap: 0.6rem;
    color: white;
}

/* ─── Media Section (Writing, Speaking & Press) ────────────── */
.media {
    background-color: var(--background);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.media-col {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.media-col-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--secondary-color);
}

.media-col-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin: 0;
}

.media-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.media-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.media-item:last-child {
    border-bottom: none;
}

.media-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0.25rem 0 0.3rem;
}

.media-item-label {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--secondary-color);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    margin-bottom: 0.25rem;
}

.media-item-outlet {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 0.25rem;
}

.media-item-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0.2rem 0 0.35rem;
}

.media-item-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0.25rem 0 0.4rem;
}

.media-item-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s ease, color 0.2s ease;
    margin-top: 0.3rem;
}

.media-item-link:hover {
    gap: 0.55rem;
    color: white;
}

.media-col-cta {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    text-align: center;
    text-decoration: none;
}

/* ─── Contact Section ──────────────────────────────────────── */
.contact {
    background-color: var(--background);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
    color: var(--text-primary);
    color-scheme: dark;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg-hover);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.contact-form .btn {
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

/* ─── Currently Active ─────────────────────────────────────── */

.currently-active {
    padding: 3rem 0;
    background: transparent;
}

.active-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.active-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.active-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--secondary-color);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.active-card:hover {
    background: rgba(34, 211, 238, 0.05);
    border-color: rgba(34, 211, 238, 0.4);
    border-left-color: var(--secondary-color);
    transform: translateX(4px);
}

.active-card-left {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.active-category {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary-color);
    opacity: 0.75;
}

.active-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.active-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    max-width: 640px;
}

.active-card-right {
    flex-shrink: 0;
}

.active-arrow {
    font-size: 1.25rem;
    color: var(--secondary-color);
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: block;
}

.active-card:hover .active-arrow {
    opacity: 1;
    transform: translateX(4px);
}

@media (max-width: 600px) {
    .active-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .active-card-right { display: none; }
}

/* ─── Footer ───────────────────────────────────────────────── */
.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.25rem 2.5rem;
    text-align: center;
}

.footer-disclaimer p {
    font-size: 0.72rem;
    color: var(--text-light);
    opacity: 0.6;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.6;
}

.footer {
    background-color: #060d1a;
    color: white;
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-left p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--text-primary);
}

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

/* ─── Water Typography ─────────────────────────────────────── */

/* Slow gradient drift — the primary water-flow effect */
@keyframes waterDrift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

/* Caustic shimmer — diagonal light-through-water sweep on hover */
@keyframes causticShimmer {
    0%   { transform: translateX(-100%) skewX(-20deg); opacity: 0; }
    15%  { opacity: 0.6; }
    85%  { opacity: 0.6; }
    100% { transform: translateX(250%) skewX(-20deg); opacity: 0; }
}

/* Surface pulse — very subtle brightness oscillation for navbar logo */
@keyframes surfacePulse {
    0%, 100% { filter: brightness(1); }
    50%       { filter: brightness(1.12) drop-shadow(0 0 6px rgba(34, 211, 238, 0.3)); }
}

/* Shimmer pseudo-element for card headings */
.philosophy-card h3::after,
.expertise-card h3::after,
.article-title::after,
.category-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(103, 232, 249, 0.3),
        transparent
    );
    transform: translateX(-100%) skewX(-20deg);
    pointer-events: none;
}

/* Trigger shimmer on parent card hover — expertise cards only */
.expertise-card:hover h3::after {
    animation: causticShimmer 0.9s ease forwards;
}

/* Section title hover glow */
.section-title:hover {
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(34, 211, 238, 0.2));
    transition: filter 0.5s ease;
}

/* ─── Responsive Design ────────────────────────────────────── */
@media (max-width: 968px) {
    .philosophy-card {
        grid-template-columns: 1fr;
    }

    .card-main {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 968px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2.5rem;
    }
    .hero-text {
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-photo-frame {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(16px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-bottom: 1px solid var(--border-color);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .product-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    /* Responsive timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item.item-left,
    .timeline-item.item-right {
        flex-direction: row;
        padding-left: 3.5rem;
        padding-right: 0;
    }

    .timeline-connector {
        left: 20px;
        transform: none;
    }

    .item-left .timeline-card::after,
    .item-right .timeline-card::after {
        left: -8px;
        right: auto;
        border-right: 8px solid rgba(255, 255, 255, 0.1);
        border-left: none;
    }

    .era-header {
        text-align: left;
        padding-left: 3.5rem;
    }

    .era-description {
        margin: 0;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .btn {
        width: 100%;
    }
}

/* ─── Chatbot Widget ───────────────────────────────────────── */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    color: white;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(79, 70, 229, 0.5);
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    height: 600px;
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chatbot-container.active {
    display: flex;
}

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

.chatbot-header {
    background: var(--gradient-secondary);
    color: white;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.chatbot-title h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.chatbot-title p {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.85;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.chatbot-close:hover {
    opacity: 0.7;
}

.chatbot-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #1e293b;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #1e293b;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.chatbot-message {
    display: flex;
    gap: 0.75rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: var(--gradient-secondary);
    color: white;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message-content p {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-color);
    padding: 0.875rem;
    border-radius: 12px;
    margin: 0;
    line-height: 1.6;
    color: var(--text-primary);
}

.user-message .message-content p {
    background: var(--primary-dark);
    border-color: transparent;
    color: white;
}

.suggested-questions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.suggestion-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 500;
}

.suggestion-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
}

.chatbot-input-container {
    padding: 1rem;
    background: #0f172a;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
}

.chatbot-input {
    flex: 1;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
    color: var(--text-primary);
}

.chatbot-input::placeholder {
    color: var(--text-light);
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg-hover);
}

.chatbot-send {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--gradient-secondary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.chatbot-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.chatbot-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.typing-indicator {
    display: flex;
    gap: 0.25rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-light);
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ─── Responsive Chatbot ───────────────────────────────────── */
@media (max-width: 768px) {
    .chatbot-container {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 90px;
        height: 500px;
    }

    .chatbot-toggle {
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        width: 100vw;
        height: 100vh;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }

    .chatbot-toggle {
        width: 56px;
        height: 56px;
    }
}
