/* =============================================
   ARYAN KACHA PORTFOLIO — style.css
   Theme: Cyberpunk Glassmorphism
   Fonts: Syne (display) + JetBrains Mono (code)
   ============================================= */

/* ---- CSS Variables ---- */
:root {
    --bg: #060608;
    --bg-2: #0d0d12;
    --card-bg: rgba(255,255,255,0.04);
    --card-border: rgba(255,255,255,0.08);

    /* Neon accent palette */
    --accent: #00f5c4;         /* cyan-green primary */
    --accent-2: #7b5cf5;       /* violet secondary */
    --accent-3: #f05eff;       /* magenta tertiary */
    --accent-glow: rgba(0, 245, 196, 0.18);

    --text-main: #e8eaf0;
    --text-dim: #737590;
    --text-code: #a8b5d8;

    --border: rgba(255,255,255,0.07);
    --nav-height: 72px;

    /* Glow sizes */
    --glow-sm: 0 0 12px rgba(0,245,196,0.3);
    --glow-md: 0 0 30px rgba(0,245,196,0.2);
    --glow-lg: 0 0 60px rgba(0,245,196,0.15);
}

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

/* ---- Base ---- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Syne', sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    cursor: none; /* we use custom cursor */
}

/* Fallback cursor on touch devices */
@media (hover: none) {
    body { cursor: auto; }
    .cursor-dot, .cursor-ring { display: none; }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ---- Scanline overlay ---- */
.scanlines {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0,0,0,0.06) 3px,
        rgba(0,0,0,0.06) 4px
    );
    opacity: 0.35;
}

/* ---- Custom Cursor ---- */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: var(--glow-sm);
}

.cursor-ring {
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    opacity: 0.5;
    transition: width 0.2s, height 0.2s, opacity 0.2s, border-color 0.2s;
}

/* Cursor ring expands on hover over interactive elements */
body.cursor-hover .cursor-ring {
    width: 44px;
    height: 44px;
    opacity: 0.8;
    border-color: var(--accent-2);
}

/* =============================================
   LAYOUT HELPERS
   ============================================= */

.container {
    padding: 110px 8%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Glass card utility */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 14px;
}

/* Section header with number + line */
.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 56px;
}

.section-num {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.section-title::after {
    content: "";
    display: block;  /* we rely on flexbox row via section-header */
}

/* The line extending after the title */
.section-header::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}

/* Accent text */
.accent { color: var(--accent); }

/* =============================================
   SCROLL REVEAL — base states
   JS will toggle .revealed
   ============================================= */
.section-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* =============================================
   HEADER / NAV
   ============================================= */
header {
    height: var(--nav-height);
    background: rgba(6,6,8,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

header.scrolled {
    background: rgba(6,6,8,0.95);
    box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

nav {
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
}

/* Logo */
.logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.logo-cursor {
    color: var(--accent);
    animation: blink 1.1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links a {
    position: relative;
    color: var(--text-dim);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 6px 14px;
    border-radius: 6px;
    transition: color 0.3s;
    overflow: hidden;
}

.nav-links a::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transform: translateY(100%);
    transition: transform 0.25s ease;
}

.nav-links a:hover {
    color: transparent;
}

.nav-links a:hover::before {
    transform: translateY(0);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: 0.3s;
    display: block;
}

/* Mobile nav dropdown */
.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 16px 8%;
    border-top: 1px solid var(--border);
    background: rgba(6,6,8,0.97);
}

.nav-mobile a {
    padding: 12px 0;
    color: var(--text-dim);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    transition: color 0.3s;
}

.nav-mobile a:hover { color: var(--accent); }
.nav-mobile.open { display: flex; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: var(--nav-height) 8% 80px;
    overflow: hidden;
}

/* Animated grid background */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,245,196,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,245,196,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
    animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
    to { background-position: 60px 60px; }
}

/* Floating orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 8s ease-in-out infinite;
    pointer-events: none;
}

.orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,245,196,0.12), transparent 70%);
    top: -100px; right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(123,92,245,0.12), transparent 70%);
    bottom: 50px; left: -80px;
    animation-delay: -4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

/* Hero layout */
.hero-content {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-left { flex: 1; }
.hero-right { flex-shrink: 0; }

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(0,245,196,0.08);
    border: 1px solid rgba(0,245,196,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.04em;
}

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

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,245,196,0.6); }
    50% { box-shadow: 0 0 0 6px rgba(0,245,196,0); }
}

