/* =========================================================
   Ravi Teja A — Portfolio
   Premium dark theme · cyan/violet/gold accents
   ========================================================= */

:root {
    --bg-primary: #0B1120;
    --bg-secondary: #0F172A;
    --bg-tertiary: #1E293B;
    --bg-card: rgba(255, 255, 255, 0.035);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-subtle: rgba(148, 163, 184, 0.12);
    --border-accent: rgba(34, 211, 238, 0.35);

    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-tertiary: #94A3B8;
    --text-muted: #64748B;

    --accent-cyan: #22D3EE;
    --accent-cyan-deep: #06B6D4;
    --accent-violet: #A78BFA;
    --accent-gold: #F59E0B;
    --accent-emerald: #10B981;
    --accent-rose: #FB7185;

    --gradient-primary: linear-gradient(135deg, #22D3EE 0%, #818CF8 100%);
    --gradient-warm: linear-gradient(135deg, #F59E0B 0%, #FB7185 100%);
    --gradient-mesh: linear-gradient(135deg, #22D3EE 0%, #A78BFA 50%, #F59E0B 100%);

    --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.25);
    --shadow-card: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --shadow-elevated: 0 20px 60px -20px rgba(34, 211, 238, 0.35);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ---------- Sections ---------- */
.section {
    padding: 120px 0;
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(34, 211, 238, 0.05), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.section-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 4rem;
}

/* ---------- Animated background ---------- */
.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: float 22s infinite ease-in-out;
}
.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    top: -200px; left: -200px;
}
.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--accent-violet) 0%, transparent 70%);
    bottom: -150px; right: -150px;
    animation-delay: -7s;
}
.orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    top: 50%; right: 20%;
    animation-delay: -14s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(60px, -60px) rotate(120deg); }
    66% { transform: translate(-40px, 40px) rotate(240deg); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--gradient-primary);
    z-index: 1100;
    box-shadow: 0 0 12px var(--accent-cyan);
    transition: width 0.1s linear;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    background: rgba(11, 17, 32, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.navbar.scrolled {
    padding: 0.85rem 0;
    background: rgba(11, 17, 32, 0.85);
    border-bottom-color: var(--border-subtle);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }

.nav-brand {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    letter-spacing: -0.05em;
    box-shadow: var(--shadow-glow);
    transition: transform 0.3s var(--ease);
}
.nav-brand:hover { transform: rotate(-6deg) scale(1.05); }

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s var(--ease);
    border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
    display: flex;
    gap: 2.25rem;
    align-items: center;
}
.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s var(--ease);
    position: relative;
    padding: 0.4rem 0;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s var(--ease);
    border-radius: 2px;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--accent-cyan); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

/* ---------- Hero ---------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

/* Portrait */
.hero-portrait {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    animation: fadeInUp 0.8s var(--ease) 0.3s backwards;
}
.portrait-frame {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-mesh);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.05),
                0 25px 60px -15px rgba(34, 211, 238, 0.4),
                0 0 80px rgba(167, 139, 250, 0.25);
}
.portrait-frame::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px dashed rgba(34, 211, 238, 0.25);
    animation: spin 30s linear infinite;
    pointer-events: none;
}
.portrait-frame img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-secondary);
    display: block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.portrait-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    color: var(--accent-emerald);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
}
.portrait-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: statusPulse 2s ease-in-out infinite;
}

.hero-greeting {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    animation: fadeInUp 0.6s var(--ease);
}

.hero-name {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    background: var(--gradient-mesh);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s var(--ease) 0.1s backwards, gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s var(--ease) 0.2s backwards;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.hero-title-prefix { color: var(--accent-cyan); }
.hero-cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--accent-cyan);
    margin-left: 4px;
    animation: blink 1s steps(2) infinite;
    vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    max-width: 620px;
    animation: fadeInUp 0.6s var(--ease) 0.3s backwards;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-tertiary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.6s var(--ease) 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s var(--ease) 0.5s backwards;
}

.btn {
    padding: 0.95rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
    border: 1.5px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}
