/* ========================================
   VARIABLES & RESET
   ======================================== */
:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-card: #161618;
    --bg-card-hover: #1c1c1f;
    --bg-elevated: #1e1e21;
    --border: #222225;
    --border-subtle: #1a1a1d;
    --text-primary: #f0f0f2;
    --text-secondary: #a0a0a8;
    --text-muted: #6b6b73;
    --accent: #00d4ff;
    --accent-dim: rgba(0, 212, 255, 0.12);
    --accent-glow: rgba(0, 212, 255, 0.06);
    --violet: #8b5cf6;
    --violet-dim: rgba(139, 92, 246, 0.12);
    --success: #22c55e;
    --danger: #ef4444;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    --max-width: 1200px;
    --nav-height: 64px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

ul, ol {
    list-style: none;
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ========================================
   SCROLL PROGRESS
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--violet));
    z-index: 10001;
    width: 0%;
    transition: width 0.1s linear;
}

/* ========================================
   PAGE LOADER
   ======================================== */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-hex {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

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

/* ========================================
   CONTAINER
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
    background: rgba(10, 10, 11, 0.95);
    box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.logo-bracket {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 6px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 11, 0.98);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.02em;
}

.mobile-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: #d4d4d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.75rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-canvas-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 20%, rgba(10, 10, 11, 0.85), transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 80%, rgba(10, 10, 11, 0.6), transparent 50%),
        linear-gradient(180deg, rgba(10, 10, 11, 0.9) 0%, rgba(10, 10, 11, 0.5) 50%, rgba(10, 10, 11, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vmax;
    height: 80vmax;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.04), transparent 70%);
    pointer-events: none;
    opacity: 0.2;
    transition: opacity 0.5s ease;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}

/* ========================================
   3D SECTION BACKGROUNDS (Subtle)
   ======================================== */
.section-3d-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

.section-3d-bg canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ========================================
   PROMINENT 3D SECTION CANVASES (Hero-like)
   ======================================== */
.section-3d-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}

.section-3d-canvas canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.section[data-3d-bg] {
    position: relative;
}

.section[data-3d-bg] > .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.hero-line {
    display: block;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.hero-tagline {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-intro {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-link:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 120px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

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

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-line {
    width: 48px;
    height: 2px;
    background: var(--accent);
    margin-top: 16px;
    border-radius: 1px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: 48px;
    line-height: 1.7;
}

/* ========================================
   ABOUT
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 64px;
    align-items: start;
}

.image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-card);
}

.about-name {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.about-role {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 500;
}

.about-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.75;
    font-size: 0.95rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ========================================
   TIMELINE
   ======================================== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline-line {
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 24px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    z-index: 1;
}

.timeline-dot.active {
    border-color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    transition: border-color 0.3s;
}

.timeline-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

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

.timeline-badge {
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 4px;
}

.timeline-badge.current {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.timeline-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 0.9375rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-list li {
    position: relative;
    padding-left: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* ========================================
   EDUCATION
   ======================================== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.3s;
}

.edu-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.edu-icon {
    color: var(--accent);
    margin-bottom: 16px;
}

.edu-school {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.edu-degree {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.edu-period {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 4px;
}

.edu-score {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* ========================================
   PROJECTS
   ======================================== */
.project-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 18px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    transition: all 0.2s;
    background: transparent;
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.filter-btn.active {
    color: var(--bg-primary);
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s var(--ease);
    display: flex;
    flex-direction: column;
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
    border-color: rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
}

.project-icon {
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0.8;
}

.project-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.project-desc {
    font-size: 0.8375rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.tag {
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    transition: opacity 0.2s;
}

.project-link:hover {
    opacity: 0.8;
}

/* ========================================
   CYBERSECURITY
   ======================================== */
.sec-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.sec-flow-item {
    text-align: center;
    padding: 24px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 120px;
    transition: border-color 0.3s, transform 0.3s var(--ease);
}

.sec-flow-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.sec-flow-icon {
    color: var(--accent);
    margin-bottom: 12px;
}

.sec-flow-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.sec-flow-arrow {
    color: var(--text-muted);
    opacity: 0.4;
}

.sec-skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sec-skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.3s;
}

.sec-skill-card:hover {
    border-color: rgba(0, 212, 255, 0.15);
}

.sec-skill-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.sec-skill-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   CERTIFICATIONS
   ======================================== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: border-color 0.3s;
}

.cert-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.cert-card.featured {
    border-color: rgba(0, 212, 255, 0.15);
    background: linear-gradient(135deg, var(--bg-card), rgba(0, 212, 255, 0.03));
}

.cert-badge {
    color: var(--accent);
    margin-bottom: 16px;
}

.cert-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.cert-id {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.cert-provider {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   SKILLS
   ======================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.3s;
}

.skill-category:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.skill-cat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    transition: border-color 0.2s, color 0.2s;
}

.skill-tag:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

/* ========================================
   AI SECTION
   ======================================== */
.ai-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.ai-flow-item {
    text-align: center;
    padding: 24px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 140px;
    max-width: 180px;
    transition: border-color 0.3s;
}

.ai-flow-item:hover {
    border-color: var(--violet);
}

.ai-flow-num {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--violet);
    margin-bottom: 8px;
    letter-spacing: 0.06em;
}

.ai-flow-item h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.ai-flow-item p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.ai-flow-connector {
    color: var(--text-muted);
    opacity: 0.3;
    padding-top: 32px;
}

.ai-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.ai-kw {
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--violet);
    background: var(--violet-dim);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 100px;
}

