/* ============================================
   CEO PROFILE — HIGH-TECH / SCARY ANIMATED
   ============================================ */

.ceo-page {
    background: #030308;
    --ceo-cyan: #00f5ff;
    --ceo-cyan-dim: #00b8c4;
    --ceo-green: #00ff88;
    --ceo-red: #ff3366;
    --ceo-orange: #ff6600;
    --ceo-bg: #030308;
    --ceo-card-bg: rgba(8, 12, 18, 0.85);
    --ceo-border: rgba(0, 245, 255, 0.15);
    --ceo-font-mono: 'JetBrains Mono', monospace;
    --ceo-font-display: 'Orbitron', sans-serif;
}

/* ---- Scanlines overlay ---- */
.ceo-scanlines {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    opacity: 0.4;
}

/* ---- Noise overlay ---- */
.ceo-noise {
    position: fixed;
    inset: 0;
    z-index: 9997;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Animated grid background ---- */
.ceo-grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
    animation: ceo-grid-pulse 8s ease-in-out infinite;
}

@keyframes ceo-grid-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.ceo-main {
    position: relative;
    z-index: 1;
    padding-top: var(--header-h, 72px);
}

/* ---- Hero ---- */
.ceo-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0 100px;
    overflow: hidden;
}

.ceo-hero-bg {
    position: absolute;
    inset: 0;
}

.ceo-hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    animation: ceo-glow-float 15s ease-in-out infinite;
}

.ceo-hero-glow-1 {
    background: var(--ceo-cyan);
    top: -200px;
    left: -100px;
}

.ceo-hero-glow-2 {
    background: var(--ceo-green);
    bottom: -200px;
    right: -100px;
    animation-delay: -7s;
}

@keyframes ceo-glow-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 50px) scale(0.95); }
}

.ceo-hero-lines {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 245, 255, 0.05) 50%, transparent 100%);
    animation: ceo-line-sweep 6s ease-in-out infinite;
}

@keyframes ceo-line-sweep {
    0%, 100% { opacity: 0.3; transform: translateY(-100%); }
    50% { opacity: 0.8; transform: translateY(100%); }
}

.ceo-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.ceo-hero-label {
    font-family: var(--ceo-font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--ceo-green);
    margin-bottom: 24px;
    opacity: 0;
    animation: ceo-fade-in 0.8s ease-out 0.2s forwards;
}

.ceo-bracket {
    color: var(--ceo-cyan);
    animation: ceo-bracket-blink 1.5s step-end infinite;
}

@keyframes ceo-bracket-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes ceo-fade-in {
    to { opacity: 1; }
}

/* ---- Glitch name ---- */
.ceo-hero-name {
    font-family: var(--ceo-font-display);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--ceo-cyan);
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
    opacity: 0;
    animation: ceo-fade-in 0.8s ease-out 0.5s forwards;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    left: -3px;
    text-shadow: 3px 0 var(--ceo-red);
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    animation: glitch-1 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: 3px;
    text-shadow: -3px 0 var(--ceo-green);
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    animation: glitch-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-2 {
    0% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(-2px, 2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(-2px, -2px); }
    100% { transform: translate(0); }
}

.ceo-hero-tagline {
    font-family: var(--ceo-font-mono);
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 28px;
    opacity: 0;
    animation: ceo-fade-in 0.8s ease-out 0.7s forwards;
}

.ceo-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    justify-content: center;
    font-family: var(--ceo-font-mono);
    font-size: 0.85rem;
    color: var(--ceo-cyan-dim);
    opacity: 0;
    animation: ceo-fade-in 0.8s ease-out 0.9s forwards;
}

.ceo-meta-item {
    transition: color 0.3s, text-shadow 0.3s;
}

