/* ============================================================
   CYBERSECURITY PORTFOLIO — ADVANCED DESIGN SYSTEM
   Elbort Bista — Cyber Security Researcher
   ============================================================ */

/* --- Font Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,400;1,600&display=swap');

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scanline {
    0% { top: -5%; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 0.8; }
    100% { top: 105%; opacity: 0; }
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(0, 242, 254, 0); }
}

@keyframes borderGlowPulse {
    0%, 100% { border-color: rgba(0, 242, 254, 0.15); box-shadow: 0 0 15px rgba(0, 242, 254, 0.05); }
    50% { border-color: rgba(0, 242, 254, 0.35); box-shadow: 0 0 25px rgba(0, 242, 254, 0.12); }
}

@keyframes cyberGridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

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

@keyframes radarPing {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.35); opacity: 0.3; }
}

@keyframes tagFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes scanSingleTag {
    0% {
        opacity: 0;
        transform: scale(0.8);
        box-shadow: none;
    }
    1% {
        opacity: 1;
        transform: scale(1.15);
        border-color: #00f2fe;
        box-shadow: 0 0 30px rgba(0, 242, 254, 0.8), 0 0 12px #00f2fe;
    }
    5% {
        opacity: 0.95;
        transform: scale(1);
        border-color: var(--accent);
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
    }
    8.5%, 100% {
        opacity: 0;
        transform: scale(0.85);
        box-shadow: none;
    }
}

/* --- Design Tokens (Dark Default) --- */
:root {
    /* Backgrounds */
    --bg-deep: #030712;
    --bg-primary: #0b0f19;
    --bg-surface: rgba(15, 23, 42, 0.75);
    --bg-surface-solid: #0f172a;
    --bg-elevated: rgba(30, 41, 59, 0.7);
    --bg-glass: rgba(15, 23, 42, 0.65);
    --bg-glass-border: rgba(0, 242, 254, 0.12);

    /* Accent & Cyber Colors */
    --accent: #00f2fe;
    --accent-teal: #00d4aa;
    --accent-blue: #3b82f6;
    --accent-hover: #38ef7d;
    --accent-dim: rgba(0, 242, 254, 0.5);
    --accent-glow: rgba(0, 242, 254, 0.15);
    --accent-subtle: rgba(0, 242, 254, 0.06);

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-heading: #ffffff;

    /* Borders */
    --border: rgba(0, 242, 254, 0.1);
    --border-hover: rgba(0, 242, 254, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.05);

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.7);
    --shadow-glow-sm: 0 0 15px rgba(0, 242, 254, 0.08);
    --shadow-glow-md: 0 0 30px rgba(0, 242, 254, 0.15);
    --shadow-glow-lg: 0 0 50px rgba(0, 242, 254, 0.2);

    /* Layout */
    --sidebar-width: 28rem;
    --section-padding: 8rem 5rem;

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.15s ease-out;

    /* Radius */
    --radius-sm: 0.4rem;
    --radius-md: 0.8rem;
    --radius-lg: 1.2rem;
    --radius-xl: 1.6rem;
}

/* --- Light Mode --- */
body.active {
    --bg-deep: #e2e8f0;
    --bg-primary: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.85);
    --bg-surface-solid: #ffffff;
    --bg-elevated: rgba(241, 245, 249, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-glass-border: rgba(13, 148, 136, 0.2);

    --accent: #0284c7;
    --accent-teal: #0d9488;
    --accent-blue: #2563eb;
    --accent-hover: #0369a1;
    --accent-dim: rgba(2, 132, 199, 0.6);
    --accent-glow: rgba(2, 132, 199, 0.12);
    --accent-subtle: rgba(2, 132, 199, 0.06);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-heading: #020617;

    --border: rgba(2, 132, 199, 0.15);
    --border-hover: rgba(2, 132, 199, 0.4);
    --border-subtle: rgba(0, 0, 0, 0.06);

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow-sm: 0 0 15px rgba(2, 132, 199, 0.06);
    --shadow-glow-md: 0 0 30px rgba(2, 132, 199, 0.12);
}

/* --- Base Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.03) 0%, transparent 80%),
        linear-gradient(rgba(0, 242, 254, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-attachment: fixed;
    color: var(--text-primary);
    padding-left: var(--sidebar-width);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
}

body.active {
    background-image:
        radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.04) 0%, transparent 80%),
        linear-gradient(rgba(2, 132, 199, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2, 132, 199, 0.04) 1px, transparent 1px);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.25);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* --- Loader --- */
#loader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: var(--bg-deep);
    background-image: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.15) 0%, transparent 75%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

.loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 4.5rem;
    border-radius: var(--radius-xl);
    background: rgba(10, 17, 32, 0.9);
    border: 1px solid rgba(0, 242, 254, 0.3);
    box-shadow: 0 0 60px rgba(0, 242, 254, 0.25), 0 20px 60px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* --- Loader icon (CSS-only, no external deps) --- */
