/* ===== PREMIUM DESIGN SYSTEM - victordelrosal.com ===== */
/* Unified stylesheet for consistent styling across all pages */

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

:root {
    /* Tron Blue Palette */
    --blue-1: #000000;  /* Darkest-black */
    --blue-2: #000036;  /* Very Dark Blue */
    --blue-3: #02066F;  /* Dark Blue */
    --blue-4: #170484;  /* Dark Blue with Deep Hue */
    --blue-5: #050c91;  /* Deep Blue */
    --blue-6: #001489;  /* Pantone Reflex Blue C */
    --blue-7: #0000B3;  /* Brightest: Bright Blue */

    /* Dark Theme */
    --bg-dark: var(--blue-1);
    --bg-dark-elevated: var(--blue-2);
    --bg-dark-card: rgba(0,20,137,0.15);

    /* Light Theme */
    --bg-light: #fafafa;
    --bg-light-card: #ffffff;

    /* Text */
    --text-white: #ffffff;
    --text-white-secondary: rgba(255,255,255,0.7);
    --text-white-tertiary: rgba(255,255,255,0.5);
    --text-dark: #1d1d1f;
    --text-dark-secondary: #6e6e73;

    /* Accent Colors - Tron Blue */
    --accent-blue: var(--blue-7);
    --accent-blue-bright: #0066FF;
    --accent-cyan: #00D4FF;
    --accent-electric: #4D9FFF;

    /* Gradients - Tron Blue */
    --gradient-hero: linear-gradient(
        to bottom,
        var(--blue-1) 0%,
        var(--blue-2) 5%,
        var(--blue-3) 20%,
        var(--blue-4) 35%,
        var(--blue-5) 50%,
        var(--blue-6) 75%,
        var(--blue-7) 100%
    );
    --gradient-text: linear-gradient(135deg, #00D4FF 0%, #0066FF 25%, var(--blue-7) 50%, var(--blue-5) 75%, #00D4FF 100%);
    --gradient-glow: radial-gradient(circle, rgba(0,20,137,0.4) 0%, transparent 70%);
    --gradient-button: linear-gradient(135deg, var(--blue-5) 0%, var(--blue-7) 50%, var(--blue-6) 100%);

    /* Shadows */
    --shadow-glow: 0 0 60px rgba(0,0,179,0.3);
    --shadow-card: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-card-hover: 0 20px 60px rgba(0,0,0,0.2);

    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-system);
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-dark);
    background: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Light background body variant */
body.bg-light {
    background: var(--bg-light);
}

::selection {
    background: var(--blue-6);
    color: white;
}

/* ===== 2. NAVIGATION - FLOATING GLASS ===== */
nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    height: 52px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 8px 0 20px;
    gap: 8px;
}

.logo {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    margin-left: 16px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-white-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
    background: rgba(255,255,255,0.1);
}

/* ===== 3. HERO SECTION - CINEMATIC TRON ===== */
.hero {
    min-height: 100vh;
    width: 100vw;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

/* Animated gradient mesh background */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(0,0,179,0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0,102,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0,212,255,0.2) 0%, transparent 40%),
        radial-gradient(circle at 60% 60%, rgba(5,12,145,0.3) 0%, transparent 40%);
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* Floating orbs - Tron Blue */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--blue-7) 0%, var(--blue-5) 100%);
    top: -20%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--blue-4) 0%, var(--blue-6) 100%);
    bottom: -15%;
    left: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #00D4FF 0%, var(--blue-7) 100%);
    top: 40%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* ===== AQUARIUM WAVE EFFECT ===== */
/* Recreates the mesmerizing motion of watching through aquarium glass */
.aquarium-waves {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    position: absolute;
    width: 200%;
    left: -50%;
    bottom: 0;
    height: 100%;
}

.wave-deep { opacity: 0.25; animation: oceanDeep 20s ease-in-out infinite; }
.wave-deep path { fill: #003366; }

.wave-mid { opacity: 0.35; animation: oceanMid 14s ease-in-out infinite; animation-delay: -4s; }
.wave-mid path { fill: #005588; }

.wave-surface { opacity: 0.5; animation: oceanSurface 10s ease-in-out infinite; animation-delay: -2s; }
.wave-surface path { fill: #0088bb; }

.caustics {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 60%, rgba(0, 150, 255, 0.08) 0%, transparent 50%);
    animation: causticsShift 20s ease-in-out infinite;
    mix-blend-mode: screen;
}

.aquarium-waves::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 40, 120, 0.04) 60%, rgba(0, 60, 180, 0.06) 100%);
    pointer-events: none;
}

/* Wave animations */
@keyframes oceanDeep {
    0%, 100% { transform: translateX(0%) scaleY(1); }
    25% { transform: translateX(5%) scaleY(1.02); }
    50% { transform: translateX(2%) scaleY(0.98); }
    75% { transform: translateX(-3%) scaleY(1.01); }
}

@keyframes oceanMid {
    0%, 100% { transform: translateX(0%) scaleY(1) translateY(0); }
    20% { transform: translateX(-4%) scaleY(1.03) translateY(-2%); }
    40% { transform: translateX(3%) scaleY(0.97) translateY(1%); }
    60% { transform: translateX(-2%) scaleY(1.02) translateY(-1%); }
    80% { transform: translateX(4%) scaleY(0.98) translateY(2%); }
}

@keyframes oceanSurface {
    0%, 100% { transform: translateX(0%) scaleY(1) translateY(0); }
    16.67% { transform: translateX(-3%) scaleY(1.04) translateY(-3%); }
    33.33% { transform: translateX(4%) scaleY(0.96) translateY(2%); }
    50% { transform: translateX(-2%) scaleY(1.03) translateY(-2%); }
    66.67% { transform: translateX(3%) scaleY(0.97) translateY(3%); }
    83.33% { transform: translateX(-4%) scaleY(1.02) translateY(-1%); }
}

@keyframes causticsShift {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    25% { transform: scale(1.05) translate(2%, -2%); opacity: 0.6; }
    50% { transform: scale(0.98) translate(-1%, 1%); opacity: 0.9; }
    75% { transform: scale(1.02) translate(1%, -1%); opacity: 0.7; }
}

/* Grid overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    padding: 8px 16px;
    background: rgba(100,210,255,0.1);
    border: 1px solid rgba(100,210,255,0.2);
    border-radius: 100px;
}

.hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(48px, 10vw, 88px);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.04em;
    color: var(--text-white);
    margin-bottom: 24px;
}

/* Animated gradient text */
.gradient-text {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 400;
    color: var(--text-white-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 48px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 4. BUTTONS - PREMIUM TRON ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: var(--gradient-button);
    border: none;
    border-radius: 100px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,179,0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-7) 0%, #00D4FF 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,179,0.5), 0 0 30px rgba(0,212,255,0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.btn-secondary svg {
    transition: transform 0.3s var(--ease-out);
}

.btn-secondary:hover svg {
    transform: translateX(4px);
}

/* ===== 5. SECTIONS ===== */
.section-light {
    background: var(--bg-light);
    color: var(--text-dark);
    width: 100%;
}

