/* ===================================
   Custom Properties
   =================================== */
:root {
    --bg-primary: #0a0f1e;
    --bg-secondary: #0d1526;
    --bg-card: #111827;
    --bg-card-hover: #162035;
    --accent: #0ea5e9;
    --accent-glow: rgba(14, 165, 233, 0.12);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --border: rgba(255, 255, 255, 0.07);
    --border-accent: rgba(14, 165, 233, 0.3);
    --success: #10b981;
    --nav-height: 70px;
    --container-max: 1100px;
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

section { padding: 100px 0; }

/* ===================================
   Navigation
   =================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background-color: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 500;
    color: var(--accent);
    margin-right: 16px;
}

.nav-logo span {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.nav-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    transition: var(--transition);
}

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

.btn-nav {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--border-accent);
    color: var(--accent);
    margin-left: 16px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-nav:hover {
    background-color: var(--accent-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #3b82f6);
    color: #fff;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

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

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

.btn-outline:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ===================================
   Section Headers
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(28px, 5vw, 42px);
    color: var(--text-primary);
}

/* ===================================
   Tags
   =================================== */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

.tag--blue   { background: rgba(14, 165, 233, 0.12);  color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.2); }
.tag--orange { background: rgba(249, 115, 22, 0.12);   color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.2); }
.tag--purple { background: rgba(168, 85, 247, 0.12);   color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.2); }
.tag--green  { background: rgba(34, 197, 94, 0.12);    color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.2); }
.tag--sm     { background: rgba(255,255,255,0.05); color: var(--text-secondary); border: 1px solid var(--border); font-size: 11px; padding: 3px 8px; }

/* ===================================
   Hero
   =================================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 165, 233, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(99, 102, 241, 0.05) 0%, transparent 70%),
        var(--bg-primary);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* hero-content layout now defined in the animations block above */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #34d399;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px #10b981; }
    50%       { opacity: 0.6; box-shadow: 0 0 4px #10b981; }
}

.hero-name {
    font-size: clamp(44px, 8vw, 80px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(18px, 3.5vw, 26px);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-title .accent { color: var(--accent); }

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.75;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-glow);
    border-color: var(--border-accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}

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

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

/* ===================================
   About
   =================================== */
#about { background: var(--bg-secondary); }

.about-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 64px;
    align-items: start;
}

.about-avatar {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8px;
    width: 200px;
    flex-shrink: 0;
}

.avatar-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
}

.avatar-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    max-width: 100%;
}

.avatar-outer {
    position: relative;
    width: 150px;
    height: 150px;
}

