/* ═══════════════════════════════════════════════════════════════
   VICTOR CHEGE — PORTFOLIO
   Design System: "Terminal Noir" — Dark enterprise meets modern cloud
   ═══════════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
    /* Background layers */
    --bg-deepest: #05060a;
    --bg-deep: #0a0c14;
    --bg-surface: #10131e;
    --bg-elevated: #161a2b;
    --bg-card: #1a1f33;
    --bg-card-hover: #1f2540;

    /* Primary: Cyan-Teal spectrum */
    --primary-50: #e0fcff;
    --primary-100: #b3f5fc;
    --primary-200: #7de8f5;
    --primary-300: #47d6eb;
    --primary-400: #1fc3de;
    --primary: #00b4d8;
    --primary-600: #0096b7;
    --primary-700: #007896;
    --primary-800: #005a73;
    --primary-900: #003d50;

    /* Accent: Warm gold */
    --accent: #f0a500;
    --accent-light: #ffc94d;
    --accent-dim: #c48700;

    /* Semantic colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Text */
    --text-primary: #e8edf5;
    --text-secondary: #8892a8;
    --text-muted: #5a6478;
    --text-accent: var(--primary-300);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.10);
    --border-active: rgba(0, 180, 216, 0.35);

    /* Glassmorphism */
    --glass-bg: rgba(16, 19, 30, 0.65);
    --glass-bg-hover: rgba(26, 31, 51, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;

    /* Glow effects */
    --glow-primary: 0 0 60px rgba(0, 180, 216, 0.15);
    --glow-accent: 0 0 60px rgba(240, 165, 0, 0.1);
    --glow-card: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Transitions */
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 200ms;
    --duration-normal: 350ms;
    --duration-slow: 600ms;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

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

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

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

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

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

/* ── Cursor Glow ───────────────────────────────────────────── */
#cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    will-change: transform;
}

/* ── Particles Canvas ──────────────────────────────────────── */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ── Container ─────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ── Navigation ────────────────────────────────────────────── */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(5, 6, 10, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--duration-normal) var(--ease-smooth);
}

#main-nav.scrolled {
    padding: var(--space-sm) 0;
    background: rgba(5, 6, 10, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: transform var(--duration-fast) var(--ease-smooth);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-bracket {
    color: var(--primary);
    font-weight: 300;
}

.logo-text {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary), var(--primary-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--duration-fast) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--duration-normal) var(--ease-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-300);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--duration-normal) var(--ease-smooth);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: var(--space-lg) var(--space-xl);
    gap: var(--space-md);
}

.mobile-menu.open {
    display: flex;
}

.mobile-link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: color var(--duration-fast) ease;
}

.mobile-link:hover {
    color: var(--primary-300);
}

/* ── Section Common ────────────────────────────────────────── */
.section {
    position: relative;
    z-index: 1;
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: var(--space-sm);
    opacity: 0.6;
}

.section-tag-close {
    text-align: center;
    margin-top: var(--space-3xl);
    opacity: 0.3;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Reveal Animation ──────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--duration-slow) var(--ease-smooth);
}

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

/* ── Hero Section ──────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 120px var(--space-xl) var(--space-3xl);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.terminal-prompt {
    color: var(--accent);
}

.typing-text {
    color: var(--primary-300);
}

.cursor-blink {
    animation: blink 1s step-end infinite;
    color: var(--primary);
    font-weight: 300;
}

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

.hero-name {
    font-family: var(--font-display);
    line-height: 1.05;
    margin-bottom: var(--space-lg);
}

.name-line {
    display: block;
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--ease-smooth) forwards;
}

.name-line.accent {
    background: linear-gradient(135deg, var(--primary), var(--primary-300), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.15s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-300);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-xs);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-smooth) 0.3s forwards;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-smooth) 0.4s forwards;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-smooth) 0.5s forwards;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-smooth) 0.6s forwards;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: var(--bg-deepest);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.4);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-primary svg {
    transition: transform var(--duration-fast) var(--ease-smooth);
}

.btn-secondary {
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(0, 180, 216, 0.08);
    transform: translateY(-2px);
}

/* ── Hero Stats ────────────────────────────────────────────── */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-smooth) 0.7s forwards;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    display: inline;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* ── Hero Image ────────────────────────────────────────────── */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeUp 1s var(--ease-smooth) 0.4s forwards;
}