section {
    padding: 140px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Make wrapper divs full width */
.section-light,
.section-dark,
.contact-wrapper {
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    color: var(--blue-7);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-dark-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Dark sections */
.section-dark {
    background: #0a0a0a;
    color: var(--text-white);
}

.section-dark .section-label {
    color: var(--accent-cyan);
}

.section-dark .section-subtitle {
    color: var(--text-white-secondary);
}

/* ===== 6. ABOUT SECTION ===== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    align-items: start;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark-secondary);
}

.about-text p {
    margin-bottom: 24px;
}

.about-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.about-text em {
    color: var(--blue-7);
    font-style: normal;
    font-weight: 500;
}

.about-text a {
    color: var(--blue-7);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.about-text a:hover {
    opacity: 0.7;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark-secondary);
    background: rgba(0,0,0,0.05);
    padding: 8px 16px;
    border-radius: 100px;
}

/* ===== 7. STATS GRID ===== */
.stats-grid {
    display: grid;
    gap: 16px;
}

.stat-card {
    background: var(--bg-light-card);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s var(--ease-out);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue-7) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-dark-secondary);
}

/* ===== 8. WORK SECTION ===== */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

.work-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.work-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.work-card:hover::before {
    opacity: 1;
}

.work-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.work-card .meta {
    font-size: 14px;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    font-weight: 500;
}

.work-card p {
    font-size: 16px;
    color: var(--text-white-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.work-card .tags {
    margin-top: 0;
}

.work-card .tag {
    background: rgba(100,210,255,0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(100,210,255,0.2);
}

/* ===== 9. CONTACT SECTION ===== */
.contact-wrapper {
    position: relative;
    padding: 120px 24px;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
    background: #0a0a0a;
}

.contact-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 60%);
    filter: blur(60px);
}

.contact-section {
    position: relative;
    text-align: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 40px;
    padding: 80px 48px;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.contact-section .section-title {
    color: var(--text-white);
    margin-bottom: 16px;
}

.contact-section p {
    font-size: 20px;
    color: var(--text-white-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
}

.contact-link:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* ===== 9.5 WAVE NAVBAR (waves.html) ===== */
.wave-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    z-index: 1000;
    overflow: hidden;
}

.wave-navbar-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 0;
}

/* Ambient glow effect like original header */
.wave-navbar-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 70%, rgba(0,0,179,0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(0,102,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0,40,80,0.2) 0%, transparent 60%);
    animation: rotateGlow 20s linear infinite;
    z-index: 1;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Aquarium waves at bottom */
.wave-navbar-bg .wave-navbar-wave {
    position: absolute;
    left: 0;
    width: 200%;
    height: 40px;
    z-index: 2;
}

.wave-navbar-bg .wave-deep {
    fill: rgba(0, 20, 60, 0.6);
    bottom: -8px;
    animation: waveNavbarFlow 15s ease-in-out infinite;
}

.wave-navbar-bg .wave-mid {
    fill: rgba(0, 60, 120, 0.5);
    bottom: -4px;
    animation: waveNavbarFlow 12s ease-in-out infinite reverse;
}

.wave-navbar-bg .wave-surface {
    fill: rgba(0, 100, 180, 0.4);
    bottom: 0;
    animation: waveNavbarFlow 8s ease-in-out infinite;
}

@keyframes waveNavbarFlow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-25%); }
}

.wave-navbar-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 24px;
    text-align: center;
}

/* Centered Waves title with shimmer */
.wave-navbar-title {
    display: none;
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(
        90deg,
        #fff 0%,
        #fff 35%,
        #7dd3fc 45%,
        #38bdf8 50%,
        #7dd3fc 55%,
        #fff 65%,
        #fff 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: waveNavbarShimmer 3s ease-in-out infinite;
}

@keyframes waveNavbarShimmer {
    0%, 100% { background-position: 200% center; }
    50% { background-position: 0% center; }
}

/* Centered navigation */
.wave-navbar-links {
    display: flex;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.wave-navbar-links li a {
    display: block;
    padding: 6px 14px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.wave-navbar-links li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.12);
}

.wave-navbar-links li a.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

/* Waves page body adjustment */
.waves-page .waves-section--with-navbar {
    padding-top: 122px;
}

/* Waves tagline */
.waves-tagline {
    font-style: italic;
    font-size: 18px;
    color: var(--text-light-secondary);
    text-align: center;
    margin-bottom: 32px;
    padding: 0 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wave-navbar {
        height: 80px;
    }

    .wave-navbar-content {
        padding: 0 16px;
    }

    .wave-navbar-title {
        display: none;
    }

    .wave-navbar-links {
        gap: 4px;
    }

    .wave-navbar-links li a {
        padding: 5px 10px;
        font-size: 12px;
    }

    .waves-page .waves-section--with-navbar {
        padding-top: 112px;
    }

    .waves-tagline {
        font-size: 16px;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .wave-navbar {
        height: 70px;
    }

    .wave-navbar-title {
        display: none;
    }

    .wave-navbar-links li a {
        padding: 4px 8px;
        font-size: 11px;
    }

    .waves-page .waves-section--with-navbar {
        padding-top: 102px;
    }
}

/* ===== 10. PAGE HEADER - TRON CINEMATIC (waves.html) ===== */
.page-header {
    background: var(--gradient-hero);
    width: 100%;
    padding: 120px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 70%, rgba(0,0,179,0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(0,102,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0,212,255,0.2) 0%, transparent 40%);
    animation: gradientShift 15s ease-in-out infinite;
}

/* Floating orbs for page header */
.header-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: orbFloat 20s ease-in-out infinite;
}

.header-orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--blue-7) 0%, var(--blue-5) 100%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.header-orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #00D4FF 0%, var(--blue-6) 100%);
    bottom: -80px;
    left: -80px;
    animation-delay: -10s;
}

.page-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Page header section label variant */
.page-header .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(100,210,255,0.1);
    border: 1px solid rgba(100,210,255,0.2);
    border-radius: 100px;
}

.page-header .section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.page-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

.page-description {
    font-size: 20px;
    color: var(--text-white-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    white-space: nowrap;
}

/* ===== 11. WAVES LIST (waves.html) ===== */

/* Waves Search Box - Google-like */
.waves-search-container {
    width: 100%;
    margin-bottom: 32px;
    position: relative;
    z-index: 10;
}

.waves-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.waves-search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    background: var(--bg-light-card);
    border-radius: 28px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 4px 24px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    overflow: hidden;
}

/* Filter Button & Dropdown */
.waves-filter-wrapper {
    position: relative;
}

.waves-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    background: var(--bg-light-card);
    border: none;
    border-radius: 50%;
    color: var(--text-light-secondary);
    cursor: pointer;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.waves-filter-btn svg {
    width: 22px;
    height: 22px;
}

.waves-filter-btn:hover {
    background: var(--bg-light-hover);
    transform: translateY(-1px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 8px 32px rgba(0, 0, 0, 0.08);
}

.waves-filter-btn.active {
    background: var(--accent-blue);
    color: white;
}

.waves-filter-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--bg-light-card);
    border-radius: 16px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 8px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 100;
}

.waves-filter-option {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-align: left;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light-secondary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.waves-filter-option:hover {
    background: var(--bg-light-hover);
    color: var(--text-light-primary);
}

.waves-filter-option.active {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-blue);
}

.waves-search-box:hover {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 8px 32px rgba(0, 0, 0, 0.08);
}

.waves-search-box:focus-within {
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.15),
        0 8px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.waves-search-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--text-light-tertiary);
    pointer-events: none;
    transition: color 0.2s ease;
}

.waves-search-box:focus-within .waves-search-icon {
    color: var(--accent-blue);
}