.loader-icon {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.loader-shield {
    width: 110px;
    height: 110px;
    filter: drop-shadow(0 0 18px rgba(0, 242, 254, 0.7));
    animation: shieldPulse 2s ease-in-out infinite;
}

.shield-path {
    fill: rgba(0, 242, 254, 0.08);
    stroke: #00f2fe;
    stroke-width: 2.5;
    stroke-linejoin: round;
}

.shield-inner {
    fill: rgba(0, 242, 254, 0.05);
    stroke: rgba(0, 242, 254, 0.4);
    stroke-width: 1;
    stroke-linejoin: round;
}

.shield-letters {
    fill: #00f2fe;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

@keyframes shieldPulse {
    0%, 100% { filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.5)); opacity: 1; }
    50%       { filter: drop-shadow(0 0 28px rgba(0, 242, 254, 0.9)); opacity: 0.88; }
}

.loader-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 242, 254, 0.35);
    animation: ringExpand 2.4s ease-out infinite;
}

.ring-1 { width:  90px; height:  90px; animation-delay: 0s; }
.ring-2 { width: 130px; height: 130px; animation-delay: 0.6s; }
.ring-3 { width: 170px; height: 170px; animation-delay: 1.2s; }

@keyframes ringExpand {
    0%   { opacity: 0.7; transform: scale(0.85); }
    100% { opacity: 0;   transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
    .loader-shield { animation: none; }
    .ring          { animation: none; }
}

.loader-status {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.loader-spinner {
    width: 1.4rem;
    height: 1.4rem;
    border: 2px solid rgba(0, 242, 254, 0.25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite;
}

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

.loader-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    font-weight: 600;
}

body.loading #main-content {
    display: none;
}

/* --- Canvas Particle Network --- */
#cyber-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

body.active #cyber-bg {
    opacity: 0.35;
}

/* --- Mouse Spotlight Glow Effect --- */
#mouse-glow {
    position: fixed;
    top: 0; left: 0;
    width: 600px; height: 600px;
    margin-left: -300px;
    margin-top: -300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, rgba(0, 212, 170, 0.03) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.4s ease;
    mix-blend-mode: screen;
}

body.active #mouse-glow {
    background: radial-gradient(circle, rgba(2, 132, 199, 0.1) 0%, rgba(13, 148, 136, 0.04) 40%, transparent 70%);
    mix-blend-mode: multiply;
}

/* --- Utility: Modern Cyber Button --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.2rem 3.4rem;
    border-radius: var(--radius-md);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.35rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--accent);
    background: rgba(0, 242, 254, 0.04);
    color: var(--accent);
    box-shadow: var(--shadow-glow-sm);
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.25), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: var(--accent);
    color: #030712;
    box-shadow: var(--shadow-glow-md), 0 4px 20px rgba(0, 242, 254, 0.3);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.btn:active {
    transform: translateY(0);
}

/* --- Utility: Section Heading --- */
.heading {
    text-align: center;
    font-size: 3.6rem;
    font-weight: 900;
    color: var(--text-heading);
    text-transform: uppercase;
    padding-bottom: 1.5rem;
    margin-bottom: 5rem;
    position: relative;
    letter-spacing: -0.02em;
}

.heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-teal));
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

.heading span {
    color: var(--accent);
    text-transform: uppercase;
}

/* ============================================================
   SIDEBAR / NAVIGATION (STRUCTURE MATCHING REFERENCE IMAGE)
   ============================================================ */
.header {
    position: fixed;
    top: 0; left: 0;
    z-index: 999;
    background: var(--bg-deep);
    width: var(--sidebar-width);
    height: 100%;
    padding: 2.5rem 2rem 2rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid var(--border);
    transition: left 0.4s var(--ease);
}

.header::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 1px; height: 100%;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(0, 242, 254, 0.2) 30%,
        rgba(0, 242, 254, 0.4) 50%,
        rgba(0, 242, 254, 0.2) 70%,
        transparent
    );
}

/* Top Initials Logo Badge */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.sidebar-logo .logo-badge {
    width: 4.2rem;
    height: 4.2rem;
    border: 1px solid rgba(0, 242, 254, 0.35);
    background: rgba(0, 242, 254, 0.05);
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.sidebar-logo .logo-text {
    display: flex;
    flex-direction: column;
}

.sidebar-logo .logo-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.sidebar-logo .logo-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

/* Avatar Ring Halo */
.header .user {
    padding-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header .user .avatar-ring {
    position: relative;
    padding: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.5), rgba(59, 130, 246, 0.2), rgba(0, 212, 170, 0.5));
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
    margin-bottom: 1.5rem;
    transition: transform var(--transition);
}

.header .user .avatar-ring:hover {
    transform: scale(1.04);
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.35);
}

.header .user img {
    margin: 0;
    border-radius: 50%;
    height: 10.5rem; width: 10.5rem;
    object-fit: cover;
    border: 2px solid var(--bg-deep);
    display: block;
}

.header .user h3 {
    color: var(--text-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.3rem;
    font-family: 'Inter', sans-serif;
}

.header .user p {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-divider {
    height: 1px;
    width: 100%;
    background: rgba(0, 242, 254, 0.12);
    margin: 1.5rem 0 2rem 0;
}

/* Numbered Navbar Links */
.header .navbar {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.header .navbar a {
    display: flex;
    align-items: center;
    padding: 1.3rem 1.6rem;
    border-radius: var(--radius-md);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-heading);
    text-transform: capitalize;
    transition: all var(--transition);
    border: 1px solid rgba(0, 242, 254, 0.08);
    background: rgba(10, 17, 32, 0.4);
    letter-spacing: 0.01em;
    text-align: left;
}

.header .navbar a .nav-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    color: var(--accent);
    opacity: 0.75;
    margin-right: 1.6rem;
    font-weight: 600;
    width: 2.6rem;
    display: inline-block;
    transition: color var(--transition);
}

.header .navbar a:hover,
.header .navbar a.active-nav {
    color: #ffffff;
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.3);
    border-left: 3px solid var(--accent);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.12);
    padding-left: 2rem;
}