.avatar-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0.25;
    pointer-events: none;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-intro {
    font-size: 17px !important;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat { text-align: center; }

.stat-number {
    display: inline;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-plus {
    font-size: 24px;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 6px;
}

/* ===================================
   Skills
   =================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.skill-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.1), 0 8px 32px rgba(0,0,0,0.3);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.skill-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-icon--blue   { background: rgba(14, 165, 233, 0.12); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.2); }
.skill-icon--orange { background: rgba(249, 115, 22, 0.12);  color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.2); }
.skill-icon--purple { background: rgba(168, 85, 247, 0.12);  color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.2); }
.skill-icon--green  { background: rgba(34, 197, 94, 0.12);   color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.2); }

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

/* ===================================
   Experience Timeline
   =================================== */
#experience { background: var(--bg-secondary); }

.timeline {
    position: relative;
    padding-left: 36px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(14, 165, 233, 0.5), transparent);
}

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

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

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.timeline-dot--muted {
    background: var(--text-muted);
    box-shadow: none;
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

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

.timeline-card:hover {
    border-color: var(--border-accent);
}

.timeline-card.featured {
    border-color: rgba(14, 165, 233, 0.15);
}

.timeline-card.featured:hover {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.05);
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.timeline-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.company {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.badge-current {
    display: inline-flex;
    padding: 3px 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: #34d399;
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.timeline-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-style: italic;
}

.timeline-bullets {
    padding-left: 18px;
    margin-bottom: 0;
}

.timeline-bullets li {
    list-style: disc;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 6px;
}

.timeline-bullets li::marker { color: var(--accent); }

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.timeline-card--compact { padding: 24px; }

.timeline-card--compact h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.text-muted {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85em;
}

.early-roles {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.early-role {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.early-role strong { color: var(--text-primary); }

.role-tags {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
}

/* ===================================
   Certifications & Education
   =================================== */
.qual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.qual-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.qual-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}

.cert-card { border-color: rgba(249, 115, 22, 0.15); }
.cert-card:hover { border-color: rgba(249, 115, 22, 0.35); }

.cert-icon, .edu-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.cert-icon {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: #fb923c;
}

.edu-icon {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: #38bdf8;
}

.qual-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.qual-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.qual-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.qual-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.cert-badge {
    display: inline-flex;
    padding: 4px 12px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: #fb923c;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* ===================================
   Contact
   =================================== */
.contact-wrapper {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 48px;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 48px;
    text-align: left;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-link:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}

.contact-link--static { cursor: default; }
.contact-link--static:hover { border-color: var(--border); background: var(--bg-card); }

.contact-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-link-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3px;
}

.contact-link-value {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
}

.contact-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Footer
   =================================== */
footer {
    background: var(--bg-secondary);
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    color: var(--accent);
}

.footer-logo span { color: var(--text-muted); font-size: 13px; }

.footer-text { font-size: 13px; color: var(--text-secondary); }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* ===================================
   Scroll Animations
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive — Tablet
   =================================== */
@media (max-width: 900px) {
    .about-stats        { grid-template-columns: repeat(2, 1fr); }
    .skills-grid        { grid-template-columns: 1fr; }
    .qual-grid          { grid-template-columns: 1fr; }
    .services-grid      { grid-template-columns: repeat(2, 1fr); }
    .projects-grid      { grid-template-columns: 1fr; }
    .testimonials-grid  { grid-template-columns: 1fr; }
}

/* ===================================
   Responsive — Mobile
   =================================== */
@media (max-width: 768px) {
    section { padding: 72px 0; }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 15, 30, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        margin-left: 0;
        z-index: 99;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link { padding: 12px 16px; font-size: 15px; }
    .btn-nav  { display: none; }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

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

    .about-avatar { justify-content: center; }

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

    .hero-right { display: none; }

    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { justify-content: center; }

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

    .timeline { padding-left: 24px; }
    .timeline-dot { left: -20px; }

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

    .timeline-card-header { flex-direction: column; gap: 10px; }
}

/* ===================================
   Particles Canvas
   =================================== */
#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===================================
   Typewriter
   =================================== */
#typewriter-text {
    color: var(--accent);
}

.typewriter-cursor {
    color: var(--accent);
    font-weight: 300;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

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

/* ===================================
   Hero two-column layout
   =================================== */
.hero-content {
    position: relative;
    z-index: 1;
    padding-top: var(--nav-height);
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: center;
}

.hero-left { display: flex; flex-direction: column; }

/* ===================================
   Terminal widget
   =================================== */
.hero-terminal {
    background: rgba(10, 15, 30, 0.85);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px rgba(14,165,233,0.06);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.7;
}

.terminal-header {
    background: rgba(255,255,255,0.04);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

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

.terminal-title {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 10px;
    letter-spacing: 0.02em;
}

.terminal-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
}

.terminal-line { line-height: 1.75; }
.t-space       { height: 8px; }

.t-prompt { color: #28c840;     margin-right: 10px; }
.t-cmd    { color: #38bdf8; }
.t-output { color: var(--text-secondary); padding-left: 20px; }
.t-indent { padding-left: 20px; color: var(--text-secondary); }
.t-key    { color: #c084fc; }

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

/* ===================================
   Tech logo marquee
   =================================== */
.tech-marquee {
    overflow: hidden;
    margin-bottom: 56px;
    padding: 16px 0;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.tech-marquee-track {
    display: flex;
    gap: 44px;
    align-items: center;
    width: max-content;
    animation: marquee 22s linear infinite;
}

.tech-marquee-track i {
    font-size: 42px;
    opacity: 0.55;
    transition: opacity 0.25s, transform 0.25s;
    cursor: default;
}

.tech-marquee-track i:hover {
    opacity: 1;
    transform: translateY(-4px) scale(1.15);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===================================
   Devicon icons inside skill tags
   =================================== */
.tag i {
    font-size: 15px;
    margin-right: 6px;
    vertical-align: middle;
    line-height: 1;
}

/* ===================================
   Featured card glow animation
   =================================== */
@keyframes card-glow {
    0%, 100% {
        border-color: rgba(14, 165, 233, 0.2);
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.04);
    }
    50% {
        border-color: rgba(14, 165, 233, 0.55);
        box-shadow: 0 0 50px rgba(14, 165, 233, 0.14), 0 0 100px rgba(99, 102, 241, 0.06);
    }
}

.timeline-card.featured {
    animation: card-glow 3.5s ease-in-out infinite;
}

.timeline-card.featured:hover {
    animation: none;
    border-color: rgba(14, 165, 233, 0.55);
    box-shadow: 0 0 50px rgba(14, 165, 233, 0.15);
}

/* ===================================
   Progress Bar
   =================================== */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(to right, var(--accent), #6366f1);
    z-index: 200;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ===================================
   Active nav link — stronger style
   =================================== */
.nav-link.active {
    color: var(--accent) !important;
    background-color: rgba(14, 165, 233, 0.1) !important;
}

/* ===================================
   Services Section
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon--blue   { background: rgba(14, 165, 233, 0.12); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.2); }
.service-icon--orange { background: rgba(249, 115, 22, 0.12);  color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.2); }
.service-icon--purple { background: rgba(168, 85, 247, 0.12);  color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.2); }
.service-icon--green  { background: rgba(34, 197, 94, 0.12);   color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.2); }

.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   Projects Section
   =================================== */
#projects { background: var(--bg-secondary); }

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

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

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

.project-icons i {
    font-size: 28px;
    opacity: 0.85;
}

.project-company {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.05em;
}

.project-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.project-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.project-results {
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.project-results li {
    list-style: disc;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.project-results li::marker { color: var(--accent); }

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}

.testimonial-quote {
    font-family: Georgia, serif;
    font-size: 64px;
    line-height: 0.6;
    color: var(--accent);
    opacity: 0.4;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-role {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===================================
   Copy email button
   =================================== */
#copy-email {
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

#copy-email.copied {
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.08);
}

/* ===================================
   Terminal tilt
   =================================== */
.hero-terminal {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

/* ===================================
   Scroll to Top Button
   =================================== */
#scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 99;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    transition: var(--transition);
    pointer-events: none;
}

#scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

#scroll-top:hover {
    background: var(--accent-glow);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .hero-name { font-size: 38px; }
    .about-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .hero-scroll { display: none; }
}
