@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* =========================================
   1. Design System & Variables (Apple Style)
   ========================================= */
:root {
    /* Color Palette - Premium Dark Mode */
    --bg-base: #000000;
    --bg-gradient-1: #1c1c1e;
    --bg-gradient-2: #2c2c2e;

    /* Text Colors */
    --text-primary: #f5f5f7;
    /* Apple Off-White */
    --text-secondary: #86868b;
    /* Apple Subtext Grey */
    --text-tertiary: #6e6e73;

    /* Accents */
    --accent-blue: #2997ff;
    /* Apple Blue */
    --accent-purple: #bf5af2;
    --accent-indigo: #5e5ce6;

    /* Glassmorphism Tokens */
    --glass-bg: rgba(28, 28, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Spacing & Layout */
    --section-spacing: 120px;
    --container-width: 1080px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

/* =========================================
   2. Reset & Base Styles
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Premium Animated Background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at center, rgba(41, 151, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(94, 92, 230, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(191, 90, 242, 0.15) 0%, transparent 40%);
    background-size: 100% 100%;
    transform-origin: center center;
    animation: ambientShift 30s ease infinite alternate;
    z-index: -1;
    pointer-events: none;
}

@keyframes ambientShift {
    0% {
        transform: rotate(0deg) scale(1);
    }

    100% {
        transform: rotate(10deg) scale(1.1);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

/* =========================================
   3. Typography
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.02em;
    /* Tighter Apple-style tracking */
    font-weight: 600;
}

h1 {
    font-size: 4rem;
    /* 64px */
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    /* 40px */
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    /* 18px */
    font-weight: 400;
    line-height: 1.6;
}

.section-caption {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    display: block;
}

/* =========================================
   4. Glassmorphism Utilities
   ========================================= */
.glass-panel {
    background: rgba(28, 28, 30, 0.65);
    /* Fallback */
    background: linear-gradient(rgba(28, 28, 30, 0.65), rgba(28, 28, 30, 0.65));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Static border fallback */
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Ensure distinct stacking context */
}

/* 1. Surface Spotlight (Inner Glow) */
.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.08),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

/* 2. Border Spotlight (Outer Glow via Overlay) */
/* We simulate a border glow by creating a pseudo-element on top with a gradient border */
.glass-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    /* Match card radius */
    padding: 1px;
    /* The border width */

    /* The trick: gradient background masked by content-box to show only the "border" area */
    background: radial-gradient(500px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.7),
            transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 3;
}

.glass-panel:hover::before,
.glass-panel:hover::after {
    opacity: 1;
}

.glass-panel>* {
    position: relative;
    z-index: 4;
}

.glass-dock {
    background: rgba(28, 28, 30, 0.4);
    /* More transparent for dock */
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    /* Pill shape */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* =========================================
   5. Components
   ========================================= */
/* Header / Navbar */
header {
    display: none;
    /* We'll use the floating nav mainly */
}

/* Floating Nav */
.floating-nav {
    position: fixed;
    bottom: 32px;
    /* Bottom dock like macOS/iOS */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 12px 16px;
    width: auto;
    max-width: 90vw;
}

/* Ensure the glass-dock class is applied in HTML or mixin */
.floating-nav nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-nav nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.floating-nav nav a:hover,
.floating-nav nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
    background: var(--accent-blue);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(41, 151, 255, 0.4);
}

.modern-btn:hover {
    transform: scale(1.02);
    background: #147ce5;
    /* Slightly darker on hover */
    box-shadow: 0 6px 20px rgba(41, 151, 255, 0.6);
}

/* Sections */
section {
    padding: var(--section-spacing) 24px;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

section#about {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: 15vh;
}

/* Cards (Skills, Projects, Certs) */
.skills-grid,
.projects-grid,
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* Card Styling */
.skill-item,
.project-card,
.cert-badge {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.skill-item:hover,
.project-card:hover,
.cert-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    background: rgba(44, 44, 46, 0.75);
    /* Lighten slightly on hover */
    border-color: rgba(255, 255, 255, 0.2);
}

/* Card Internals */
.skill-header,
.project-header,
.cert-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.skill-name,
.cert-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-desc,
.project p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.project-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 16px 0 8px 0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px 0;
}

.tech-tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Status Indicators */
.status-indicator {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 6px;
}

.status-indicator.active {
    color: #30d158;
    background: rgba(48, 209, 88, 0.1);
}

.status-indicator.completed {
    color: #0a84ff;
    background: rgba(10, 132, 255, 0.1);
}