.pre-title {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

/* Name with glitch effect */
.hero-name {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.highlight {
    color: var(--accent);
    display: inline-block;
    position: relative;
}

/* Glitch animation on name */
.glitch {
    animation: glitchIdle 6s infinite;
}

.glitch:hover {
    animation: glitchActive 0.4s steps(2) forwards;
}

@keyframes glitchIdle {
    0%, 92%, 100% { text-shadow: none; }
    93% { text-shadow: -2px 0 var(--accent-2), 2px 0 var(--accent-3); }
    94% { text-shadow: 2px 0 var(--accent-2), -2px 0 var(--accent-3); }
    95% { text-shadow: none; }
    96% { text-shadow: -2px 0 var(--accent-3), 2px 0 var(--accent-2); }
    97% { text-shadow: none; }
}

@keyframes glitchActive {
    0%  { text-shadow: -3px 0 var(--accent-2), 3px 0 var(--accent-3); transform: skewX(-2deg); }
    25% { text-shadow: 3px 0 var(--accent-3), -3px 0 var(--accent-2); transform: skewX(2deg); }
    50% { text-shadow: -3px 0 var(--accent-2); transform: skewX(0); }
    100% { text-shadow: none; transform: skewX(0); }
}

/* Typing effect row */
.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.typed-prefix { color: var(--accent); }

#typedText {
    color: var(--text-main);
    font-weight: 400;
}

.typed-cursor {
    color: var(--accent);
    animation: blink 0.8s step-end infinite;
}

.hero-desc {
    max-width: 540px;
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 36px;
    line-height: 1.75;
}

/* CTA buttons */
.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

/* Base button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
    border: none;
    white-space: nowrap;
}

.btn.primary {
    background: var(--accent);
    color: #060608;
    box-shadow: 0 0 20px rgba(0,245,196,0.3);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0,245,196,0.5);
}

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

.btn.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

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

.btn-arrow { transition: transform 0.25s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Hero stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-divider {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* ---- Avatar ---- */
.avatar-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(0,245,196,0.15), transparent 70%);
    border-radius: 50%;
    animation: orbFloat 5s ease-in-out infinite;
}

.avatar-frame {
    width: 180px;
    height: 180px;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid rgba(0,245,196,0.3);
    background: var(--bg-2);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 40px rgba(0,245,196,0.15);
}

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

/* Rotating rings */
.avatar-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    animation: ringRotate 10s linear infinite;
    pointer-events: none;
}

.ring-1 {
    width: 220px; height: 220px;
    border-color: rgba(0,245,196,0.1);
}

.ring-2 {
    width: 260px; height: 260px;
    border-color: rgba(123,92,245,0.08);
    animation-direction: reverse;
    animation-duration: 16s;
}

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

/* Floating tech tags */
.float-tag {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--accent);
    background: rgba(0,245,196,0.08);
    border: 1px solid rgba(0,245,196,0.2);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 2;
    animation: tagFloat 4s ease-in-out infinite;
}

.tag-tl { top: 0; left: -30px; animation-delay: 0s; }
.tag-tr { top: 20px; right: -30px; animation-delay: -1s; }
.tag-bl { bottom: 20px; left: -30px; animation-delay: -2s; }
.tag-br { bottom: 0; right: -30px; animation-delay: -3s; }

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 1;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

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

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

.about-text-card {
    padding: 36px;
}

.about-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-text-card p { color: var(--text-dim); }
.about-text-card p + p { margin-top: 14px; }

.about-text-card strong { color: var(--text-main); }

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.about-tag {
    font-size: 0.8rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--card-border);
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--text-dim);
    transition: border-color 0.3s, color 0.3s;
}

.about-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Code block in about */
.code-block { padding: 0; overflow: hidden; }

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--card-border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.code-filename {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: auto;
}

.code-body {
    padding: 22px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.9;
    color: var(--text-code);
    overflow-x: auto;
}

.code-body .key  { color: #7b5cf5; }
.code-body .str  { color: var(--accent); }
.code-body .bool { color: #f05eff; }

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

.skill-category {
    padding: 30px;
}

.skill-cat-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-bars { display: flex; flex-direction: column; gap: 18px; }

.skill-bar-item {}

.skill-bar-label {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.skill-bar-track {
    height: 3px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0; /* animated by JS */
    background: linear-gradient(to right, var(--accent), var(--accent-2));
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(0,245,196,0.4);
}

/* Badge row */
.skill-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0,245,196,0.2);
    color: var(--accent);
    background: rgba(0,245,196,0.05);
    transition: all 0.25s;
    cursor: default;
}

.skill-badge:hover {
    background: rgba(0,245,196,0.12);
    box-shadow: var(--glow-sm);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* =============================================
   PROJECTS SECTION
   ============================================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease,
                border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(0,245,196,0.08);
    border-color: rgba(0,245,196,0.2);
}

/* Project image */
.project-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: saturate(0.6) brightness(0.7);
}

.project-card:hover .project-img {
    transform: scale(1.08);
    filter: saturate(0.8) brightness(0.6);
}

.project-img-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-img-overlay { opacity: 1; }

.overlay-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 10px 22px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 6px;
    transition: 0.25s;
}

.overlay-btn:hover {
    background: var(--accent);
    color: #060608;
}

/* Project body */
.project-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Project type tags */
.project-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid;
}