.waves-search-input {
    width: 100%;
    padding: 20px 48px;
    font-size: 16px;
    font-family: inherit;
    border: none;
    background: transparent;
    color: var(--text-light-primary);
    outline: none;
}

.waves-search-input::placeholder {
    color: var(--text-light-tertiary);
    opacity: 0.23;
}

.waves-search-clear {
    position: absolute;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-light-hover);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.waves-search-clear:hover {
    opacity: 1;
    background: var(--bg-light-active);
}

.waves-search-clear svg {
    width: 18px;
    height: 18px;
    color: var(--text-light-secondary);
}

.waves-search-results {
    text-align: center;
    padding: 16px 0 0;
    font-size: 15px;
    color: var(--text-light-secondary);
}

.waves-search-results strong {
    color: var(--text-light-primary);
    font-weight: 600;
}


.waves-section {
    padding: 80px 24px 120px;
    max-width: 800px;
    margin: 0 auto;
}

.waves-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== 12. WAVE ENTRY CARDS ===== */
.wave-entry {
    display: block;
    background: var(--bg-light-card);
    border-radius: 24px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.wave-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wave-entry:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover), 0 0 40px rgba(0,0,0,0.15);
}

.wave-entry:hover::before {
    opacity: 1;
}

/* Wave Type Badge */
.wave-type {
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dark-secondary);
    background: rgba(0,0,0,0.05);
    padding: 6px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.wave-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.wave-entry:hover .wave-title {
    color: var(--text-dark);
}

.wave-body {
    font-size: 16px;
    color: var(--text-dark-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.wave-meta {
    font-size: 14px;
    color: var(--text-dark-secondary);
    opacity: 0.7;
}

.wave-source {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(0,0,0,0.1);
}

/* Arrow indicator */
.wave-arrow {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blue-7);
    opacity: 0;
    transition: all 0.3s var(--ease-out);
}

.wave-entry:hover .wave-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(4px);
}

/* ===== WAVE DUALITY CARD STYLES ===== */
/* Ocean cards: Creative content - animated waves, aquarium glass, bubbles */
/* Light cards: Technical content - oscilloscope, sine waves, digital aesthetic */

/* ========================================
   OCEAN WAVE CARDS - Aquarium Style
   ======================================== */
.wave-entry[data-wave-style="ocean"] {
    background: linear-gradient(180deg,
        rgba(240, 248, 255, 1) 0%,
        rgba(220, 240, 255, 1) 100%);
    border: none;
    position: relative;
    overflow: hidden;
    /* Aquarium glass frame */
    box-shadow:
        inset 0 0 0 4px rgba(184, 115, 51, 0.4),
        inset 0 0 0 6px rgba(212, 165, 116, 0.3),
        inset 0 0 30px rgba(0, 100, 180, 0.1),
        0 8px 32px rgba(0, 50, 100, 0.15);
    border-radius: 20px;
}

/* Animated ocean wave at bottom of card */
.wave-entry[data-wave-style="ocean"]::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 300%;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%230088bb' fill-opacity='0.15' d='M0,60 C150,90 350,30 600,60 C850,90 1050,30 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E");
    background-size: 400px 50px;
    animation: oceanCardWave 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Second wave layer - offset */
.wave-entry[data-wave-style="ocean"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 300%;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%2300a4d4' fill-opacity='0.12' d='M0,60 C200,20 400,100 600,60 C800,20 1000,100 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E");
    background-size: 350px 40px;
    animation: oceanCardWave 6s linear infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes oceanCardWave {
    0% { transform: translateX(0); }
    100% { transform: translateX(33.33%); }
}

/* Glass reflection effect */
.wave-entry[data-wave-style="ocean"] .wave-content,
.wave-entry[data-wave-style="ocean"] .wave-title,
.wave-entry[data-wave-style="ocean"] .wave-body,
.wave-entry[data-wave-style="ocean"] .wave-meta {
    position: relative;
    z-index: 1;
}

.wave-entry[data-wave-style="ocean"]:hover {
    transform: translateY(-8px);
    box-shadow:
        inset 0 0 0 4px rgba(184, 115, 51, 0.5),
        inset 0 0 0 6px rgba(212, 165, 116, 0.4),
        inset 0 0 40px rgba(0, 100, 180, 0.15),
        0 16px 48px rgba(0, 50, 100, 0.25);
}

/* Ocean type badge - deep blue wave style */
.wave-entry[data-wave-style="ocean"] .wave-type {
    background: linear-gradient(135deg, #1a4a6e 0%, #2d6a94 50%, #1a4a6e 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 2px 8px rgba(26, 74, 110, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    position: relative;
    z-index: 10;
}

.wave-entry[data-wave-style="ocean"]:hover .wave-arrow {
    color: #2d6a94;
}

/* Bubble decoration for ocean cards */
.wave-entry[data-wave-style="ocean"] .wave-title::after {
    content: '○ ◦ ·';
    position: absolute;
    right: -40px;
    top: 0;
    font-size: 10px;
    color: rgba(0, 150, 200, 0.3);
    letter-spacing: 4px;
    animation: bubbleFloat 3s ease-in-out infinite;
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-8px); opacity: 0.6; }
}


/* ========================================
   LIGHT WAVE CARDS - Oscilloscope Style
   ======================================== */
.wave-entry[data-wave-style="light"] {
    background: linear-gradient(180deg, #0a1628 0%, #0d1f3c 100%);
    border: 2px solid #1a3a5c;
    position: relative;
    overflow: hidden;
    color: #e0f0ff;
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.1),
        0 8px 32px rgba(0, 20, 50, 0.4),
        inset 0 1px 0 rgba(0, 212, 255, 0.1);
}