.header .navbar a:hover .nav-num,
.header .navbar a.active-nav .nav-num {
    color: #38ef7d;
    opacity: 1;
}

/* Bottom Get In Touch Card */
.sidebar-contact-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: auto;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.sidebar-contact-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.sidebar-contact-card .card-icon {
    width: 3.6rem;
    height: 3.6rem;
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.3rem;
    background: rgba(0, 242, 254, 0.05);
}

.sidebar-contact-card .card-info {
    display: flex;
    flex-direction: column;
}

.sidebar-contact-card .card-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    font-weight: 500;
}

.sidebar-contact-card .card-phone {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    color: var(--text-heading);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition);
}

.sidebar-contact-card .card-phone:hover {
    color: var(--accent);
}

.sidebar-contact-card .fa-whatsapp,
.info-card i.fa-whatsapp {
    color: #25D366;
}

.sidebar-social a:hover .fa-github,
.info-card i.fa-github {
    color: #ffffff;
}

.sidebar-social a:hover .fa-envelope,
.info-card i.fa-envelope {
    color: var(--accent);
}

/* Circular Social Buttons & Tagline */
.sidebar-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.6rem;
}

.sidebar-social a {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 242, 254, 0.2);
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.4rem;
    transition: all var(--transition);
    text-decoration: none;
}

.sidebar-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 242, 254, 0.08);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
    transform: translateY(-2px);
}

.sidebar-footer-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: center;
    letter-spacing: 0.05em;
}

/* Controls */
#theme-toggler {
    display: none !important;
}

/* ============================================================
   SECTIONS BASE
   ============================================================ */
section {
    min-height: 100vh;
    padding: var(--section-padding);
    position: relative;
    z-index: 2;
}

/* ============================================================
   HOME / HERO SECTION
   ============================================================ */
.home {
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    position: relative;
    overflow: hidden;
    padding-left: 8rem;
}

/* Cyber Scanning Line */
.home::before {
    content: '';
    position: absolute;
    left: 0; width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.35), transparent);
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 3;
}

/* RADAR SONAR HUD EFFECT */
.radar-container {
    position: absolute;
    top: 50%;
    right: 1%;
    transform: translateY(-50%);
    width: 720px;
    height: 720px;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 242, 254, 0.14);
    box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.03);
}

.radar-ring.ring-1 {
    width: 300px;
    height: 300px;
    border-color: rgba(0, 242, 254, 0.22);
}

.radar-ring.ring-2 {
    width: 520px;
    height: 520px;
    border-color: rgba(0, 242, 254, 0.15);
}

.radar-ring.ring-3 {
    width: 720px;
    height: 720px;
    border-color: rgba(0, 242, 254, 0.08);
}

.radar-sweep {
    position: absolute;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(0, 242, 254, 0.25) 0deg, rgba(0, 242, 254, 0.05) 45deg, transparent 90deg, transparent 360deg);
    animation: radarSweep 7s linear infinite;
}

.radar-ping {
    position: absolute;
    bottom: 15%;
    right: 18%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 242, 254, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: radarPing 3s ease-in-out infinite;
}

.radar-ping::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
}

/* Scanning Language & Security Tags (Pop up as Radar Beam Rotates Over Each Angle) */
.radar-tag {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(10, 17, 32, 0.9);
    border: 1px solid rgba(0, 242, 254, 0.35);
    padding: 0.5rem 1.4rem;
    border-radius: 9999px;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 3;
    opacity: 0;
    animation: scanSingleTag 7s linear infinite;
    pointer-events: auto;
    cursor: default;
    transition: transform var(--transition);
}

.radar-tag:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
    transform: scale(1.12) translateY(-4px) !important;
    opacity: 1 !important;
}

.radar-tag .tag-status {
    color: #38ef7d;
    font-size: 0.9em;
    text-shadow: 0 0 8px #38ef7d;
}

/* 10 Tags Placed Clockwise around 360° radar rings, delays synced to 7s sweep rotation */
.radar-tag.tag-1  { top: 4%;  left: 50%; transform: translateX(-50%); animation-delay: 0.0s; } /* 0° Top */
.radar-tag.tag-2  { top: 14%; right: 14%; animation-delay: 0.7s; }                       /* 36° Top-Right */
.radar-tag.tag-3  { top: 34%; right: 2%;  animation-delay: 1.4s; }                       /* 72° Mid-Right */
.radar-tag.tag-4  { top: 56%; right: 4%;  animation-delay: 2.1s; }                       /* 108° Bottom-Right */
.radar-tag.tag-5  { bottom: 16%; right: 18%; animation-delay: 2.8s; }                     /* 144° Lower-Right */
.radar-tag.tag-6  { bottom: 12%; left: 50%; transform: translateX(-50%); animation-delay: 3.5s; } /* 180° Bottom */
.radar-tag.tag-7  { bottom: 16%; left: 18%; animation-delay: 4.2s; }                     /* 216° Lower-Left */
.radar-tag.tag-8  { top: 56%; left: 4%;  animation-delay: 4.9s; }                       /* 252° Mid-Left */
.radar-tag.tag-9  { top: 34%; left: 2%;  animation-delay: 5.6s; }                       /* 288° Top-Left */
.radar-tag.tag-10 { top: 14%; left: 14%; animation-delay: 6.3s; }                       /* 324° Upper-Left */

