/* ===== VARIABLES & RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --deep-navy: #000814;
    --dark-blue: #001d3d;
    --medium-blue: #003566;
    --ocean-blue: #0466c8;
    --cyan-glow: #00f5d4;
    --bio-blue: #00b4d8;
    --bio-purple: #7209b7;
    --text-light: #caf0f8;
    --text-muted: #90e0ef;
    --warning-red: #ef476f;
    --gold: #ffd60a;
    --card-bg: rgba(0, 29, 61, 0.6);
    --card-border: rgba(0, 245, 212, 0.1);
    --card-hover-border: rgba(0, 245, 212, 0.3);
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--deep-navy);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
    cursor: none;
}

/* ===== CUSTOM CURSOR ===== */
#cursor-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 99999;
}
a, button, .card, .species-card, .threat-card, .zone-segment, .stat-card { cursor: none; }

/* ===== CURSOR DOT (fallback) ===== */
body::after {
    content: '';
    position: fixed;
    left: var(--cursor-x, -100px);
    top: var(--cursor-y, -100px);
    width: 16px; height: 16px;
    background: var(--cyan-glow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    box-shadow: 0 0 15px var(--cyan-glow), 0 0 30px var(--bio-blue);
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: screen;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--deep-navy); }
::-webkit-scrollbar-thumb { background: var(--medium-blue); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ocean-blue); }

/* ===== DEPTH METER ===== */
.depth-meter {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}
.depth-meter .track {
    width: 4px; height: 300px;
    background: linear-gradient(to bottom, var(--ocean-blue), var(--deep-navy));
    border-radius: 2px;
    position: relative;
}
.depth-meter .marker {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    width: 12px; height: 12px;
    background: var(--cyan-glow);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan-glow), 0 0 20px var(--cyan-glow);
    transition: all 0.3s ease;
}
.zone-marker {
    position: absolute; left: -8px;
    width: 20px; height: 2px;
    background: var(--cyan-glow); opacity: 0.5;
}
.zone-label {
    position: absolute; left: 30px;
    font-size: 10px; color: var(--cyan-glow); white-space: nowrap;
}