.ceo-meta-item:hover {
    color: var(--ceo-cyan);
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

/* ---- Sections ---- */
.ceo-section {
    padding: 80px 0;
    position: relative;
}

.ceo-section-title {
    font-family: var(--ceo-font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ceo-cyan);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ceo-title-line {
    display: inline-block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ceo-cyan), transparent);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ceo-section-title.visible .ceo-title-line {
    width: 60px;
}

.ceo-title-text {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.ceo-section-title.visible .ceo-title-text {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Cards ---- */
.ceo-card {
    position: relative;
    padding: 40px;
    background: var(--ceo-card-bg);
    border: 1px solid var(--ceo-border);
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s, box-shadow 0.3s;
}

.ceo-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.ceo-card:hover {
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.1), inset 0 0 60px rgba(0, 245, 255, 0.02);
}

.ceo-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 245, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.ceo-summary-p {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 20px;
}

.ceo-summary-p:last-child {
    margin-bottom: 0;
}

.ceo-summary-p strong {
    color: var(--ceo-cyan-dim);
}

/* ---- Expertise grid ---- */
.ceo-expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.ceo-expertise-item {
    padding: 20px 24px;
    background: var(--ceo-card-bg);
    border: 1px solid var(--ceo-border);
    border-radius: 4px;
    font-family: var(--ceo-font-mono);
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out,
                border-color 0.3s, background 0.3s;
}

.ceo-expertise-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.ceo-expertise-item:hover {
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
}

.ceo-bullet {
    color: var(--ceo-green);
    margin-right: 12px;
}

/* ---- Timeline ---- */
.ceo-timeline {
    position: relative;
    padding-left: 32px;
    border-left: 2px solid var(--ceo-border);
}

.ceo-timeline-item {
    position: relative;
    padding-bottom: 32px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.ceo-timeline-item:last-child {
    padding-bottom: 0;
}

.ceo-timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.ceo-timeline-dot {
    position: absolute;
    left: -38px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--ceo-cyan);
    box-shadow: 0 0 20px var(--ceo-cyan);
    transition: box-shadow 0.3s, transform 0.3s;
}

.ceo-timeline-item:hover .ceo-timeline-dot {
    box-shadow: 0 0 30px var(--ceo-cyan), 0 0 40px rgba(0, 245, 255, 0.3);
    transform: scale(1.2);
}

.ceo-timeline-content {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.ceo-timeline-date {
    display: block;
    font-family: var(--ceo-font-mono);
    font-size: 0.8rem;
    color: var(--ceo-cyan);
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.ceo-timeline-content strong {
    color: var(--text);
}

/* ---- Education list ---- */
.ceo-list {
    list-style: none;
}

.ceo-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-family: var(--ceo-font-mono);
    font-size: 0.95rem;
}

.ceo-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--ceo-green);
}

/* ---- Cert tags ---- */
.ceo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ceo-tag {
    padding: 12px 20px;
    background: var(--ceo-card-bg);
    border: 1px solid var(--ceo-border);
    border-radius: 4px;
    font-family: var(--ceo-font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out,
                border-color 0.3s, color 0.3s;
}

.ceo-tag.visible {
    opacity: 1;
    transform: scale(1);
}

.ceo-tag:hover {
    border-color: var(--ceo-cyan);
    color: var(--ceo-cyan);
}

/* ---- Value proposition ---- */
.ceo-value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ceo-value-item {
    padding: 24px;
    background: var(--ceo-card-bg);
    border: 1px solid var(--ceo-border);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out,
                border-color 0.3s, box-shadow 0.3s;
}

.ceo-value-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.ceo-value-item:hover {
    border-color: rgba(0, 255, 136, 0.35);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.08);
}

.ceo-value-icon {
    color: var(--ceo-green);
    margin-right: 12px;
}

/* ---- Data stream effect (subtle) ---- */
.ceo-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 245, 255, 0.02) 20%,
        transparent 40%,
        rgba(0, 255, 136, 0.02) 60%,
        transparent 80%,
        rgba(0, 245, 255, 0.02) 100%
    );
    background-size: 100% 300%;
    animation: ceo-data-stream 12s linear infinite;
    pointer-events: none;
}

@keyframes ceo-data-stream {
    0% { background-position: 0 0; }
    100% { background-position: 0 300%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ceo-grid-bg,
    .ceo-hero-glow,
    .ceo-hero-lines,
    .ceo-hero-bg::after,
    .glitch::before,
    .glitch::after {
        animation: none;
    }
}

/* ---- Stagger delays (via JS we add .visible; CSS can use nth-child delay) ---- */
.ceo-expertise-item:nth-child(1) { transition-delay: 0.05s; }
.ceo-expertise-item:nth-child(2) { transition-delay: 0.1s; }
.ceo-expertise-item:nth-child(3) { transition-delay: 0.15s; }
.ceo-expertise-item:nth-child(4) { transition-delay: 0.2s; }
.ceo-expertise-item:nth-child(5) { transition-delay: 0.25s; }
.ceo-expertise-item:nth-child(6) { transition-delay: 0.3s; }
.ceo-expertise-item:nth-child(7) { transition-delay: 0.35s; }
.ceo-expertise-item:nth-child(8) { transition-delay: 0.4s; }

.ceo-timeline-item:nth-child(1) { transition-delay: 0.05s; }
.ceo-timeline-item:nth-child(2) { transition-delay: 0.1s; }
.ceo-timeline-item:nth-child(3) { transition-delay: 0.15s; }
.ceo-timeline-item:nth-child(4) { transition-delay: 0.2s; }
.ceo-timeline-item:nth-child(5) { transition-delay: 0.25s; }
.ceo-timeline-item:nth-child(6) { transition-delay: 0.3s; }
.ceo-timeline-item:nth-child(7) { transition-delay: 0.35s; }
.ceo-timeline-item:nth-child(8) { transition-delay: 0.4s; }
.ceo-timeline-item:nth-child(9) { transition-delay: 0.45s; }
.ceo-timeline-item:nth-child(10) { transition-delay: 0.5s; }

.ceo-tag:nth-child(1) { transition-delay: 0.05s; }
.ceo-tag:nth-child(2) { transition-delay: 0.1s; }
.ceo-tag:nth-child(3) { transition-delay: 0.15s; }
.ceo-tag:nth-child(4) { transition-delay: 0.2s; }
.ceo-tag:nth-child(5) { transition-delay: 0.25s; }
.ceo-tag:nth-child(6) { transition-delay: 0.3s; }
.ceo-tag:nth-child(7) { transition-delay: 0.35s; }
.ceo-tag:nth-child(8) { transition-delay: 0.4s; }

.ceo-value-item:nth-child(1) { transition-delay: 0.05s; }
.ceo-value-item:nth-child(2) { transition-delay: 0.1s; }
.ceo-value-item:nth-child(3) { transition-delay: 0.15s; }
.ceo-value-item:nth-child(4) { transition-delay: 0.2s; }
.ceo-value-item:nth-child(5) { transition-delay: 0.25s; }