.status-indicator.research {
    color: #bf5af2;
    background: rgba(191, 90, 242, 0.1);
}

/* Contact Specific */
.social-links {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-links a {
    font-size: 1rem;
    color: var(--accent-blue);
    font-weight: 500;
}

.contact-humor,
.about-humor,
.skills-humor {
    margin-top: 24px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--text-tertiary);
    text-align: center;
}

/* =========================================
   6. Utilities & Animations
   ========================================= */
.glitch-overlay {
    display: none;
}

/* Disable heavy glitch effects */

/* Fade In Animation for Content */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section>* {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --section-spacing: 80px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .floating-nav {
        bottom: 20px;
        padding: 10px 14px;
    }

    .floating-nav nav a {}
}

/* =========================================
   9. Page Specific: Reconnaissance (Holo-Glass V2)
   ========================================= */
:root {
    --holo-blue: #00f3ff;
    --holo-pink: #ff00ff;
    --holo-green: #0aff0a;
    --holo-dark: rgba(10, 11, 16, 0.85);
}

.recon-main {
    padding-bottom: 100px;
}

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Holo Panel (Enhanced with Spotlight) */
.holo-panel {
    background: var(--holo-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 243, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* 1. Surface Spotlight (Cyan Inner Glow) */
.holo-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(0, 243, 255, 0.06),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

/* 2. Border Spotlight (Cyan Border Glow) */
.holo-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(0, 243, 255, 0.8),
            transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

.holo-panel:hover::before,
.holo-panel:hover::after {
    opacity: 1;
}

.holo-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* Ensure content is above the spotlight layers */
.holo-panel>* {
    position: relative;
    z-index: 3;
}

/* Panel Spans */
.col-span-12 {
    grid-column: span 12;
}

.col-span-8 {
    grid-column: span 8;
}

.col-span-6 {
    grid-column: span 6;
}

.col-span-4 {
    grid-column: span 4;
}

.col-span-3 {
    grid-column: span 3;
}

.row-span-2 {
    grid-row: span 2;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .col-span-12,
    .col-span-8,
    .col-span-6,
    .col-span-4,
    .col-span-3 {
        grid-column: span 1;
    }

    .row-span-2 {
        grid-row: auto;
    }
}

/* Header & Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    background: rgba(0, 20, 40, 0.5);
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--holo-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--holo-green);
    text-shadow: 0 0 5px var(--holo-green);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--holo-green);
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Panel Content */
.panel-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.panel-body {
    padding: 20px;
    flex: 1;
    overflow: hidden;
    position: relative;
    font-family: 'Fira Code', monospace;
}

/* Visualizations */
/* 1. Radar Map Animation */
.radar-map {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, transparent 0%, transparent 60%, rgba(0, 243, 255, 0.05) 61%, transparent 62%),
        repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(0, 243, 255, 0.03) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(0, 243, 255, 0.03) 20px);
    z-index: 0;
    pointer-events: none;
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 243, 255, 0.1) 60deg, transparent 61deg);
    transform-origin: 0 0;
    animation: radarSpin 4s linear infinite;
}

@keyframes radarSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 2. Data Streams */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table td {
    padding: 8px 0;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table td:first-child {
    color: var(--text-tertiary);
    width: 40%;
}

.data-value-highlight {
    color: var(--holo-blue);
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.4);
}

/* 3. Console Log */
.console-window {
    height: 100%;
    overflow-y: hidden;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.log-entry {
    margin-bottom: 4px;
}

.log-entry::before {
    content: '> ';
    color: var(--holo-green);
}

/* Glitch Text Override */
.glitch-header {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    color: #fff;
}

/* Toggle override */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* =========================================
   10. Page Specific: Tools Arsenal (V2)
   ========================================= */
.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Arsenal Card (Clean Silver Spotlight) */
.arsenal-card {
    background: rgba(20, 20, 23, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Silver border */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 32px;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* 1. Surface Spotlight (Silver Inner Glow) */
.arsenal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.04),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

/* 2. Border Spotlight (Silver Border Glow) */
.arsenal-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.5),
            /* Silver glow */
            transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

.arsenal-card:hover::before,
.arsenal-card:hover::after {
    opacity: 1;
}

.arsenal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.arsenal-card>* {
    position: relative;
    z-index: 3;
}

.tool-icon-large {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-meta {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-small {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-glow {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-glow:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.btn-text {
    color: var(--text-secondary);
}

.btn-text:hover {
    color: var(--text-primary);
}