/* ============ CSS Variables ============ */
:root {
    --navy: #080C14;
    --navy-light: #0D1424;
    --card: #0F1929;
    --border: #1A2840;
    --sky: #38BDF8;
    --primary: #F0F6FF;
    --secondary: #7B97B5;
    --muted: #3D5475;
    --glow: rgba(56, 189, 248, 0.15);
}

/* ============ Base ============ */
html { scroll-behavior: smooth; }

::selection { background: rgba(56, 189, 248, 0.3); color: #F0F6FF; }

/* ============ Scrollbar ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #080C14; }
::-webkit-scrollbar-thumb { background: #1A2840; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #38BDF8; }

/* ============ Animated Background Orbs ============ */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    mix-blend-mode: screen;
}
.orb-1 {
    width: 600px; height: 600px;
    top: -100px; right: -100px;
    background: radial-gradient(circle, rgba(56,189,248,0.6) 0%, transparent 70%);
    animation: orbFloat1 18s ease-in-out infinite;
}
.orb-2 {
    width: 500px; height: 500px;
    bottom: 20%; left: -100px;
    background: radial-gradient(circle, rgba(99,102,241,0.5) 0%, transparent 70%);
    animation: orbFloat2 22s ease-in-out infinite;
}
.orb-3 {
    width: 400px; height: 400px;
    top: 50%; left: 45%;
    background: radial-gradient(circle, rgba(56,189,248,0.25) 0%, transparent 70%);
    animation: orbFloat3 15s ease-in-out infinite;
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.05); }
    66% { transform: translate(30px, -20px) scale(0.95); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40% { transform: translate(50px, -40px) scale(1.08); }
    70% { transform: translate(-20px, 25px) scale(0.94); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

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

/* ============ Glass ============ */
.glass {
    background: rgba(13, 20, 36, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.08);
}
.glass-card {
    background: rgba(15, 25, 41, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #1A2840;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.07), 0 20px 40px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}
.glass-nav {
    background: rgba(8, 12, 20, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.glass-nav.scrolled {
    background: rgba(8, 12, 20, 0.88);
    border-bottom-color: #1A2840 !important;
    box-shadow: 0 1px 30px rgba(0,0,0,0.4);
}

/* ============ Buttons ============ */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.5rem 1.25rem;
    background: #38BDF8; color: #080C14;
    border-radius: 0.5rem; font-weight: 600; font-size: 0.875rem;
    transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary:hover {
    background: #7DD3F8;
    box-shadow: 0 0 24px rgba(56,189,248,0.4);
    transform: translateY(-1px);
}
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.5rem 1.25rem;
    border: 1px solid #1A2840; color: #F0F6FF;
    border-radius: 0.5rem; font-weight: 500; font-size: 0.875rem;
    transition: all 0.2s ease; white-space: nowrap;
}
.btn-outline:hover {
    border-color: rgba(56,189,248,0.5);
    color: #38BDF8;
    background: rgba(56,189,248,0.05);
}
.btn-primary-lg { padding: 0.875rem 2rem; font-size: 0.9375rem; }
.btn-outline-lg { padding: 0.875rem 2rem; font-size: 0.9375rem; }

/* ============ Social Icons ============ */
.social-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #1A2840; border-radius: 0.5rem;
    color: #7B97B5; transition: all 0.2s ease;
}
.social-icon:hover {
    border-color: rgba(56,189,248,0.4);
    color: #38BDF8;
    background: rgba(56,189,248,0.08);
}

/* ============ Gradient Text ============ */
.gradient-text {
    background: linear-gradient(135deg, #38BDF8 0%, #818CF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ Section Label ============ */
.section-label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: #38BDF8; font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase;
}
.section-label::before {
    content: ''; display: block;
    width: 1.5rem; height: 1px; background: #38BDF8;
}

/* ============ Dot Grid ============ */
.dot-grid {
    background-image: radial-gradient(rgba(56,189,248,0.1) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ============ Timeline ============ */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid #1A2840;
    padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-item::before {
    content: ''; position: absolute;
    left: -5px; top: 6px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #1A2840; border: 2px solid #1A2840;
    transition: all 0.3s ease;
}
.timeline-item.active::before {
    background: #38BDF8; border-color: #38BDF8;
    box-shadow: 0 0 10px rgba(56,189,248,0.5);
}
.timeline-item.active { border-color: rgba(56,189,248,0.25); }

/* ============ Badges ============ */
.cert-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border: 1px solid rgba(56,189,248,0.2);
    border-radius: 2rem; font-size: 0.8125rem;
    color: #38BDF8; background: rgba(56,189,248,0.06);
    white-space: nowrap;
}
.tag {
    display: inline-flex; align-items: center;
    padding: 0.25rem 0.625rem; border-radius: 2rem;
    font-size: 0.75rem;
    background: rgba(26,40,64,0.8);
    color: #7B97B5; border: 1px solid #1A2840;
}
.skill-pill {
    display: inline-flex; align-items: center;
    padding: 0.3rem 0.875rem; border-radius: 2rem;
    font-size: 0.8125rem; font-weight: 500;
    background: rgba(26,40,64,0.7);
    color: #7B97B5; border: 1px solid #1A2840;
    transition: all 0.2s ease;
}
.skill-pill:hover {
    background: rgba(56,189,248,0.08);
    color: #38BDF8; border-color: rgba(56,189,248,0.25);
}

/* ============ Scroll Reveal ============ */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0; transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0; transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

.stagger-item {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-item.revealed { opacity: 1; transform: translateY(0); }

/* ============ Hero float ============ */
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero-float { animation: heroFloat 6s ease-in-out infinite; }

/* ============ Dark Prose (blog) ============ */
.dark-prose { color: #C5D5E8; line-height: 1.85; font-size: 1.0625rem; }
.dark-prose h1, .dark-prose h2, .dark-prose h3, .dark-prose h4 { color: #F0F6FF; font-weight: 600; line-height: 1.3; }
.dark-prose h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #1A2840; }
.dark-prose h3 { font-size: 1.375rem; margin: 2rem 0 0.75rem; color: #38BDF8; }
.dark-prose p { margin-bottom: 1.5rem; }
.dark-prose ul, .dark-prose ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.dark-prose li { margin-bottom: 0.5rem; }
.dark-prose code { background: rgba(56,189,248,0.1); color: #38BDF8; padding: 0.2rem 0.45rem; border-radius: 0.3rem; font-size: 0.875rem; border: 1px solid rgba(56,189,248,0.15); }
.dark-prose pre { background: #0A0F1C; border: 1px solid #1A2840; padding: 1.5rem; border-radius: 0.75rem; overflow-x: auto; margin: 1.5rem 0; }
.dark-prose pre code { background: transparent; color: #C5D5E8; padding: 0; border: none; font-size: 0.875rem; }
.dark-prose blockquote { border-left: 3px solid #38BDF8; padding: 0.75rem 1.25rem; margin: 1.5rem 0; background: rgba(56,189,248,0.05); border-radius: 0 0.5rem 0.5rem 0; color: #7B97B5; font-style: italic; }
.dark-prose a { color: #38BDF8; text-decoration: underline; text-decoration-color: rgba(56,189,248,0.4); text-underline-offset: 3px; }
.dark-prose a:hover { text-decoration-color: #38BDF8; }
.dark-prose strong { color: #F0F6FF; font-weight: 600; }
.dark-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.dark-prose th, .dark-prose td { border: 1px solid #1A2840; padding: 0.75rem 1rem; text-align: left; }
.dark-prose th { background: rgba(26,40,64,0.6); color: #F0F6FF; font-weight: 600; }
.dark-prose tr:nth-child(even) td { background: rgba(15,25,41,0.4); }

/* ============ Dark Inputs ============ */
.dark-input {
    width: 100%; padding: 0.75rem 1rem;
    background: rgba(10,15,28,0.8);
    border: 1px solid #1A2840; border-radius: 0.5rem;
    color: #F0F6FF; font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none; font-family: inherit;
}
.dark-input::placeholder { color: #3D5475; }
.dark-input:focus { border-color: rgba(56,189,248,0.5); box-shadow: 0 0 0 3px rgba(56,189,248,0.08); }
.dark-input option { background: #0D1424; }