/* Telemetry Code Stream Overlay */
.radar-telemetry {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    color: rgba(0, 242, 254, 0.8);
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
    z-index: 4;
    text-align: left;
    background: rgba(4, 8, 18, 0.9);
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 242, 254, 0.25);
    backdrop-filter: blur(12px);
    width: max-content;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.1);
}

.radar-telemetry code {
    display: block;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.radar-telemetry code.active-line {
    opacity: 1;
    color: #38ef7d;
    text-shadow: 0 0 12px #38ef7d;
    font-weight: 600;
}

/* ============================================================
   HERO / HOME WRAPPER & ARCHITECTURE CARD
   ============================================================ */
.home .hero-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 75rem;
    z-index: 2;
    position: relative;
    padding-top: 1rem;
}

.home .content {
    position: relative;
    z-index: 2;
    width: 100%;
    animation: fadeInUp 0.8s var(--ease) 0.2s both;
    transition: transform var(--transition-fast);
}

.hero-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hero-headline {
    font-size: 5.8rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 2.2rem;
}

.hero-headline em {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent-teal);
    margin-right: 0.5rem;
}

.hero-headline span {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.hero-description {
    font-size: 1.55rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.8rem;
    max-width: 60rem;
    min-height: 9.8rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    padding: 1.4rem 1.8rem;
    background: rgba(10, 17, 32, 0.55);
    border: 1px solid rgba(0, 242, 254, 0.18);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), inset 0 0 15px rgba(0, 242, 254, 0.03);
    transition: all var(--transition);
}

.hero-description:hover {
    border-color: rgba(0, 242, 254, 0.35);
    border-left-color: #38ef7d;
    box-shadow: 0 8px 35px rgba(0, 242, 254, 0.08);
}

.typewriter-cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    margin-left: 3px;
    animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; text-shadow: 0 0 8px var(--accent); }
    50% { opacity: 0; text-shadow: none; }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: center;
}

.hero-actions .btn-primary {
    background: var(--accent);
    color: #030712;
    border-color: var(--accent);
    font-weight: 700;
}

.hero-actions .btn-primary:hover {
    background: #38ef7d;
    border-color: #38ef7d;
    box-shadow: 0 0 25px rgba(56, 239, 125, 0.4);
}

.hero-actions .btn-secondary {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--text-primary);
}

.hero-actions .btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 242, 254, 0.08);
}

.home .share {
    position: relative;
    z-index: 2;
    margin-top: 3.5rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 242, 254, 0.15);
    padding: 0.8rem 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    animation: fadeInUp 0.8s var(--ease) 0.4s both;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
}

.home .share a {
    height: 4.2rem; width: 4.2rem;
    line-height: 4.2rem;
    font-size: 1.6rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all var(--transition);
    text-decoration: none;
}

.home .share a:hover {
    color: var(--accent);
    background: rgba(0, 242, 254, 0.08);
    transform: translateY(-2px);
}

/* Architecture Card (Right Column — Translucent Frosted Glass so Radar Scanner is Fully Visible) */
.architecture-card {
    background: rgba(6, 12, 25, 0.45);
    border: 1px solid rgba(0, 242, 254, 0.28);
    border-radius: var(--radius-xl);
    padding: 2.2rem 2.4rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 242, 254, 0.08);
    position: relative;
    overflow: hidden;
    max-width: 420px;
    margin-left: auto;
    animation: fadeInUp 0.8s var(--ease) 0.3s both;
    transition: transform 0.2s ease-out, border-color var(--transition), box-shadow var(--transition);
}

.architecture-card:hover {
    border-color: rgba(0, 242, 254, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 242, 254, 0.18);
    background: rgba(6, 12, 25, 0.55);
}

.architecture-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
}

.architecture-card .card-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.architecture-card .shield-badge {
    position: relative;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.25rem;
}

.architecture-card .shield-badge .check-mark {
    position: absolute;
    font-size: 0.75rem;
    color: #38ef7d;
}

/* Network Diagram SVG & Pills */
.network-diagram-container {
    position: relative;
    width: 100%;
    height: 165px;
    margin-bottom: 1.6rem;
    background: rgba(3, 7, 16, 0.35);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 242, 254, 0.12);
    overflow: hidden;
}

.network-svg {
    width: 100%;
    height: 100%;
}

.node-pulse {
    animation: pulseDot 2s ease-in-out infinite;
}

.node-ring {
    animation: radarPing 3s ease-in-out infinite;
    transform-origin: center;
}

.node-pill {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}

.pill-app { top: 44%; left: 4%; }
.pill-api { top: 12%; left: 60%; }
.pill-net { bottom: 8%; right: 4%; }
.pill-sec { bottom: 18%; left: 32%; }

/* Focus List */
.focus-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(0, 242, 254, 0.12);
    margin-bottom: 1.4rem;
}