.profile-frame {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 3;
    border: 3px solid var(--border-light);
    box-shadow: var(--glow-primary), 0 0 80px rgba(0, 180, 216, 0.1);
}

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

.image-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
}

.ring-1 {
    width: 370px;
    height: 370px;
    border-color: rgba(0, 180, 216, 0.15);
    animation: spin 20s linear infinite;
}

.ring-2 {
    width: 420px;
    height: 420px;
    border-color: rgba(0, 180, 216, 0.08);
    border-style: dashed;
    animation: spin 30s linear infinite reverse;
}

.ring-3 {
    width: 470px;
    height: 470px;
    border-color: rgba(240, 165, 0, 0.06);
    animation: spin 40s linear infinite;
}

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

/* Floating badges */
.floating-badge {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    backdrop-filter: blur(12px);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-primary);
    white-space: nowrap;
    box-shadow: var(--glow-card);
}

.badge-icon {
    font-size: 1rem;
}

.badge-1 {
    top: 10%;
    right: -5%;
    animation: float 4s ease-in-out infinite;
}

.badge-2 {
    bottom: 15%;
    right: -8%;
    animation: float 4s ease-in-out 1s infinite;
}

.badge-3 {
    top: 15%;
    left: -5%;
    animation: float 4s ease-in-out 2s infinite;
}

.badge-4 {
    bottom: 10%;
    left: -8%;
    animation: float 4s ease-in-out 3s infinite;
}

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