.project-tag.flagship { color: #f0c020; border-color: rgba(240,192,32,0.4); background: rgba(240,192,32,0.08); }
.project-tag.backend  { color: var(--accent-2); border-color: rgba(123,92,245,0.4); background: rgba(123,92,245,0.08); }
.project-tag.ai       { color: var(--accent-3); border-color: rgba(240,94,255,0.4); background: rgba(240,94,255,0.08); }

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

.icon-link {
    color: var(--text-dim);
    transition: color 0.25s, transform 0.25s;
    display: flex;
    align-items: center;
}

.icon-link:hover { color: var(--accent); transform: translateY(-2px); }

.project-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.project-desc {
    font-size: 0.87rem;
    color: var(--text-dim);
    line-height: 1.65;
    flex-grow: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    color: var(--text-dim);
    border: 1px solid var(--border);
}

/* Section footer CTA */
.section-footer {
    padding: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    transition: border-color 0.3s;
}

.section-footer:hover { border-color: rgba(0,245,196,0.2); }

.section-footer p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* =============================================
   CERTIFICATIONS
   ============================================= */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cert-card {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.cert-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,245,196,0.25);
}

.cert-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom right, rgba(0,245,196,0.06), transparent 70%);
    pointer-events: none;
}

.cert-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cert-google    { background: rgba(66,133,244,0.12); color: #4285f4; border: 1px solid rgba(66,133,244,0.25); }
.cert-microsoft { background: rgba(0,120,212,0.12);  color: #0078d4; border: 1px solid rgba(0,120,212,0.25); }
.cert-anthropic { background: rgba(240,94,255,0.10); color: var(--accent-3); border: 1px solid rgba(240,94,255,0.25); }
.cert-ibm       { background: rgba(0,162,255,0.10);  color: #00a2ff; border: 1px solid rgba(0,162,255,0.25); }

.cert-info h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 4px; }
.cert-info p  { font-size: 0.8rem; color: var(--text-dim); line-height: 1.4; }

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

/* Vertical line */
.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), rgba(0,245,196,0.1));
}

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

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 20px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    position: relative;
    z-index: 1;
}

.dot-ring {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(0,245,196,0.3);
    border-radius: 50%;
    animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0; }
}

.timeline-card {
    padding: 26px 30px;
    transition: border-color 0.3s, transform 0.3s;
}

.timeline-card:hover {
    border-color: rgba(0,245,196,0.2);
    transform: translateX(6px);
}

.tl-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.tl-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.tl-company {
    font-size: 0.82rem;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 4px;
}

.tl-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    padding: 4px 12px;
    border-radius: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tl-badge.active  { color: var(--accent); border: 1px solid rgba(0,245,196,0.3); background: rgba(0,245,196,0.07); }
.tl-badge.virtual { color: var(--accent-2); border: 1px solid rgba(123,92,245,0.3); background: rgba(123,92,245,0.07); }

.tl-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tl-points li {
    font-size: 0.88rem;
    color: var(--text-dim);
    padding-left: 18px;
    position: relative;
    line-height: 1.6;
}

.tl-points li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.tl-desc {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.65;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 36px;
    align-items: start;
}

.contact-intro {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.75;
    margin-bottom: 30px;
}

.contact-items { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 22px;
    transition: border-color 0.3s;
}

.contact-item:hover { border-color: rgba(0,245,196,0.2); }

.contact-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

.contact-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 6px;
}

.contact-item p { font-size: 0.92rem; color: var(--text-dim); }

.contact-link {
    color: var(--text-main);
    transition: color 0.25s;
}

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

.social-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.social-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    padding: 5px 14px;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: var(--text-dim);
    transition: 0.25s;
}

.social-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Contact form */
.contact-form-wrap { padding: 36px; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.form-group input,
.form-group textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 13px 16px;
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: vertical;
}

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

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

.form-note {
    font-size: 0.82rem;
    color: var(--accent);
    text-align: center;
    min-height: 20px;
    font-family: 'JetBrains Mono', monospace;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    border-top: 1px solid var(--border);
    padding: 30px 8%;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-dim);
    transition: color 0.25s;
}

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

/* =============================================
   RESPONSIVE / MOBILE
   ============================================= */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        gap: 40px;
        text-align: center;
    }

    .hero-left { display: flex; flex-direction: column; align-items: center; }
    .hero-desc { text-align: left; }
    .status-badge { margin-left: auto; margin-right: auto; }

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

@media (max-width: 768px) {
    .container { padding: 80px 6%; }

    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }

    .hero-right { display: none; } /* hide avatar on small screens */

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

    .section-footer { flex-direction: column; text-align: center; }

    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-name { font-size: 2rem; }
    .cert-grid { grid-template-columns: 1fr; }
}


/* Formspree banners — hidden by default, shown by the SDK */
.form-banner {
    display: none;
    padding: 14px 18px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    margin-bottom: 20px;
}

.form-success {
    color: var(--accent);
    background: rgba(0, 245, 196, 0.07);
    border: 1px solid rgba(0, 245, 196, 0.25);
}

.form-error {
    color: #f05eff;
    background: rgba(240, 94, 255, 0.07);
    border: 1px solid rgba(240, 94, 255, 0.25);
}

.field-error {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #f05eff;
    margin-top: 4px;
    display: block;
    min-height: 16px;
}

/* Formspree adds aria-invalid on bad fields — style it */
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: rgba(240, 94, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(240, 94, 255, 0.1);
}