.focus-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.focus-item:hover {
    background: rgba(0, 242, 254, 0.08);
}

.focus-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 700;
}

.focus-text {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Card Footer */
.architecture-card .card-footer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px dashed rgba(0, 242, 254, 0.12);
}

.home .share a:hover {
    color: var(--accent);
    background: rgba(0, 242, 254, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-sm);
}

/* ============================================================
   ABOUT SECTION & STATS
   ============================================================ */
.about .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap-reverse;
    gap: 3.5rem;
}

.about .row .box-container {
    flex: 1 1 40rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    perspective: 1000px;
}

.about .row .box-container .box {
    text-align: center;
    padding: 2.6rem 1.8rem;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    transition: transform 0.2s ease-out, border-color var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.about .row .box-container .box::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 25px; height: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition);
}

.about .row .box-container .box::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 25px;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition);
}

.about .row .box-container .box:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow-sm), var(--shadow-md);
}

.about .row .box-container .box:hover::before,
.about .row .box-container .box:hover::after {
    opacity: 0.8;
}

.about .row .box-container .box h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.about .row .box-container .box p {
    font-size: 1.35rem;
    color: var(--text-muted);
    padding-top: 0.5rem;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

/* Bio Content — Terminal Window Interface */
.about .row .content {
    flex: 1 1 40rem;
    background: #040812;
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: var(--radius-lg);
    padding: 5.2rem 3rem 3rem 3rem;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 242, 254, 0.08);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

/* Terminal Title Bar */
.about .row .content::before {
    content: 'elbort@security-node:~$ cat profile_info.txt';
    position: absolute;
    top: 0; left: 0; width: 100%;
    height: 3.4rem;
    background: #0a1120;
    border-bottom: 1px solid rgba(0, 242, 254, 0.15);
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding-left: 6.8rem;
    letter-spacing: 0.03em;
}

/* Window Control Dots (Red, Yellow, Green) */
.about .row .content::after {
    content: '';
    position: absolute;
    top: 1.2rem; left: 1.6rem;
    width: 1rem; height: 1rem;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow: 1.6rem 0 0 #ffbd2e, 3.2rem 0 0 #27c93f;
    z-index: 2;
}

.about .row .content h3 {
    font-size: 2.6rem;
    color: var(--text-heading);
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.about .row .content h3::before {
    content: '>';
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.about .row .content h3 span {
    color: var(--accent);
}

.about .row .content p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.9;
    padding: 1.5rem 1.6rem;
    text-transform: none;
    font-family: 'Inter', sans-serif;
    position: relative;
    border-left: 2px solid rgba(0, 242, 254, 0.3);
    margin: 1.2rem 0 1.8rem;
    background: rgba(0, 242, 254, 0.02);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.about .row .content p::after {
    content: ' ▌';
    font-size: 0.9em;
    animation: cursorBlink 1s step-end infinite;
    color: var(--accent);
    font-weight: 700;
}

.about .row:nth-child(3) {
    padding-top: 4rem;
}

/* Progress Bars */
.about .row .progress {
    flex: 1 1 40rem;
}

.about .row .progress h3 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: capitalize;
    margin-top: 1.4rem;
}

.about .row .progress h3 span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.35rem;
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.about .row .progress .bar {
    background: rgba(10, 17, 32, 0.85);
    border: 1px solid rgba(0, 242, 254, 0.22);
    border-radius: 9999px;
    height: 1rem;
    margin: 0.8rem 0 1.8rem;
    overflow: hidden;
    padding: 2px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
    position: relative;
}

.about .row .progress .bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent), var(--accent-blue));
    border-radius: 9999px;
    width: 0%;
    transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
    position: relative;
}

.about .row .progress .bar span::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 8px; height: 100%;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 12px #00f2fe;
    opacity: 0.9;
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 4rem;
    margin-top: 1rem;
}

.skills .row .progress {
    flex: 1 1 40rem;
}

.skills .row .progress h3 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: capitalize;
    margin-top: 1.4rem;
}

.skills .row .progress h3 span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.35rem;
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.skills .row .progress .bar {
    background: rgba(10, 17, 32, 0.85);
    border: 1px solid rgba(0, 242, 254, 0.22);
    border-radius: 9999px;
    height: 1rem;
    margin: 0.8rem 0 1.8rem;
    overflow: hidden;
    padding: 2px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
    position: relative;
}

.skills .row .progress .bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent), var(--accent-blue));
    border-radius: 9999px;
    width: 0%;
    transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
    position: relative;
}

.skills .row .progress .bar span::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 8px; height: 100%;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 12px #00f2fe;
    opacity: 0.9;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
    gap: 2.5rem;
    perspective: 1000px;
}

.services .box-container .box {
    padding: 3rem 2.4rem;
    border-radius: var(--radius-lg);
    background: rgba(8, 14, 28, 0.9);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 242, 254, 0.16);
    border-top: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color var(--transition), box-shadow var(--transition);
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 -2px 10px rgba(0, 242, 254, 0.15);
}

.services .box-container .box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f2fe, #38ef7d, #00d4aa);
    box-shadow: 0 0 15px #00f2fe, 0 0 25px #00f2fe;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.services .box-container .box:hover::before {
    opacity: 1;
}