/* ===== BUBBLES & PARTICLES ===== */
.bubbles, .particles {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; overflow: hidden;
}
.bubbles { z-index: 1; }
.particles { z-index: 2; }
.bubble {
    position: absolute; bottom: -100px;
    background: radial-gradient(circle at 30% 30%, rgba(0,245,212,0.3), rgba(0,180,216,0.1));
    border-radius: 50%;
    animation: rise linear infinite;
    border: 1px solid rgba(0,245,212,0.2);
}
@keyframes rise {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}
.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--cyan-glow);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--cyan-glow), 0 0 12px var(--cyan-glow);
    animation: float 8s ease-in-out infinite;
    opacity: 0.6;
}
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    50% { transform: translateY(-30px) translateX(20px); opacity: 0.8; }
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed; top: 0; width: 100%;
    padding: 15px 40px;
    background: rgba(0, 8, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 245, 212, 0.1);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand {
    font-size: 1.2rem; font-weight: 700;
    background: linear-gradient(135deg, var(--cyan-glow), var(--bio-blue));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links { display: flex; gap: 25px; list-style: none; }
.nav-links a {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.85rem; font-weight: 500;
    transition: all 0.3s ease; position: relative;
}
.nav-links a:hover { color: var(--cyan-glow); }
.nav-links a::after {
    content: ''; position: absolute;
    bottom: -5px; right: 0;
    width: 0; height: 2px;
    background: var(--cyan-glow);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.mobile-menu {
    display: none; font-size: 1.5rem;
    cursor: none; color: var(--cyan-glow);
}

/* ===== HERO ===== */
.hero {
    height: 100vh;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center bottom, var(--dark-blue) 0%, var(--deep-navy) 70%);
    overflow: hidden;
}
.hero-content {
    text-align: center; z-index: 10;
    padding: 0 20px; max-width: 900px;
}
.hero-depth {
    font-size: 0.9rem; color: var(--cyan-glow);
    letter-spacing: 3px; margin-bottom: 20px; font-weight: 300;
    animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
    from { text-shadow: 0 0 10px var(--cyan-glow); }
    to { text-shadow: 0 0 20px var(--cyan-glow), 0 0 40px var(--bio-blue); }
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900; margin-bottom: 20px; line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-light) 50%, var(--cyan-glow) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: font-variation-settings 0.5s ease;
}
.hero h1:hover { font-variation-settings: 'wght' 100; }
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-muted); margin-bottom: 40px;
    font-weight: 300; max-width: 700px;
    margin-left: auto; margin-right: auto;
}
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator span { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 2px; }
.scroll-arrow {
    width: 24px; height: 24px;
    border-left: 2px solid var(--cyan-glow);
    border-bottom: 2px solid var(--cyan-glow);
    transform: rotate(-45deg); opacity: 0.7;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== SECTIONS ===== */
section { padding: 100px 40px; position: relative; z-index: 10; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-number {
    font-size: 0.8rem; color: var(--cyan-glow);
    letter-spacing: 3px; font-weight: 600; margin-bottom: 10px; display: block;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff, var(--text-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* ===== ZONE BAR ===== */
.zones-visual { max-width: 1000px; margin: 0 auto; }
.zone-bar {
    display: flex; align-items: stretch; height: 400px;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.zone-segment {
    flex: 1; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 20px; text-align: center;
    transition: all 0.3s ease; cursor: none;
}
.zone-segment:hover { filter: brightness(1.2); transform: scaleY(1.05); }
.zone-segment:nth-child(1) { background: linear-gradient(180deg, #0077b6, #023e8a); }
.zone-segment:nth-child(2) { background: linear-gradient(180deg, #023e8a, #03045e); }
.zone-segment:nth-child(3) { background: linear-gradient(180deg, #03045e, #001233); }
.zone-segment:nth-child(4) { background: linear-gradient(180deg, #001233, #000000); }
.zone-depth { font-size: 0.7rem; color: rgba(255,255,255,0.7); letter-spacing: 1px; margin-bottom: 8px; }
.zone-name { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 5px; }
.zone-name-en { font-size: 0.75rem; color: var(--cyan-glow); font-weight: 300; }

/* ===== CARDS GRID ===== */
.cards-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.card {
    background: linear-gradient(135deg, var(--card-bg), rgba(0, 8, 20, 0.8));
    border: 1px solid var(--card-border);
    border-radius: 20px; padding: 35px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative; overflow: hidden;
    transform-style: preserve-3d;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--cyan-glow), var(--bio-blue), var(--bio-purple));
    opacity: 0; transition: opacity 0.4s ease;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--card-hover-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(0,245,212,0.1);
}
.card:hover::before { opacity: 1; }
.card-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(0,245,212,0.2), rgba(0,180,216,0.1));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 20px;
    border: 1px solid rgba(0,245,212,0.2);
}
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: white; }
.card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.9; }

/* ===== STATS ===== */
.stats-container {
    max-width: 1000px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.stat-card {
    text-align: center; padding: 40px 20px;
    background: linear-gradient(135deg, rgba(0,29,61,0.4), rgba(0,8,20,0.6));
    border: 1px solid var(--card-border); border-radius: 20px;
    backdrop-filter: blur(10px); transition: all 0.3s ease;
}
.stat-card:hover { border-color: var(--cyan-glow); box-shadow: 0 0 30px rgba(0,245,212,0.1); }
.stat-number {
    font-size: 2.5rem; font-weight: 900;
    background: linear-gradient(135deg, var(--cyan-glow), var(--bio-blue));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 8px; display: block;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }

/* ===== HIGHLIGHT ===== */
.highlight-section {
    max-width: 800px; margin: 60px auto; padding: 50px;
    background: linear-gradient(135deg, rgba(0,53,102,0.3), rgba(0,8,20,0.5));
    border: 1px solid rgba(0,245,212,0.2); border-radius: 24px;
    text-align: center; position: relative; overflow: hidden;
}
.highlight-section::before {
    content: '"'; position: absolute; top: -20px; right: 30px;
    font-size: 8rem; color: rgba(0,245,212,0.1); font-family: serif;
}
.highlight-text { font-size: 1.2rem; color: var(--text-light); line-height: 2; font-weight: 300; position: relative; z-index: 1; }

/* ===== DIAGRAM ===== */
.diagram-container {
    max-width: 900px; margin: 0 auto; padding: 50px;
    background: linear-gradient(135deg, rgba(0,29,61,0.3), rgba(0,8,20,0.5));
    border: 1px solid var(--card-border); border-radius: 24px;
    backdrop-filter: blur(10px);
}
.diagram-flow {
    display: flex; align-items: center; justify-content: center;
    gap: 20px; flex-wrap: wrap;
}
.diagram-node {
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(0,245,212,0.1), rgba(0,180,216,0.05));
    border: 1px solid rgba(0,245,212,0.3); border-radius: 12px;
    text-align: center; min-width: 150px;
}
.diagram-node-title { font-size: 0.8rem; color: var(--cyan-glow); margin-bottom: 5px; }
.diagram-node-content { font-size: 0.9rem; color: var(--text-light); font-weight: 600; }
.diagram-arrow { font-size: 1.5rem; color: var(--cyan-glow); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ===== SPECIES GRID ===== */
.species-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.species-card {
    background: linear-gradient(180deg, rgba(0,29,61,0.5), rgba(0,8,20,0.7));
    border: 1px solid var(--card-border); border-radius: 16px;
    padding: 30px; transition: all 0.3s ease;
}
.species-card:hover { transform: translateY(-3px); border-color: rgba(0,245,212,0.3); }
.species-icon { font-size: 2.5rem; margin-bottom: 15px; }
.species-name { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 5px; }
.species-latin { font-size: 0.8rem; color: var(--cyan-glow); font-style: italic; margin-bottom: 12px; }
.species-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; }
.species-stat {
    display: inline-block; margin-top: 10px;
    padding: 4px 12px; background: rgba(0,245,212,0.1);
    border-radius: 20px; font-size: 0.75rem;
    color: var(--cyan-glow); border: 1px solid rgba(0,245,212,0.2);
}

/* ===== THREATS ===== */
.threats-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.threat-card {
    background: linear-gradient(135deg, rgba(239,71,111,0.05), rgba(0,8,20,0.8));
    border: 1px solid rgba(239,71,111,0.2); border-radius: 20px;
    padding: 35px; transition: all 0.3s ease;
}
.threat-card:hover { border-color: rgba(239,71,111,0.5); box-shadow: 0 10px 30px rgba(239,71,111,0.1); }
.threat-icon { font-size: 2rem; margin-bottom: 15px; }
.threat-title { font-size: 1.1rem; font-weight: 700; color: var(--warning-red); margin-bottom: 12px; }
.threat-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.9; }

/* ===== FOOTER ===== */
footer {
    padding: 60px 40px; text-align: center;
    border-top: 1px solid rgba(0,245,212,0.1);
    background: rgba(0,8,20,0.9);
}
footer p { color: var(--text-muted); font-size: 0.85rem; }

/* ===== FADE-IN ANIMATION ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== TILT CARD 3D EFFECT ===== */
.tilt-card { transition: all 0.4s ease; }
.tilt-card.tilting {
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 40px rgba(0,245,212,0.15) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    nav { padding: 12px 20px; }
    .nav-links { display: none; }
    .mobile-menu { display: block; }
    .depth-meter { display: none; }
    section { padding: 60px 20px; }
    .zone-bar { flex-direction: column; height: auto; }
    .zone-segment { padding: 30px 20px; }
    .diagram-flow { flex-direction: column; }
    .diagram-arrow { transform: rotate(90deg); }
    body { cursor: auto; }
    body::after { display: none; }
    #cursor-canvas { display: none; }
    a, button, .card, .species-card, .threat-card, .zone-segment, .stat-card { cursor: auto; }
}