/* Oscilloscope grid */
.wave-entry[data-wave-style="light"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* Animated sine wave across the card */
.wave-entry[data-wave-style="light"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 300%;
    height: 60px;
    transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60'%3E%3Cpath fill='none' stroke='%2300d4ff' stroke-width='2' stroke-opacity='0.3' d='M0,30 Q25,10 50,30 T100,30 T150,30 T200,30 T250,30 T300,30 T350,30 T400,30'/%3E%3C/svg%3E");
    background-size: 200px 60px;
    animation: sineWaveCard 4s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

@keyframes sineWaveCard {
    0% { transform: translateY(-50%) translateX(0); }
    100% { transform: translateY(-50%) translateX(33.33%); }
}

/* Content needs to be above the wave */
.wave-entry[data-wave-style="light"] .wave-content,
.wave-entry[data-wave-style="light"] .wave-title,
.wave-entry[data-wave-style="light"] .wave-body,
.wave-entry[data-wave-style="light"] .wave-meta,
.wave-entry[data-wave-style="light"] .wave-type {
    position: relative;
    z-index: 1;
}

/* Light card text colors */
.wave-entry[data-wave-style="light"] .wave-title {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.wave-entry[data-wave-style="light"] .wave-body {
    color: rgba(200, 220, 255, 0.8);
}

.wave-entry[data-wave-style="light"] .wave-meta {
    color: rgba(0, 212, 255, 0.6);
    font-family: var(--font-mono);
    font-size: 12px;
}

.wave-entry[data-wave-style="light"]:hover {
    transform: translateY(-8px);
    border-color: #00d4ff;
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.3),
        0 0 30px rgba(0, 212, 255, 0.2),
        0 16px 48px rgba(0, 20, 50, 0.5),
        inset 0 0 60px rgba(0, 212, 255, 0.05);
}

/* Oscilloscope-style type badge */
.wave-entry[data-wave-style="light"] .wave-type {
    background: transparent;
    color: #00d4ff;
    border: 1px solid #00d4ff;
    box-shadow:
        0 0 10px rgba(0, 212, 255, 0.3),
        inset 0 0 10px rgba(0, 212, 255, 0.1);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* LED indicators in corners */
.wave-entry[data-wave-style="light"] .wave-title::before {
    content: '●';
    position: absolute;
    left: -20px;
    top: 4px;
    font-size: 6px;
    color: #00ff88;
    text-shadow: 0 0 8px #00ff88;
    animation: ledBlink 2s ease-in-out infinite;
}

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

.wave-entry[data-wave-style="light"]:hover .wave-arrow {
    color: #00d4ff;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
}

/* Wavelength indicator */
.wave-entry[data-wave-style="light"] .wave-meta::after {
    content: ' λ';
    color: rgba(0, 212, 255, 0.4);
    font-size: 10px;
}


/* ========================================
   GOLD WAVE CARDS - Featured Style
   Elegant dark card with gold accent border
   ======================================== */
.wave-entry[data-wave-style="gold"] {
    background: #1a1a1a;
    border: none;
    position: relative;
    overflow: hidden;
    color: #e5e5e5;
    box-shadow:
        0 0 20px rgba(212, 160, 32, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding-top: 34px; /* Extra padding for the gold bar */
}

/* Gold glow accent at top */
.wave-entry[data-wave-style="gold"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(
        90deg,
        #8B6914 0%,
        #D4A020 20%,
        #F5D76E 50%,
        #D4A020 80%,
        #8B6914 100%
    );
    z-index: 10;
    border-radius: 16px 16px 0 0;
}

/* Subtle gold glow beneath the border */
.wave-entry[data-wave-style="gold"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(
        to bottom,
        rgba(212, 160, 32, 0.15) 0%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Hide the shimmer element - not needed for this design */
.wave-entry[data-wave-style="gold"] .featured-shimmer {
    display: none;
}

/* Hide sparkles - cleaner look */
.wave-entry[data-wave-style="gold"] .featured-sparkles {
    display: none;
}

/* Content positioning */
.wave-entry[data-wave-style="gold"] .wave-content,
.wave-entry[data-wave-style="gold"] .wave-title,
.wave-entry[data-wave-style="gold"] .wave-body,
.wave-entry[data-wave-style="gold"] .wave-meta,
.wave-entry[data-wave-style="gold"] .wave-type {
    position: relative;
    z-index: 3;
}

/* Gold card text colors - light for dark background */
.wave-entry[data-wave-style="gold"] .wave-title {
    color: #ffffff;
    text-shadow: none;
}

.wave-entry[data-wave-style="gold"] .wave-body {
    color: #b0b0b0;
}

.wave-entry[data-wave-style="gold"] .wave-meta {
    color: #888888;
}

/* Gold type badge - refined */
.wave-entry[data-wave-style="gold"] .wave-type {
    background: linear-gradient(135deg, #8B6914 0%, #D4A020 50%, #8B6914 100%);
    color: white;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

/* Stats badge styling for dark background */
.wave-entry[data-wave-style="gold"] .wave-stats {
    color: #888888;
}

.wave-entry[data-wave-style="gold"] .wave-stat {
    color: #888888;
}

/* Hover state - subtle gold glow */
.wave-entry[data-wave-style="gold"]:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 30px rgba(212, 160, 32, 0.25),
        0 12px 40px rgba(0, 0, 0, 0.5);
}

.wave-entry[data-wave-style="gold"]:hover .wave-arrow {
    color: #D4A020;
}

/* Arrow styling */
.wave-entry[data-wave-style="gold"] .wave-arrow {
    color: #888888;
    z-index: 3;
    position: relative;
}


/* ========================================
   CINEMA WAVE CARDS - Video Style
   Arrow/Pentagon shape - the card IS the play button!
   ======================================== */
.wave-entry[data-wave-style="cinema"] {
    background: linear-gradient(135deg,
        #e8f4fc 0%,
        #d4eaf7 25%,
        #c5e3f5 50%,
        #d4eaf7 75%,
        #e8f4fc 100%);
    border: none;
    position: relative;
    overflow: visible;
    color: #2d3748;
    box-shadow:
        0 4px 20px rgba(100, 180, 220, 0.25),
        0 8px 32px rgba(0, 0, 0, 0.1);
    /* Arrow/Pentagon clip-path - very rounded/gentle tip (94%) */
    clip-path: polygon(0 0, 94% 0, 100% 50%, 94% 100%, 0 100%);
    padding-right: 18%;
    transition: clip-path 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hide letterbox bars */
.wave-entry[data-wave-style="cinema"] .video-letterbox {
    display: none;
}

/* Play icon - 4X larger, positioned with breathing room */
.wave-entry[data-wave-style="cinema"] .video-play-icon {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 112px;
    height: 112px;
    color: #2c5282;
    z-index: 10;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.wave-entry[data-wave-style="cinema"] .video-play-icon svg {
    width: 100%;
    height: 100%;
}

/* Hide the default arrow on video cards */
.wave-entry[data-wave-style="cinema"] .wave-arrow {
    display: none;
}

/* Hide stats/counters on video cards */
.wave-entry[data-wave-style="cinema"] .wave-stats {
    display: none;
}

/* Subtle wave pattern overlay */
.wave-entry[data-wave-style="cinema"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(100, 180, 220, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(150, 200, 230, 0.15) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* No left accent stripe - doesn't fit arrow shape */
.wave-entry[data-wave-style="cinema"]::after {
    display: none;
}

/* Content positioning */
.wave-entry[data-wave-style="cinema"] .wave-content,
.wave-entry[data-wave-style="cinema"] .wave-title,
.wave-entry[data-wave-style="cinema"] .wave-body,
.wave-entry[data-wave-style="cinema"] .wave-meta,
.wave-entry[data-wave-style="cinema"] .wave-type {
    position: relative;
    z-index: 3;
}

/* Cinema card text colors - dark text on light background */
.wave-entry[data-wave-style="cinema"] .wave-title {
    color: #1a365d;
}

.wave-entry[data-wave-style="cinema"] .wave-body {
    color: #4a5568;
}

.wave-entry[data-wave-style="cinema"] .wave-meta {
    color: #718096;
}

/* Video type badge - ocean blue style */
.wave-entry[data-wave-style="cinema"] .wave-type {
    background: linear-gradient(135deg, #2c5282 0%, #4299e1 50%, #2c5282 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
    font-weight: 700;
}

/* Stats styling for light background */
.wave-entry[data-wave-style="cinema"] .wave-stats {
    color: #718096;
}

.wave-entry[data-wave-style="cinema"] .wave-stat {
    color: #718096;
}

/* Hover state - arrow extends forward slightly */
.wave-entry[data-wave-style="cinema"]:hover {
    transform: translateY(-8px);
    /* Arrow tip extends slightly on hover (92% vs 94%) */
    clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
    box-shadow:
        0 8px 30px rgba(100, 180, 220, 0.4),
        0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Play icon brightens on hover */
.wave-entry[data-wave-style="cinema"]:hover .video-play-icon {
    opacity: 0.8;
    color: #4299e1;
    transform: translateY(-50%) scale(1.05);
}


/* ========================================
   BRAINWAVE CARDS - Wavy Shape + Aquarium Effect 〰
   Card has smooth wave-shaped borders AND aquarium ondulating inside
   ======================================== */

/* Wave animation keyframes */
@keyframes brainwave-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes brainwave-deep {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5%); }
}

@keyframes brainwave-mid {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3%); }
}

@keyframes brainwave-surface {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-2%); }
}

@keyframes brainwave-caustics {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.02); }
}

.wave-entry[data-wave-style="brainwave"] {
    /* Ocean blue gradient - animating */
    background: linear-gradient(135deg,
        #0c4a6e 0%,
        #0369a1 20%,
        #0ea5e9 40%,
        #38bdf8 60%,
        #0ea5e9 80%,
        #0369a1 100%);
    background-size: 200% 200%;
    animation: brainwave-flow 8s ease-in-out infinite;
    border: none;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow:
        0 8px 32px rgba(14, 165, 233, 0.35),
        0 4px 16px rgba(0, 0, 0, 0.15);
    /* Smooth wavy card shape using SVG clip-path */
    clip-path: url(#brainwave-clip);
    border-radius: 0;
    padding: 45px 28px;
    margin-top: 25px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Aquarium wave layers inside the card */
.wave-entry[data-wave-style="brainwave"] .brainwave-waves-top,
.wave-entry[data-wave-style="brainwave"] .brainwave-waves-bottom {
    position: absolute;
    left: -10%;
    right: -10%;
    height: 60px;
    overflow: visible;
    pointer-events: none;
    z-index: 2;
}

.wave-entry[data-wave-style="brainwave"] .brainwave-waves-top {
    top: -5px;
}

.wave-entry[data-wave-style="brainwave"] .brainwave-waves-bottom {
    bottom: -5px;
    transform: scaleY(-1);
}

/* Three-layer wave system - lighter blues ondulating inside */
.wave-entry[data-wave-style="brainwave"] .brainwave-wave {
    position: absolute;
    left: 0;
    width: 200%;
    height: 100%;
}

/* Deep wave - slowest, most prominent */
.wave-entry[data-wave-style="brainwave"] .brainwave-wave--deep {
    top: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C180,40 360,10 540,30 C720,50 900,20 1080,40 C1260,60 1350,30 1440,45 L1440,60 L0,60 Z' fill='rgba(56,189,248,0.25)'/%3E%3C/svg%3E") repeat-x;
    background-size: 720px 100%;
    animation: brainwave-deep 12s ease-in-out infinite;
}

/* Mid wave - medium speed */
.wave-entry[data-wave-style="brainwave"] .brainwave-wave--mid {
    top: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,10 C240,50 480,20 720,40 C960,60 1200,25 1440,50 L1440,60 L0,60 Z' fill='rgba(125,211,252,0.3)'/%3E%3C/svg%3E") repeat-x;
    background-size: 480px 100%;
    animation: brainwave-mid 8s ease-in-out infinite;
    animation-delay: -2s;
}

/* Surface wave - fastest, sharpest */
.wave-entry[data-wave-style="brainwave"] .brainwave-wave--surface {
    top: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,20 C120,45 240,25 360,40 C480,55 600,30 720,45 C840,60 960,35 1080,50 C1200,65 1320,40 1440,55 L1440,60 L0,60 Z' fill='rgba(186,230,253,0.35)'/%3E%3C/svg%3E") repeat-x;
    background-size: 360px 100%;
    animation: brainwave-surface 5s ease-in-out infinite;
    animation-delay: -1s;
}

/* Caustic light effect overlay */
.wave-entry[data-wave-style="brainwave"] .brainwave-caustics {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 30%, rgba(56, 189, 248, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 75% 65%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(125, 211, 252, 0.12) 0%, transparent 40%);
    animation: brainwave-caustics 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Brainwave icon - wave emoji in corner */
.wave-entry[data-wave-style="brainwave"] .brainwave-icon {
    position: absolute;
    right: 24px;
    top: 50px;
    font-size: 36px;
    opacity: 0.9;
    z-index: 10;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

/* Content positioning - above wave layers */
.wave-entry[data-wave-style="brainwave"] .wave-content,
.wave-entry[data-wave-style="brainwave"] .wave-title,
.wave-entry[data-wave-style="brainwave"] .wave-body,
.wave-entry[data-wave-style="brainwave"] .wave-meta,
.wave-entry[data-wave-style="brainwave"] .wave-type,
.wave-entry[data-wave-style="brainwave"] .wave-stats {
    position: relative;
    z-index: 5;
}

/* Brainwave text colors - light for dark ocean background */
.wave-entry[data-wave-style="brainwave"] .wave-title {
    color: #ffffff;
    padding-right: 50px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.wave-entry[data-wave-style="brainwave"] .wave-body {
    color: #e0f2fe;
}

.wave-entry[data-wave-style="brainwave"] .wave-meta {
    color: #bae6fd;
}

/* Brainwave type badge - ocean themed */
.wave-entry[data-wave-style="brainwave"] .wave-type {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #0284c7 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
    font-weight: 700;
}

/* Stats styling */
.wave-entry[data-wave-style="brainwave"] .wave-stats {
    color: #bae6fd;
}

.wave-entry[data-wave-style="brainwave"] .wave-stat {
    color: #bae6fd;
}

/* Hide default arrow on brainwave cards */
.wave-entry[data-wave-style="brainwave"] .wave-arrow {
    display: none;
}

/* Hover state - wave intensifies */
.wave-entry[data-wave-style="brainwave"]:hover {
    transform: translateY(-8px);
    box-shadow:
        0 8px 30px rgba(14, 165, 233, 0.5),
        0 12px 40px rgba(0, 0, 0, 0.2);
}

.wave-entry[data-wave-style="brainwave"]:hover .brainwave-icon {
    opacity: 1;
    transform: scale(1.15);
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.3));
}


/* ===== 13. WAVE ENTRY VARIANTS ===== */

/* Photo entry */
/* Photo card type badge - ensure visible above image */
.wave-entry--photo .wave-type {
    position: relative;
    z-index: 10;
}

.wave-entry--photo .wave-image-wrapper {
    margin: -28px -28px 20px -28px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.wave-entry--photo .wave-image,
.wave-entry--photo .wave-gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
    animation: breathingZoom 15s ease-in-out infinite;
}

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

.wave-entry--photo:hover .wave-image,
.wave-entry--photo:hover .wave-gallery-slide img {
    animation-play-state: paused;
    transform: scale(1.1);
    transition: transform 0.6s var(--ease-out);
}

/* Photo frame corner decorations */
.photo-frame-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 5;
    pointer-events: none;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.photo-frame-corner::before,
.photo-frame-corner::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, #c9a227 0%, #f4d675 50%, #c9a227 100%);
    border-radius: 1px;
}

/* Horizontal bar */
.photo-frame-corner::before {
    width: 24px;
    height: 3px;
}

/* Vertical bar */
.photo-frame-corner::after {
    width: 3px;
    height: 24px;
}

/* Top-left corner */
.photo-frame-corner--tl {
    top: 0;
    left: 0;
}
.photo-frame-corner--tl::before { top: 0; left: 0; }
.photo-frame-corner--tl::after { top: 0; left: 0; }

/* Top-right corner */
.photo-frame-corner--tr {
    top: 0;
    right: 0;
}
.photo-frame-corner--tr::before { top: 0; right: 0; }
.photo-frame-corner--tr::after { top: 0; right: 0; }

/* Bottom-left corner */
.photo-frame-corner--bl {
    bottom: 0;
    left: 0;
}
.photo-frame-corner--bl::before { bottom: 0; left: 0; }
.photo-frame-corner--bl::after { bottom: 0; left: 0; }

/* Bottom-right corner */
.photo-frame-corner--br {
    bottom: 0;
    right: 0;
}
.photo-frame-corner--br::before { bottom: 0; right: 0; }
.photo-frame-corner--br::after { bottom: 0; right: 0; }

/* Hover effect - corners become more visible */
.wave-entry--photo:hover .photo-frame-corner {
    opacity: 1;
}

/* Photo type badge styling - golden to match frame */
.wave-entry--photo .wave-type {
    background: linear-gradient(135deg, #1a3a2e 0%, #2d5a4a 50%, #1a3a2e 100%);
    color: #f4d675;
    border: 1px solid rgba(201, 162, 39, 0.3);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(244, 214, 117, 0.1);
}

/* Type icon styling */
.wave-entry--photo .wave-type .type-icon {
    margin-right: 4px;
    font-size: 0.9em;
}

/* Gallery */
.wave-gallery {
    position: relative;
    overflow: hidden;
}

.wave-gallery-track {
    display: flex;
    transition: transform 0.4s var(--ease-out);
}

.wave-gallery-slide {
    flex: 0 0 100%;
}

.wave-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.wave-gallery-nav svg {
    width: 18px;
    height: 18px;
    color: var(--text-dark);
}

.wave-entry--photo:hover .wave-gallery-nav {
    opacity: 1;
}

.wave-gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.wave-gallery-nav:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed;
}

.wave-gallery-nav--prev { left: 16px; }
.wave-gallery-nav--next { right: 16px; }

.wave-gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.wave-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wave-gallery-dot.active {
    background: white;
    transform: scale(1.3);
}

/* Longform with thumbnail */
.wave-entry--longform {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: start;
}

.wave-entry--longform .wave-type {
    grid-column: 1 / -1;
}

.wave-thumb {
    width: 140px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(0,0,0,0.03), rgba(0,0,0,0.05));
}

/* Article placeholder when no image */
.wave-thumb--article {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
}

.wave-thumb--article .article-icon {
    font-size: 40px;
    opacity: 0.8;
}

.wave-entry--longform .wave-content {
    min-width: 0;
}

/* Reading entry */
.wave-entry--reading {
    border-left: 4px solid var(--blue-7);
    background: linear-gradient(135deg, rgba(0,0,0,0.01), rgba(0,0,0,0.02));
}

.wave-entry--reading .wave-glasses,
.wave-entry--reading .wave-highlight,
.wave-entry--reading .wave-lines,
.wave-entry--reading .wave-progress {
    display: none;
}

/* Hide decorative elements */
.wave-bubble-tail, .wave-margin, .wave-stain,
.wave-checkbox, .wave-grid, .wave-icon,
.wave-preview, .wave-letterbox, .wave-play {
    display: none;
}

/* ===== 14. LOADING & EMPTY STATES ===== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
    color: var(--text-dark-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: var(--blue-7);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: var(--text-dark-secondary);
    font-size: 15px;
}

.empty-state {
    text-align: center;
    padding: 100px 24px;
}

.empty-state h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-dark-secondary);
    font-size: 18px;
}

/* ===== 15. READING PROGRESS BAR (article pages) ===== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 1001;
}

.reading-progress-bar {
    height: 100%;
    background: var(--gradient-text);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    width: 0%;
    transition: width 50ms linear;
}

/* ===== 17. POST/ARTICLE CONTENT ===== */
/* ===== WAVE WATERMARK - Individual Post Background ===== */
/* Iconic, subtle wave signature for all wave content */

.wave-watermark {
    position: relative;
    min-height: 100vh;
}

/* Ensure post content stays above watermark */
.wave-watermark .post,
.wave-watermark .loading,
.wave-watermark .not-found {
    position: relative;
    z-index: 2;
}

/* Large decorative wave in background */
.wave-watermark::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background:
        /* Gentle radial glow from top */
        radial-gradient(ellipse 120% 60% at 50% -10%, rgba(0, 150, 255, 0.08) 0%, transparent 60%),
        /* Subtle ambient gradient */
        linear-gradient(180deg, rgba(230, 244, 255, 0.9) 0%, rgba(255, 255, 255, 0) 40%);
}

/* Animated wave SVG watermark - stroke only, no fill = no hard edge */
.wave-watermark::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: -50%;
    width: 200%;
    height: 300px;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%230066cc' stroke-width='3' stroke-opacity='0.08' d='M0,100 C320,160 420,40 720,100 C1020,160 1120,40 1440,100'/%3E%3Cpath fill='none' stroke='%230088dd' stroke-width='2' stroke-opacity='0.05' d='M0,130 C320,180 420,80 720,130 C1020,180 1120,80 1440,130'/%3E%3Cpath fill='none' stroke='%2300aaee' stroke-width='1.5' stroke-opacity='0.04' d='M0,160 C320,200 420,120 720,160 C1020,200 1120,120 1440,160'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: bottom;
    animation: watermarkWave 20s ease-in-out infinite;
}

@keyframes watermarkWave {
    0%, 100% { transform: translateX(0%) scaleY(1); }
    50% { transform: translateX(5%) scaleY(1.1); }
}

/* Side wave accent - left */
.wave-signature {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 60vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: fadeInSignature 1s ease-out 0.5s forwards;
}

.wave-signature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 400'%3E%3Cpath fill='none' stroke='%230088cc' stroke-width='2' stroke-opacity='0.15' d='M50,0 Q80,50 50,100 T50,200 T50,300 T50,400'/%3E%3Cpath fill='none' stroke='%2300aadd' stroke-width='1.5' stroke-opacity='0.1' d='M30,0 Q60,50 30,100 T30,200 T30,300 T30,400'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}

/* Side wave accent - right */
.wave-signature-right {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
    width: 120px;
    height: 60vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: fadeInSignature 1s ease-out 0.7s forwards;
}

.wave-signature-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 400'%3E%3Cpath fill='none' stroke='%230088cc' stroke-width='2' stroke-opacity='0.15' d='M50,0 Q80,50 50,100 T50,200 T50,300 T50,400'/%3E%3Cpath fill='none' stroke='%2300aadd' stroke-width='1.5' stroke-opacity='0.1' d='M30,0 Q60,50 30,100 T30,200 T30,300 T30,400'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}

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

/* Floating wave icon - top corner accent */
.wave-icon-float {
    position: fixed;
    top: 100px;
    right: 40px;
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: floatIn 1s ease-out 0.3s forwards, gentleFloat 6s ease-in-out infinite 1.3s;
}

.wave-icon-float svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--blue-7);
    stroke-width: 2;
    opacity: 0.15;
    filter: drop-shadow(0 2px 8px rgba(0, 100, 200, 0.15));
}

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

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

/* Responsive adjustments */
@media (max-width: 1200px) {
    .wave-signature,
    .wave-signature-right {
        width: 80px;
    }

    .wave-icon-float {
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .wave-signature,
    .wave-signature-right,
    .wave-icon-float {
        display: none;
    }

    .wave-watermark::after {
        opacity: 0.04;
        height: 300px;
    }
}

.post {
    display: none;
}

.post.visible {
    display: block;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    color: var(--blue-7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: gap 0.3s var(--ease-out);
}

.back-link:hover {
    gap: 12px;
}

.back-link svg {
    width: 16px;
    height: 16px;
}

.post-header {
    margin-bottom: 48px;
}

.post-meta {
    font-size: 14px;
    color: var(--text-dark-secondary);
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.post-title {
    font-size: clamp(36px, 7vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-dark);
}

/* Article body */
.post-content {
    font-size: 19px;
    line-height: 1.85;
    color: var(--text-dark);
}

.post-content h1,
.post-content h2,
.post-content h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 56px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-content h1 { font-size: 32px; }
.post-content h2 { font-size: 26px; }
.post-content h3 { font-size: 22px; }

.post-content p {
    margin-bottom: 28px;
}

.post-content a {
    color: var(--blue-7);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.post-content a:hover {
    opacity: 0.7;
}

.post-content blockquote {
    margin: 40px 0;
    padding: 28px 36px;
    background: rgba(0,0,0,0.02);
    border-left: 4px solid var(--blue-7);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: var(--text-dark-secondary);
}

.post-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(0,0,0,0.05);
    color: var(--text-dark);
    padding: 3px 8px;
    border-radius: 6px;
}

.post-content pre {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 28px;
    border-radius: 16px;
    overflow-x: auto;
    margin: 40px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.post-content ul,
.post-content ol {
    margin: 28px 0;
    padding-left: 28px;
}

.post-content li {
    margin-bottom: 12px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 40px 0;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.12);
}

/* ===== 18. 404 STATE ===== */
.not-found {
    text-align: center;
    padding: 100px 0;
}

.not-found h1 {
    font-size: 80px;
    font-weight: 700;
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.not-found p {
    font-size: 18px;
    color: var(--text-dark-secondary);
    margin-bottom: 40px;
}

.not-found a {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: var(--gradient-button);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
}

.not-found a:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,179,0.4);
}

/* ===== 19. SHARE SECTION ===== */
.share-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* .share-label deprecated - removed from HTML */

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.share-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-dark-secondary);
    transition: fill 0.2s ease;
}

/* Platform hover colors */
.share-btn--whatsapp:hover {
    background: #25D366;
}
.share-btn--whatsapp:hover svg { fill: white; }

.share-btn--linkedin:hover {
    background: #0A66C2;
}
.share-btn--linkedin:hover svg { fill: white; }

.share-btn--x:hover {
    background: var(--bg-dark);
}
.share-btn--x:hover svg { fill: white; }

.share-btn--bluesky:hover {
    background: #0085FF;
}
.share-btn--bluesky:hover svg { fill: white; }

.share-btn--copy:hover {
    background: var(--blue-6);
}
.share-btn--copy:hover svg { fill: white; }

.share-btn--copy.copied {
    background: #30D158;
}
.share-btn--copy.copied svg { fill: white; }

.share-btn--copy .icon-check { display: none; }
.share-btn--copy.copied .icon-copy { display: none; }
.share-btn--copy.copied .icon-check { display: block; }

/* Tooltip */
.share-btn--copy {
    position: relative;
}

.share-btn--copy::after {
    content: 'Copied!';
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    color: white;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.share-btn--copy.copied::after {
    opacity: 1;
}

/* ===== 20. FOOTER ===== */
footer {
    background: #000000;
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-white-tertiary);
}

/* ===== 21. SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Wave entry reveal animation */
.wave-entry {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out),
                box-shadow 0.4s var(--ease-out);
}

.wave-entry.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 22. ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-6);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    z-index: 10000;
    transition: top 0.2s;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 80px;
}

:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

/* ===== 23. RESPONSIVE ===== */
@media (max-width: 900px) {
    nav {
        width: calc(100% - 32px);
        padding: 0 16px;
    }

    .nav-links {
        gap: 0;
    }

    .nav-links a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

@media (max-width: 600px) {
    section {
        padding: 100px 20px;
    }

    .hero {
        padding: 100px 20px 80px;
    }

    .hero-title {
        font-size: clamp(36px, 12vw, 56px);
    }

    .contact-section {
        padding: 60px 24px;
        border-radius: 32px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .page-header {
        padding: 100px 20px 60px;
    }

    .page-title {
        font-size: clamp(36px, 10vw, 48px);
    }

    .page-description {
        white-space: normal;
        font-size: 18px;
    }

    .waves-search-container {
        margin-bottom: 24px;
    }

    .waves-search-row {
        max-width: 100%;
    }

    .waves-search-input {
        padding: 14px 44px;
        font-size: 15px;
    }

    .waves-search-icon {
        left: 14px;
        width: 18px;
        height: 18px;
    }

    .waves-search-clear {
        right: 10px;
        width: 28px;
        height: 28px;
    }

    .waves-filter-btn {
        width: 48px;
        height: 48px;
    }

    .waves-filter-btn svg {
        width: 20px;
        height: 20px;
    }

    .waves-filter-dropdown {
        min-width: 140px;
    }

    .waves-search-input {
        padding: 16px 44px;
    }

    .waves-section {
        padding: 60px 16px 80px;
    }

    .waves-list {
        gap: 16px;
    }

    .wave-entry {
        padding: 24px;
        border-radius: 20px;
    }

    .wave-entry--longform {
        grid-template-columns: 1fr;
    }

    .wave-thumb {
        width: 100%;
        height: 180px;
        margin-bottom: 16px;
    }

    .wave-arrow {
        display: none;
    }

    /* Article pages */
    main.article-main {
        padding: 100px 20px 80px;
    }

    .post-content {
        font-size: 17px;
    }

    .share-buttons {
        gap: 10px;
    }

    .share-btn {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .wave-entry {
        opacity: 1;
        transform: none;
    }

    /* Static wave display for reduced motion */
    .wave, .caustics {
        animation: none !important;
        transform: none !important;
    }
}

/* ===== 24. PAGE VIEW COUNTER ===== */
.engagement-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.view-count-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-dark-secondary);
}

.view-count-display .view-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.view-count-number {
    font-weight: 600;
}

.view-count-label {
    opacity: 0.8;
}

/* View badge on wave cards */
.wave-view-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: inherit;
    opacity: 0.6;
    margin-left: 8px;
}

.wave-view-badge svg {
    opacity: 0.7;
}

/* Wave Stats (for cards listing) */
.wave-stats {
    position: absolute;
    bottom: 16px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    opacity: 0.75;
    z-index: 5;
}

.wave-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    color: inherit;
}