.services .box-container .box:hover {
    border-color: rgba(0, 242, 254, 0.45);
    border-top-color: #00f2fe;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.25), 0 -3px 18px rgba(0, 242, 254, 0.6);
    transform: translateY(-5px);
}

.services .box-container .box i,
.services .box-container .box .svc-emoji {
    font-size: 2.4rem;
    color: var(--accent);
    margin-bottom: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.2rem; height: 5.2rem;
    border-radius: 1.2rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.08);
    transition: all var(--transition);
}

.services .box-container .box:hover i,
.services .box-container .box:hover .svc-emoji {
    background: rgba(0, 242, 254, 0.18);
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.35);
    transform: scale(1.06) translateZ(10px);
}

.services .box-container .box h3 {
    font-size: 1.8rem;
    font-weight: 700;
    padding-bottom: 0.8rem;
    color: var(--text-heading);
    text-transform: capitalize;
    text-align: left;
}

.services .box-container .box p {
    font-size: 1.4rem;
    line-height: 1.75;
    color: var(--text-secondary);
    text-transform: none;
    text-align: left;
}

.services .box-container .box:hover > * { color: inherit; }
.services .box-container .box:hover h3 { color: var(--text-heading); }
.services .box-container .box:hover p { color: var(--text-secondary); }
.services .box-container .box:hover i { color: var(--accent); }

/* ============================================================
   CERTIFICATION SECTION
   ============================================================ */
.certification {
    padding: var(--section-padding);
}

.certification .heading {
    font-size: 3.6rem;
    color: var(--text-heading);
    text-align: center;
    margin-bottom: 5rem;
    text-transform: uppercase;
}

.cert-category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.cert-tab {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.8rem 1.6rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

.cert-tab:hover,
.cert-tab.active {
    color: #030712;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
    transform: translateY(-2px);
}

.cert-group-title {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 4rem 0 1.5rem 0;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(0, 242, 254, 0.2);
    letter-spacing: -0.01em;
}

.cert-group-title:first-of-type {
    margin-top: 0;
}

.cert-group-title i {
    color: var(--accent);
    font-size: 2.4rem;
}

.certification .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 2.5rem;
    perspective: 1000px;
}

.certification .box {
    background: rgba(8, 14, 28, 0.9);
    backdrop-filter: blur(14px);
    padding: 3rem 2.4rem;
    border-radius: var(--radius-lg);
    text-align: left;
    border: 1px solid rgba(0, 242, 254, 0.16);
    border-top: 2px solid var(--accent);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    max-width: none;
    flex: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 -2px 10px rgba(0, 242, 254, 0.15);
}

.certification .box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f2fe, #38ef7d, #00d4aa);
    box-shadow: 0 0 15px #00f2fe, 0 0 25px #00f2fe;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.certification .box:hover {
    border-color: rgba(0, 242, 254, 0.45);
    border-top-color: #00f2fe;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.25), 0 -3px 18px rgba(0, 242, 254, 0.6);
    transform: translateY(-5px);
}

.certification .box:hover::before {
    opacity: 1;
}

.certification .box i {
    font-size: 2.4rem;
    color: var(--accent);
    margin-bottom: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.2rem; height: 5.2rem;
    border-radius: 1.2rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.08);
    transition: all var(--transition);
}

.certification .box:hover i {
    background: rgba(0, 242, 254, 0.18);
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.35);
    transform: scale(1.06) translateZ(10px);
}

.certification .box h3 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0.8rem 0;
    text-transform: capitalize;
    text-align: left;
}

.certification .box h3 a {
    color: var(--text-heading);
    transition: color var(--transition);
}

.certification .box h3 a:hover {
    color: var(--accent);
}

.certification .box p {
    font-size: 1.35rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-transform: none;
    text-align: left;
}

.cert-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.6rem;
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.25);
    transition: all var(--transition);
    text-decoration: none;
}

.cert-link-btn:hover {
    background: var(--accent);
    color: #030712;
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.35);
    transform: translateY(-2px);
    border-color: var(--accent);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact form {
    margin: 1rem auto;
    max-width: 64rem;
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    padding: 3.8rem;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform 0.2s ease-out, border-color var(--transition);
}

.contact form::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

.contact form .box {
    padding: 1.3rem 1.6rem;
    width: 100%;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1.45rem;
    text-transform: none;
    margin: 0.8rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition);
}

.contact form .box::placeholder {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
}

.contact form .box:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-glow-sm);
    background: var(--bg-surface-solid);
}

.contact form textarea {
    height: 18rem;
    resize: none;
    line-height: 1.7;
}

/* ============================================================
   FOOTER / CREDITS
   ============================================================ */
.credits {
    font-size: 1.35rem;
    text-align: center;
    padding: 3rem 5rem;
    margin-top: 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    background: rgba(4, 8, 18, 0.4);
    backdrop-filter: blur(12px);
}

.credits-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.credits-tagline {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.credits-tagline span {
    color: var(--accent);
    font-weight: 700;
}

.credits-copyright {
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.credits .back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.2);
    transition: all var(--transition);
    text-decoration: none;
}

.credits .back-to-top:hover {
    background: var(--accent);
    color: #030712;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
    transform: translateY(-2px);
}

/* ============================================================
   ENRICHED SECTION BADGES & SUBTITLES
   ============================================================ */
.section-header-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4.2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

section.revealed .section-header-block {
    opacity: 1;
    transform: translateY(0);
}