/* ── Scroll Indicator ──────────────────────────────────────── */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-smooth) 1.2s forwards;
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.scroll-arrow {
    animation: bounce 2s ease-in-out infinite;
    color: var(--primary);
    opacity: 0.6;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ── About Section ─────────────────────────────────────────── */
.about-section {
    background: var(--bg-deep);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about-text {
    padding-right: var(--space-xl);
}

.about-lead {
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary-300);
    font-weight: 600;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.highlight-card {
    padding: var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.highlight-card:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: var(--glow-primary);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(0, 180, 216, 0.08);
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.highlight-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.highlight-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Skills Section ────────────────────────────────────────── */
.skills-section {
    background: var(--bg-deepest);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.skill-category {
    padding: var(--space-xl);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.skill-category:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: var(--glow-primary);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.skill-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.skill-icon-wrap.enterprise {
    background: rgba(0, 180, 216, 0.1);
    color: var(--primary);
}

.skill-icon-wrap.devops {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.skill-icon-wrap.languages {
    background: rgba(240, 165, 0, 0.1);
    color: var(--accent);
}

.skill-icon-wrap.ai {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.skill-icon-wrap.security {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.skill-icon-wrap.sustainability {
    background: rgba(34, 197, 94, 0.08);
    color: #4ade80;
}

.skill-category h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.skill-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 180, 216, 0.06);
    border: 1px solid rgba(0, 180, 216, 0.12);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-smooth);
    letter-spacing: 0.02em;
}

.skill-tag:hover {
    background: rgba(0, 180, 216, 0.12);
    color: var(--primary-300);
    border-color: var(--primary);
    transform: scale(1.05);
}

/* ── Certifications Section ────────────────────────────────── */
.certs-section {
    background: var(--bg-deep);
}

.cert-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.filter-btn {
    padding: 8px 20px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.filter-btn:hover {
    color: var(--text-secondary);
    border-color: var(--border-light);
}

.filter-btn.active {
    color: var(--bg-deepest);
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.25);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
}

.cert-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.cert-card:hover {
    border-color: var(--border-active);
    transform: translateY(-2px);
    box-shadow: var(--glow-card);
}

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

.cert-issuer-logo {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cert-issuer-logo.helsinki {
    background: rgba(0, 91, 167, 0.15);
    color: #4dacff;
}

.cert-issuer-logo.anthropic {
    background: rgba(204, 133, 75, 0.15);
    color: #d4956e;
}

.cert-issuer-logo.ibm {
    background: rgba(0, 98, 255, 0.15);
    color: #5e9eff;
    font-size: 0.72rem;
    font-weight: 900;
}

.cert-issuer-logo.cisco {
    background: rgba(0, 188, 235, 0.15);
    color: #00bceb;
}

.cert-issuer-logo.oracle {
    background: rgba(255, 0, 0, 0.12);
    color: #ff6b6b;
}

.cert-issuer-logo.microsoft {
    background: rgba(0, 120, 212, 0.15);
    color: #4da6ff;
}

.cert-issuer-logo.linkedin {
    background: rgba(0, 119, 181, 0.15);
    color: #0a85c2;
    font-size: 0.7rem;
    font-weight: 900;
}

.cert-content {
    flex: 1;
    min-width: 0;
}

.cert-name {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.4;
}

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

.cert-date {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--primary);
    margin-top: 4px;
    opacity: 0.8;
}

.cert-badge {
    color: var(--success);
    flex-shrink: 0;
    opacity: 0.7;
}

/* ── Projects Section ──────────────────────────────────────── */
.projects-section {
    background: var(--bg-deepest);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.project-card {
    position: relative;
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-smooth);
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.project-card:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: var(--glow-primary);
}

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

.project-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
    border-color: var(--border-light);
}

.project-card.featured::before {
    opacity: 0.6;
}

.project-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(0, 180, 216, 0.06);
    position: absolute;
    top: var(--space-md);
    right: var(--space-xl);
    line-height: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.project-type {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    padding: 4px 12px;
    background: rgba(0, 180, 216, 0.08);
    border-radius: var(--radius-full);
}

.project-links {
    display: flex;
    gap: var(--space-sm);
}

.project-link-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.project-link-icon:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0, 180, 216, 0.08);
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.project-tech span {
    padding: 5px 12px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) ease;
}

.project-card:hover .project-tech span {
    border-color: var(--border-light);
    color: var(--text-secondary);
}

/* ── Contact Section ───────────────────────────────────────── */
.contact-section {
    background: var(--bg-deep);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.contact-link:hover {
    border-color: var(--border-active);
    transform: translateX(4px);
    box-shadow: var(--glow-card);
}

.contact-link-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-link-icon.linkedin {
    background: rgba(0, 119, 181, 0.15);
    color: #0a85c2;
}

.contact-link-icon.github {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.contact-link-icon.whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
}

.contact-link-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-link-value {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ── Contact Terminal ──────────────────────────────────────── */
.contact-terminal {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--glow-card);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: var(--space-xl);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.terminal-prompt-sm {
    color: var(--accent);
    font-weight: 700;
}

.terminal-cmd {
    color: var(--primary-300);
}

.terminal-output {
    color: var(--text-secondary);
    padding-left: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-left: 2px solid var(--border-subtle);
}

.terminal-output.highlight {
    color: var(--success);
    font-weight: 500;
}

.terminal-cursor-blink {
    color: var(--primary);
    animation: blink 1s step-end infinite;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--bg-deepest);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-dot {
    color: var(--text-muted);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-greeting {
        justify-content: center;
    }

    .hero-description {
        margin: 0 auto var(--space-2xl);
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .profile-frame {
        width: 250px;
        height: 250px;
    }

    .ring-1 { width: 300px; height: 300px; }
    .ring-2 { width: 340px; height: 340px; }
    .ring-3 { width: 380px; height: 380px; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-text {
        padding-right: 0;
    }

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

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

    .project-card.featured {
        grid-column: 1;
    }

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

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-section {
        padding: 100px var(--space-md) var(--space-2xl);
        min-height: auto;
    }

    .profile-frame {
        width: 200px;
        height: 200px;
    }

    .ring-1 { width: 250px; height: 250px; }
    .ring-2 { width: 280px; height: 280px; }
    .ring-3 { width: 310px; height: 310px; }

    .floating-badge {
        font-size: 0.65rem;
        padding: 6px 10px;
    }

    .badge-1, .badge-3 { left: auto; right: auto; }

    .about-highlights {
        grid-template-columns: 1fr;
    }

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

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

    .cert-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.7rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: var(--space-md);
    }

    .stat-divider {
        height: 30px;
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .scroll-indicator {
        display: none;
    }

    #cursor-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: var(--space-sm);
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .cert-card {
        padding: var(--space-md);
    }
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* ── Preloader ─────────────────────────────────────────────── */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-deepest);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.preloader-logo {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-bracket {
    color: var(--primary);
    font-weight: 300;
}

.preloader-text {
    background: linear-gradient(135deg, var(--text-primary), var(--primary-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--border-subtle);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-md);
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.preloader-status {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.preloader-dots {
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ── Custom Cursor ─────────────────────────────────────────── */
#cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
    mix-blend-mode: difference;
}

#cursor-dot.hovering {
    width: 12px;
    height: 12px;
    background: var(--accent);
}

#cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(0, 180, 216, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

#cursor-ring.hovering {
    width: 50px;
    height: 50px;
    border-color: rgba(240, 165, 0, 0.5);
}

/* ── Section Dividers ──────────────────────────────────────── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), var(--primary-900), var(--border-light), transparent);
    margin: 0;
}

/* ── Nav Resume Button ─────────────────────────────────────── */
.btn-nav-resume {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: var(--bg-deepest);
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-smooth);
    font-weight: 600;
}

.btn-nav-resume:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.resume-link {
    color: var(--primary) !important;
    font-weight: 600;
}

/* ── Proficiency Bars ──────────────────────────────────────── */
.proficiency-section {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border-subtle);
}

.proficiency-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.proficiency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg) var(--space-3xl);
}

.proficiency-item {
    margin-bottom: var(--space-sm);
}

.proficiency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.proficiency-name {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.proficiency-percent {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-300);
}

.proficiency-track {
    width: 100%;
    height: 6px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.proficiency-fill {
    height: 100%;
    width: 0%;
    background: var(--fill-color, var(--primary));
    border-radius: var(--radius-full);
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 12px color-mix(in srgb, var(--fill-color, var(--primary)) 40%, transparent);
}

.proficiency-fill.animate {
    /* Width set via JS */
}

/* ── What I'm Building Section ─────────────────────────────── */
.building-section {
    background: var(--bg-deep);
}

.building-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.building-card {
    padding: var(--space-xl);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.building-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.building-card:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: var(--glow-primary);
}

.building-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-md);
}

.building-status.active {
    background: rgba(0, 180, 216, 0.1);
    color: var(--primary);
}

.building-status.learning {
    background: rgba(240, 165, 0, 0.1);
    color: var(--accent);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.building-status.active .status-dot {
    background: var(--primary);
}

.building-status.learning .status-dot {
    background: var(--accent);
}

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

.building-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.building-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.building-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.building-progress-bar {
    width: var(--progress);
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    transition: width 1.5s var(--ease-smooth);
}

.building-progress-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* ── Contact Form ──────────────────────────────────────────── */
.contact-form-wrap {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.form-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--duration-fast) var(--ease-smooth);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.form-submit {
    align-self: flex-start;
}

/* ── Back to Top Button ────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--duration-normal) var(--ease-smooth);
    z-index: 900;
    box-shadow: var(--glow-card);
}

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

.back-to-top:hover {
    background: rgba(0, 180, 216, 0.15);
    border-color: var(--primary);
    transform: translateY(-4px);
}

/* ── Responsive for new features ───────────────────────────── */
@media (max-width: 1024px) {
    .proficiency-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    #cursor-dot, #cursor-ring {
        display: none;
    }

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

    .btn-nav-resume {
        display: none;
    }
}