.wave-stat svg {
    width: 18px;
    height: 18px;
}

.wave-stat-emoji {
    font-size: 15px;
    line-height: 1;
}

/* ===== 25. COMMENTS SECTION ===== */
.comments-section {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

/* Auth Section */
.auth-section {
    margin-bottom: 24px;
}

.auth-prompt {
    text-align: center;
    padding: 32px;
    background: rgba(0,0,0,0.02);
    border-radius: 16px;
}

.auth-prompt p {
    margin-bottom: 16px;
    color: var(--text-dark-secondary);
}

.btn-google-signin {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.btn-google-signin:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.btn-google-signin svg {
    flex-shrink: 0;
}

/* User Section (signed in) */
.user-section {
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.02);
    border-radius: 100px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.btn-signout {
    font-size: 13px;
    color: var(--text-dark-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.btn-signout:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text-dark);
}

/* Comment Form */
.comment-form,
.reply-form {
    margin-bottom: 32px;
}

.reply-form {
    margin-top: 16px;
    padding: 16px;
    background: rgba(0,0,0,0.02);
    border-radius: 12px;
}

.reply-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-dark-secondary);
}

.btn-cancel-reply {
    font-size: 13px;
    color: var(--text-dark-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
}

.btn-cancel-reply:hover {
    color: var(--text-dark);
}

.comment-input {
    width: 100%;
    min-height: 100px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.comment-input:focus {
    outline: none;
    border-color: var(--blue-6);
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
}

.reply-input {
    min-height: 80px;
}

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.char-count {
    font-size: 12px;
    color: var(--text-dark-secondary);
}

.btn-submit-comment {
    padding: 10px 20px;
    background: var(--gradient-button);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-comment:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 112, 243, 0.3);
}

.btn-submit-comment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(0,0,0,0.05);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: var(--text-dark);
}