.btn i { font-size: 0.85rem; transition: transform 0.3s var(--ease); }
.btn:hover i { transform: translateX(4px); }

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(34, 211, 238, 0.5); }

.btn-secondary {
    border-color: rgba(34, 211, 238, 0.4);
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.05);
}
.btn-secondary:hover { background: rgba(34, 211, 238, 0.12); border-color: var(--accent-cyan); transform: translateY(-2px); }

.hero-social {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.6s var(--ease) 0.6s backwards;
}

.social-link {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: 0.3s var(--ease);
    backdrop-filter: blur(8px);
}
.social-link:hover {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: transparent;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    animation: fadeInUp 0.6s var(--ease) 0.7s backwards;
}

.stat-item {
    text-align: left;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.stat-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease);
}
.stat-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}
.stat-item:hover::before { transform: translateX(0); }

.stat-item i {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    display: block;
}
.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
}
.stat-label {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: block;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s var(--ease);
    animation: scrollPulse 2.5s ease-in-out infinite;
}
.scroll-indicator:hover { color: var(--accent-cyan); }
@keyframes scrollPulse {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
    50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* ---------- About ---------- */
.about-content {
    max-width: 820px;
    margin: 0 auto 4rem;
}
.about-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.85;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.highlight-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: 0.3s var(--ease);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.highlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    z-index: -1;
}
.highlight-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card);
}
.highlight-card i {
    font-size: 1.75rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    display: inline-flex;
    width: 52px; height: 52px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
}
.highlight-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.highlight-card p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------- Timeline (Experience) ---------- */
.timeline {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    padding-left: 4.5rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, var(--border-accent) 8%, var(--border-accent) 92%, transparent 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -4.5rem;
    top: 0;
    width: 50px;
    height: 50px;
    transform: translateX(-1px);
}
.timeline-logo {
    width: 50px; height: 50px;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent, var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 0 4px var(--bg-primary), 0 8px 24px rgba(0,0,0,0.5);
    padding: 6px;
}
.timeline-logo img {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.logo-fallback {
    font-size: 1.6rem;
    line-height: 1;
}
.logo-fallback-icon {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}
.cert-logo .logo-fallback-icon { font-size: 1.4rem; }

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--accent, var(--accent-cyan));
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    backdrop-filter: blur(10px);
    transition: 0.3s var(--ease);
}
.timeline-item:hover .timeline-content {
    transform: translateX(4px);
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    border-left-color: var(--accent, var(--accent-cyan));
    box-shadow: var(--shadow-card);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.exp-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}
.exp-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.95rem;
}
.exp-company {
    color: var(--accent-cyan);
    font-weight: 600;
    transition: color 0.3s var(--ease);
}
.exp-company i { font-size: 0.7rem; opacity: 0.6; margin-left: 4px; }
.exp-company:hover { color: var(--accent-cyan-deep); }
.exp-dot { color: var(--text-muted); }
.exp-location { font-size: 0.9rem; }
.exp-location i { font-size: 0.8rem; margin-right: 4px; }

.exp-period {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    white-space: nowrap;
}
.exp-period i { margin-right: 6px; opacity: 0.7; }

.exp-bullets {
    margin-bottom: 1.25rem;
}
.exp-bullets li {
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.7;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.6rem;
}
.exp-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent, var(--accent-cyan));
    box-shadow: 0 0 8px var(--accent, var(--accent-cyan));
}

.exp-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tech-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: var(--accent-cyan);
    border-radius: 6px;
}