.section-badge {
    text-align: center;
    display: inline-block;
    margin: 0 auto 1.2rem auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 0.4rem 1.4rem;
    border-radius: 9999px;
    letter-spacing: 0.1em;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.section-header-block .heading {
    margin-bottom: 1.6rem;
    padding-bottom: 1.2rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.55rem;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 500;
}

/* Hero Focus Pills & Tagline */
.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 0.8rem 0 1.5rem 0;
    font-weight: 500;
}

.hero-focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.hero-focus-tags span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    color: var(--accent);
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
}

.btn-secondary {
    background: transparent;
    border-color: rgba(0, 242, 254, 0.3);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

/* Contact Direct Info Cards */
.contact-direct-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.contact-direct-info .info-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.contact-direct-info .info-card i {
    color: var(--accent);
}

.contact-direct-info .info-card a {
    color: var(--accent);
    font-weight: 600;
}

.contact-direct-info .info-card a:hover {
    text-decoration: underline;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.about .row .box-container .box,
.services .box-container .box,
.certification .box {
    opacity: 0;
    transform: translateY(25px);
}

.about .heading,
.services .heading,
.certification .heading,
.contact .heading {
    opacity: 0;
    transform: translateY(20px);
}

.about .row .content,
.about .row .progress,
.skills .row .progress,
.contact form {
    opacity: 0;
    transform: translateY(25px);
}

section.revealed .heading {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

section.revealed .box-container .box,
section.revealed .certification .box {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.about.revealed .row .box-container .box,
.about.revealed .row .content,
.about.revealed .row .progress,
.skills.revealed .row .progress {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.contact.revealed form {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

/* Stagger Delays */
.services.revealed .box-container .box:nth-child(1) { transition-delay: 0s; }
.services.revealed .box-container .box:nth-child(2) { transition-delay: 0.06s; }
.services.revealed .box-container .box:nth-child(3) { transition-delay: 0.12s; }
.services.revealed .box-container .box:nth-child(4) { transition-delay: 0.18s; }
.services.revealed .box-container .box:nth-child(5) { transition-delay: 0.24s; }
.services.revealed .box-container .box:nth-child(6) { transition-delay: 0.30s; }
.services.revealed .box-container .box:nth-child(7) { transition-delay: 0.36s; }
.services.revealed .box-container .box:nth-child(8) { transition-delay: 0.42s; }
.services.revealed .box-container .box:nth-child(9) { transition-delay: 0.48s; }
.services.revealed .box-container .box:nth-child(10) { transition-delay: 0.54s; }

.certification.revealed .box:nth-child(1) { transition-delay: 0s; }
.certification.revealed .box:nth-child(2) { transition-delay: 0.07s; }
.certification.revealed .box:nth-child(3) { transition-delay: 0.14s; }
.certification.revealed .box:nth-child(4) { transition-delay: 0.21s; }
.certification.revealed .box:nth-child(5) { transition-delay: 0.28s; }
.certification.revealed .box:nth-child(6) { transition-delay: 0.35s; }
.certification.revealed .box:nth-child(7) { transition-delay: 0.42s; }
.certification.revealed .box:nth-child(8) { transition-delay: 0.49s; }

.about.revealed .box-container .box:nth-child(1) { transition-delay: 0s; }
.about.revealed .box-container .box:nth-child(2) { transition-delay: 0.1s; }
.about.revealed .box-container .box:nth-child(3) { transition-delay: 0.2s; }
.about.revealed .box-container .box:nth-child(4) { transition-delay: 0.3s; }

.about.revealed .row .content { transition-delay: 0.15s; }
.about.revealed .row .progress { transition-delay: 0.1s; }

/* ============================================================
   RESPONSIVE LAYOUTS
   ============================================================ */
@media (max-width: 1200px) {
    :root { --section-padding: 7rem 4rem; }
    .home .content h3 { font-size: 4.8rem; }
    .services .box-container,
    .certification .box-container {
        grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr));
    }
}

/* Floating Mobile WhatsApp Quick Action Button, Mobile Top Bar & App Bottom Nav */
#sidebar-close-btn,
.mobile-whatsapp-btn,
.mobile-top-bar,
.mobile-bottom-nav {
    display: none !important;
}

@media (max-width: 991px) {
    html { font-size: 55%; }
    body { padding-left: 0; padding-bottom: 7rem; }
    :root { --section-padding: 6rem 3rem; }

    #sidebar-close-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 3.4rem;
        height: 3.4rem;
        border-radius: var(--radius-sm);
        background: rgba(10, 17, 32, 0.6);
        border: 1px solid rgba(0, 242, 254, 0.25);
        color: var(--accent);
        font-size: 1.5rem;
        cursor: pointer;
        margin-left: auto;
        transition: all var(--transition);
    }

    #sidebar-close-btn:hover {
        color: #ff4757;
        border-color: #ff4757;
        background: rgba(255, 71, 87, 0.15);
    }

    .sidebar-logo {
        width: 100%;
        display: flex;
        align-items: center;
    }

    .mobile-top-bar {
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 6.2rem;
        background: rgba(6, 11, 24, 0.94);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(0, 242, 254, 0.2);
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 242, 254, 0.08);
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0 2rem;
        z-index: 9998;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 1.2rem;
        text-decoration: none;
    }

    .mobile-logo-badge {
        font-family: 'JetBrains Mono', monospace;
        font-size: 1.3rem;
        font-weight: 800;
        color: #030712;
        background: var(--accent);
        width: 3.6rem;
        height: 3.6rem;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    }

    .mobile-logo-name {
        font-family: 'Inter', sans-serif;
        font-size: 1.45rem;
        font-weight: 700;
        color: var(--text-heading);
        letter-spacing: 0.05em;
    }

    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    #menu-btn {
        display: none !important;
    }

    .mobile-controls #theme-toggler {
        position: static;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        height: 4rem;
        width: 4rem;
        font-size: 1.6rem;
        line-height: normal;
        margin: 0;
        z-index: 10001;
    }

    /* Mobile App Bottom Navigation Bar */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0; left: 0;
        width: 100%;
        height: 6.5rem;
        background: rgba(6, 11, 24, 0.96);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 242, 254, 0.2);
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 242, 254, 0.08);
        display: flex !important;
        align-items: center;
        justify-content: space-around;
        padding: 0.6rem 0.5rem;
        z-index: 9999;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        flex: 1;
        text-decoration: none;
        color: #64748b;
        font-family: 'Inter', sans-serif;
        font-size: 1.15rem;
        font-weight: 500;
        transition: all 0.25s ease;
    }

    .bottom-nav-item i {
        font-size: 2rem;
        transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
    }

    .bottom-nav-item:hover,
    .bottom-nav-item.active {
        color: var(--accent);
    }

    .bottom-nav-item:hover i,
    .bottom-nav-item.active i {
        color: var(--accent);
        transform: translateY(-2px);
        text-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
    }

    .bottom-nav-item.active span {
        color: var(--accent);
        font-weight: 700;
    }

    .header {
        left: -110%;
        width: 32rem;
        max-width: 88vw;
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 3rem 2.2rem 10rem 2.2rem;
        z-index: 10002;
        background: rgba(6, 11, 24, 0.98);
        backdrop-filter: blur(20px);
    }

    .header .sidebar-contact-card {
        margin-top: 2.2rem;
    }

    .header.active {
        left: 0;
        box-shadow: 10px 0 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.2);
    }
    #menu-btn { display: initial; }

    .home {
        padding-left: 3rem;
        padding-right: 3rem;
        align-items: center;
        text-align: center;
    }

    .home .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        padding-top: 4rem;
    }

    .hero-badge, .hero-actions {
        justify-content: center;
    }

    .hero-headline {
        font-size: 4.2rem;
    }

    .radar-container {
        width: 450px;
        height: 450px;
        right: 50%;
        transform: translate(50%, -50%);
        opacity: 0.35;
    }

    .radar-ring.ring-3, .radar-sweep {
        width: 450px;
        height: 450px;
    }

    .about .row .box-container { grid-template-columns: repeat(2, 1fr); }

    #mouse-glow { display: none; }
}