.comment-time {
    font-size: 13px;
    color: var(--text-dark-secondary);
}

.admin-badge {
    font-size: 10px;
    font-weight: 700;
    color: white;
    background: var(--blue-6);
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comment-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    word-wrap: break-word;
}

.comment-content a {
    color: var(--blue-6);
    text-decoration: underline;
}

/* Comment content font sizes (matches post content) */
.comment-content.font-size-1 {
    font-size: 18px;
    line-height: 1.7;
}

.comment-content.font-size-2 {
    font-size: 21px;
    line-height: 1.7;
}

.comment-content.font-size-3 {
    font-size: 25px;
    line-height: 1.8;
}

.comment-content.font-size-4 {
    font-size: 29px;
    line-height: 1.8;
}

.comment-content.font-size-5 {
    font-size: 33px;
    line-height: 1.9;
}

.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.comment-action-btn {
    font-size: 13px;
    color: var(--text-dark-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.comment-action-btn:hover {
    color: var(--blue-6);
    background: rgba(0, 112, 243, 0.05);
}

.comment-action-btn.delete-btn:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
}

/* Nested replies */
.comment-replies {
    margin-left: 48px;
    border-left: 2px solid rgba(0,0,0,0.05);
    padding-left: 20px;
    margin-top: 16px;
}

.comment-replies .comment {
    padding: 16px 0;
}

.reply-form-container {
    margin-top: 12px;
}

/* Empty and Loading States */
.comments-empty {
    text-align: center;
    padding: 48px;
    color: var(--text-dark-secondary);
}

.comments-loading {
    text-align: center;
    padding: 48px;
    color: var(--text-dark-secondary);
}

.comments-loading .loading-spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto 16px;
}