/* ========================================
   BUSINESS
   ======================================== */
.business-content {
    max-width: 700px;
}

.business-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px;
}

.business-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.business-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.business-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ========================================
   BEYOND TECH
   ======================================== */
.beyond-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.beyond-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: border-color 0.3s;
}

.beyond-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.beyond-card.highlight {
    border-color: rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, var(--bg-card), rgba(139, 92, 246, 0.04));
    grid-column: span 2;
    text-align: center;
}

.beyond-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.beyond-card.highlight .beyond-icon {
    color: var(--violet);
}

.beyond-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.beyond-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.beyond-achievement {
    font-size: 1rem;
    color: var(--violet);
    font-weight: 600;
    margin-bottom: 4px;
}

.beyond-period {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 20px;
}

.beyond-stat {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 48px;
    background: var(--violet-dim);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    margin-top: 8px;
}

.beyond-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--violet);
    font-family: var(--font-mono);
    line-height: 1;
    letter-spacing: -0.02em;
}

.beyond-stat-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--violet);
    opacity: 0.7;
    margin-top: 4px;
}

/* ========================================
   CONTACT
   ======================================== */
.contact-content {
    display: flex;
    justify-content: center;
}

.contact-main {
    text-align: center;
    max-width: 600px;
}

.contact-name {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.contact-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.contact-item:hover {
    color: var(--accent);
}

.contact-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    text-align: center;
}

.footer-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s var(--ease);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

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

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

/* ========================================
   MAGNETIC BUTTON TRANSITION
   ======================================== */
.btn-primary,
.btn-secondary,
.btn-outline {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   PROJECT CARD ENHANCED
   ======================================== */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent);
}

.project-icon {
    transition: transform 0.3s var(--ease), color 0.3s ease;
}

/* ========================================
   SECTION TITLE CHAR ANIMATION
   ======================================== */
.section-title span,
.hero-line span {
    display: inline-block;
    will-change: transform, opacity;
}

/* ========================================
   CARD HOVER ENHANCEMENTS
   ======================================== */
.skill-category,
.sec-skill-card,
.cert-card,
.edu-card,
.timeline-card,
.beyond-card,
.business-card {
    transition: border-color 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.skill-category:hover,
.sec-skill-card:hover,
.cert-card:hover,
.edu-card:hover,
.timeline-card:hover,
.beyond-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.4);
}

/* ========================================
   SOCIAL LINK ENHANCEMENT
   ======================================== */
.social-link {
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scale(0);
    border-radius: 8px;
    transition: transform 0.3s var(--ease);
    z-index: -1;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* ========================================
   FILTER BUTTON ENHANCEMENT
   ======================================== */
.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--text-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease);
    z-index: -1;
}