/* ---------- Projects ---------- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.work-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: 0.3s var(--ease);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.work-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.work-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-card);
}
.work-card:hover::before { transform: scaleX(1); }

.work-card-featured {
    border-color: rgba(167, 139, 250, 0.3);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.04), rgba(167, 139, 250, 0.04));
}
.work-card-featured::before { background: var(--gradient-mesh); transform: scaleX(1); }

.work-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.work-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-cyan);
}
.work-card-featured .work-icon {
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.3);
    color: var(--accent-violet);
}
.work-links { display: flex; gap: 0.5rem; }
.work-link {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: 0.3s var(--ease);
}
.work-link:hover { color: var(--accent-cyan); border-color: var(--border-accent); transform: translateY(-2px); }

.work-category {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}
.work-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.work-description {
    color: var(--text-tertiary);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
}
.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tag {
    padding: 0.3rem 0.75rem;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--accent-cyan);
    font-family: 'JetBrains Mono', monospace;
}

/* ---------- Skills ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: 0.3s var(--ease);
}
.skill-category:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}
.skill-category-header i {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.skill-category-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.skill-tag {
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    transition: 0.2s var(--ease);
}
.skill-tag:hover {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--accent-cyan);
}

/* ---------- Education ---------- */
.education-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.edu-card, .cert-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: 0.3s var(--ease);
    margin-bottom: 1rem;
}
.edu-card:hover, .cert-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}

.edu-logo, .cert-logo {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
}
.edu-logo img, .cert-logo img {
    width: 100%; height: 100%;
    object-fit: contain;
}

.edu-degree {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}
.edu-school { color: var(--accent-cyan); font-weight: 600; margin-bottom: 0.4rem; }
.edu-period {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}
.edu-period i { margin-right: 6px; opacity: 0.7; }
.edu-desc { color: var(--text-tertiary); font-size: 0.92rem; line-height: 1.6; }

.cert-header {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.cert-header i { color: var(--accent-gold); }
.cert-card { padding: 1.25rem; }
.cert-logo { width: 48px; height: 48px; }
.cert-name {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    font-weight: 600;
}
.cert-issuer { color: var(--text-tertiary); font-size: 0.88rem; }

/* ---------- Contact ---------- */
.contact-info {
    max-width: 560px;
    margin: 0 auto 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.contact-item {
    font-size: 1.05rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.contact-item i {
    color: var(--accent-cyan);
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.contact-item a { color: var(--text-primary); transition: color 0.3s var(--ease); }
.contact-item a:hover { color: var(--accent-cyan); }
.contact-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 0.4rem 0.85rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 50px;
    color: var(--accent-emerald);
}
.contact-pill .status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.contact-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 0 2rem;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: var(--gradient-primary);
}
.footer p { color: var(--text-tertiary); margin-bottom: 0.75rem; font-size: 0.92rem; }
#footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}
#footer-links a {
    color: var(--text-tertiary);
    transition: color 0.3s var(--ease);
    font-size: 0.9rem;
}
#footer-links a:hover { color: var(--accent-cyan); }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: var(--bg-primary);
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s var(--ease);
    box-shadow: var(--shadow-glow);
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(34, 211, 238, 0.5); }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-portrait { order: -1; }
    .portrait-frame { width: 240px; height: 240px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: 560px; margin: 0 auto; }
    .education-grid { grid-template-columns: 1fr; }
}

@media (max-width: 968px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 72px; left: -100%;
        width: 280px;
        height: calc(100vh - 72px);
        background: rgba(11, 17, 32, 0.96);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transition: left 0.3s var(--ease);
        border-right: 1px solid var(--border-subtle);
    }
    .nav-menu.active { left: 0; }
    .nav-menu li { width: 100%; }
    .nav-menu a { display: block; padding: 0.75rem 0; font-size: 1.05rem; }

    .timeline { padding-left: 3.5rem; }
    .timeline::before { left: 18px; }
    .timeline-marker { left: -3.5rem; width: 38px; height: 38px; }
    .timeline-logo { width: 38px; height: 38px; padding: 4px; border-radius: 10px; }
    .logo-fallback { font-size: 1.2rem; }

    .exp-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .section { padding: 80px 0; }
    .hero-section { padding: 100px 0 60px; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .hero-cta { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .timeline-content { padding: 1.25rem 1.25rem; }
    .work-grid { grid-template-columns: 1fr; }
    .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr; }
    .stat-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
    .stat-item i { margin-bottom: 0; }
    .stat-number { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .gradient-orb, .hero-name { animation: none !important; }
}