.comments-loading .error {
    color: #dc2626;
}

/* Responsive Comments */
@media (max-width: 600px) {
    .comments-section {
        margin-top: 48px;
        padding-top: 32px;
    }

    .comments-title {
        font-size: 20px;
    }

    .auth-prompt {
        padding: 24px 16px;
    }

    .btn-google-signin {
        padding: 10px 20px;
        font-size: 14px;
    }

    .user-info {
        padding: 10px 14px;
    }

    .comment-input {
        min-height: 80px;
        padding: 12px;
        font-size: 14px;
    }

    .comment-replies {
        margin-left: 24px;
        padding-left: 16px;
    }

    .comment-avatar {
        width: 32px;
        height: 32px;
    }

    .engagement-row {
        gap: 12px;
    }

    .engagement-row .share-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   26. Wave Navigation Chevrons
   ========================================================================== */

.wave-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25vh;
    height: 25vh;
    background: var(--text-primary);
    border-radius: 50%;
    color: var(--bg-primary);
    opacity: 0.12;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.wave-nav svg {
    width: 12vh;
    height: 12vh;
    stroke-width: 2;
}

.wave-nav:hover {
    opacity: 0.5;
    transform: translateY(-50%) scale(1.15);
}

.wave-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.wave-nav--prev {
    left: 20px;
}

.wave-nav--next {
    right: 20px;
}

/* Hover effect - scale up */
.wave-nav--prev:hover {
    transform: translateY(-50%) scale(1.15);
}

.wave-nav--next:hover {
    transform: translateY(-50%) scale(1.15);
}

/* Hide on smaller screens where they would overlap content */
@media (max-width: 1100px) {
    .wave-nav {
        display: none;
    }
}

/* ==========================================================================
   27. Font Size Control
   ========================================================================== */

.font-size-control {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin: 0 0 32px 0;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.04) 100%);
    border-radius: 40px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.font-size-btn {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    opacity: 0.4;
}