.filter-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.filter-btn.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* ========================================
   TIMELINE DOT PULSE
   ======================================== */
.timeline-dot.active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

/* ========================================
   LOADER ENHANCEMENT
   ======================================== */
.loader-hex {
    position: relative;
}

.loader-hex::before,
.loader-hex::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: loader-ring 1.5s ease-out infinite;
}

.loader-hex::after {
    animation-delay: 0.75s;
}

@keyframes loader-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* ========================================
   NAV LINK UNDERLINE
   ======================================== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ========================================
   CONTACT ITEM HOVER
   ======================================== */
.contact-item {
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
}

.contact-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: -1;
}

.contact-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   STAT NUMBER ANIMATION
   ======================================== */
.stat-number {
    transition: color 0.3s ease;
}

.stat-number[data-count]::after {
    content: '+';
}

/* ========================================
   SCROLL INDICATOR ENHANCEMENT
   ======================================== */
.scroll-indicator {
    animation: fadeInUp 1s ease 1s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ========================================
   HERO BADGE ENHANCEMENT
   ======================================== */
.hero-badge {
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* ========================================
   BEYOND STAT ENHANCEMENT
   ======================================== */
.beyond-stat {
    position: relative;
    overflow: hidden;
}

.beyond-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.beyond-stat:hover::before {
    opacity: 1;
}

.beyond-stat-number {
    background: linear-gradient(135deg, var(--violet), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   AI KEYWORD HOVER
   ======================================== */
.ai-kw {
    transition: all 0.2s ease;
    cursor: default;
}

.ai-kw:hover {
    background: var(--violet);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* ========================================
   SEC FLOW ITEM HOVER
   ======================================== */
.sec-flow-item {
    position: relative;
    overflow: hidden;
}

.sec-flow-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sec-flow-item:hover::before {
    opacity: 1;
}

/* ========================================
   RESPONSIVE ENHANCEMENTS
   ======================================== */
@media (max-width: 1024px) {
    .hero-glow {
        width: 100vmax;
        height: 100vmax;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 100px 16px 60px;
    }

    .hero-glow {
        width: 120vmax;
        height: 120vmax;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .reveal {
        transform: translateY(20px);
        transition-duration: 0.6s;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

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

    .hero-glow {
        display: none;
    }

    html {
        scroll-behavior: auto;
    }

    .scroll-line {
        animation: none;
    }

    .badge-dot {
        animation: none;
    }

    .loader-hex::before,
    .loader-hex::after {
        animation: none;
    }

    .timeline-dot.active::after {
        animation: none;
    }

    .project-card:hover,
    .skill-category:hover,
    .sec-skill-card:hover,
    .cert-card:hover,
    .edu-card:hover,
    .timeline-card:hover,
    .beyond-card:hover {
        transform: none;
    }

    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-outline:hover {
        transform: none;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sec-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 80px 0;
    }

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

    .about-image {
        max-width: 240px;
        margin: 0 auto;
    }

    .about-stats {
        gap: 32px;
    }

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

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

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

    .sec-skills-grid {
        grid-template-columns: 1fr;
    }

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

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

    .beyond-card.highlight {
        grid-column: span 1;
    }

    .sec-flow {
        gap: 8px;
    }

    .sec-flow-item {
        min-width: 100px;
        padding: 16px 12px;
    }

    .sec-flow-arrow {
        display: none;
    }

    .ai-flow {
        flex-direction: column;
        align-items: center;
    }

    .ai-flow-connector {
        transform: rotate(90deg);
        padding: 0;
    }

    .ai-flow-item {
        max-width: 280px;
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .hero-content {
        padding: 100px 16px 60px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-line {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .project-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.6875rem;
    }

    .timeline {
        padding-left: 32px;
    }

    .timeline-card {
        padding: 20px;
    }

    .cert-card {
        padding: 24px;
    }

    .beyond-stat {
        padding: 20px 32px;
    }

    .beyond-stat-number {
        font-size: 2rem;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

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

    html {
        scroll-behavior: auto;
    }

    .scroll-line {
        animation: none;
    }

    .badge-dot {
        animation: none;
    }
}