@media (max-width: 600px) {
    html { font-size: 52%; }
    :root { --section-padding: 5rem 2rem; }

    .header { width: 100%; border-right: none; }
    .header::after { display: none; }

    .home .content h3 { font-size: 3.4rem; }
    .home .content p { font-size: 1.5rem; }
    .home .content { padding: 2.5rem; }
    .heading { font-size: 2.8rem; }

    .about .row .box-container { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
    .services .box-container,
    .certification .box-container { grid-template-columns: 1fr; }

    .contact form { padding: 2.2rem; margin: 0 0.5rem; }
    .home .share { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 420px) {
    html { font-size: 48%; }
    .home .content h3 { font-size: 3rem; }
    .about .row .box-container { grid-template-columns: 1fr; }
    .about .row .box-container .box h3 { font-size: 3rem; }
}

/* ============================================================
   REDUCED MOTION SUPPORT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .home::before, #cyber-bg, #mouse-glow { display: none; }
    .about .row .box-container .box,
    .services .box-container .box,
    .certification .box,
    .about .heading,
    .services .heading,
    .certification .heading,
    .contact .heading,
    .about .row .content,
    .about .row .progress,
    .contact form {
        opacity: 1 !important;
        transform: none !important;
    }
    .about .progress .bar span { transition: none !important; }
    .about .progress .bar-1-1 span { width: 98% !important; }
    .about .progress .bar-1-2 span { width: 97% !important; }
    .about .progress .bar-1-3 span { width: 95% !important; }
    .about .progress .bar-1-4 span { width: 90% !important; }
    .about .progress .bar-1-5 span { width: 89% !important; }
    .about .progress .bar-1-6 span { width: 85% !important; }
    .about .progress .bar-1-7 span { width: 85% !important; }
    .about .progress .bar-2-1 span { width: 82% !important; }
    .about .progress .bar-2-2 span { width: 80% !important; }
    .about .progress .bar-2-3 span { width: 75% !important; }
    .about .progress .bar-2-4 span { width: 75% !important; }
    .about .progress .bar-2-5 span { width: 75% !important; }
    .about .progress .bar-2-6 span { width: 70% !important; }
    .about .progress .bar-2-7 span { width: 60% !important; }
}

/* ============================================================
   SELECTION & FOCUS
   ============================================================ */
::selection {
    background: rgba(0, 242, 254, 0.3);
    color: #ffffff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