.font-size-btn:hover {
    opacity: 0.7;
    background: rgba(0,0,0,0.05);
}

.font-size-btn.active {
    opacity: 1;
    color: var(--text-primary);
    background: rgba(0,0,0,0.08);
}

/* Size 1 - Tiny */
.font-size-btn[data-size="1"] { font-size: 14px; }
/* Size 2 - Small */
.font-size-btn[data-size="2"] { font-size: 17px; }
/* Size 3 - Medium (default) */
.font-size-btn[data-size="3"] { font-size: 20px; }
/* Size 4 - Large */
.font-size-btn[data-size="4"] { font-size: 24px; }
/* Size 5 - Extra Large */
.font-size-btn[data-size="5"] { font-size: 28px; }

/* Post content font sizes (each 11.5% larger, default is level 3) */
.post-content.font-size-1 {
    font-size: 18px;
    line-height: 1.7;
}

.post-content.font-size-2 {
    font-size: 21px;
    line-height: 1.7;
}

.post-content.font-size-3 {
    font-size: 25px;
    line-height: 1.8;
}

.post-content.font-size-4 {
    font-size: 29px;
    line-height: 1.8;
}

.post-content.font-size-5 {
    font-size: 33px;
    line-height: 1.9;
}

/* Adjust paragraph spacing for different sizes */
.post-content.font-size-1 p,
.post-content.font-size-2 p {
    margin-bottom: 1em;
}

.post-content.font-size-4 p,
.post-content.font-size-5 p {
    margin-bottom: 1.4em;
}

@media (max-width: 600px) {
    .font-size-control {
        gap: 2px;
        padding: 10px 16px;
    }

    .font-size-btn {
        padding: 4px 6px;
    }
}

/* ==========================================================================
   28. Wave Reaction Button
   ========================================================================== */

.wave-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0.06) 100%);
    border: none;
    border-radius: 24px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.wave-reaction-btn:hover {
    background: linear-gradient(135deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.10) 100%);
    transform: scale(1.05);
}

.wave-reaction-btn.waved {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.15) 100%);
}

.wave-emoji {
    font-size: 24px;
    display: inline-block;
    transform-origin: 70% 70%;
}

.wave-emoji.waving {
    animation: wave-hand 0.6s ease-in-out;
}

@keyframes wave-hand {
    0% { transform: rotate(0deg) scale(1); }
    10% { transform: rotate(14deg) scale(2); }
    20% { transform: rotate(-8deg) scale(3); }
    30% { transform: rotate(14deg) scale(3); }
    40% { transform: rotate(-4deg) scale(3); }
    50% { transform: rotate(10deg) scale(2.5); }
    60% { transform: rotate(0deg) scale(2); }
    100% { transform: rotate(0deg) scale(1); }
}

.wave-count {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 20px;
}

.wave-reaction-btn.waved .wave-count {
    color: #3b82f6;
}
