/* ===== CSS Variables ===== */
:root {
    --bg-primary: #f4f6fb;
    --bg-secondary: #e8ecf6;
    --bg-card: rgba(255, 255, 255, 0.75);
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a7a;
    --accent: #5b4cdb;
    --accent-glow: rgba(91, 76, 219, 0.25);
    --accent-2: #2e8b8b;
    --accent-3: #6b5b95;
    --gradient: linear-gradient(135deg, #5b4cdb, #3d8b8b);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Starfield Canvas ===== */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(244, 246, 251, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(91, 76, 219, 0.08);
    transition: all var(--transition);
}

.navbar.scrolled {
    padding: 14px 40px;
    background: rgba(244, 246, 251, 0.95);
    box-shadow: 0 2px 20px rgba(91, 76, 219, 0.06);
}

.nav-logo {
    display: flex;
    align-items: center;
    transition: transform var(--transition);
}

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

.logo-svg {
    display: block;
    filter: drop-shadow(0 2px 6px rgba(91, 76, 219, 0.2));
}

.logo-svg circle[fill="url(#logoGrad)"] {
    transition: filter 0.3s ease;
}

.nav-logo:hover .logo-svg {
    filter: drop-shadow(0 3px 10px rgba(91, 76, 219, 0.35));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(91, 76, 219, 0.3);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(91, 76, 219, 0.08);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent-2);
    margin-bottom: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-name {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

/* Glitch effect */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: var(--accent-2);
    animation: glitch-1 2.5s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    color: var(--accent-3);
    animation: glitch-2 2.5s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 2px); }
    40% { transform: translate(3px, -1px); }
    60% { transform: translate(-2px, 1px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -2px); }
    40% { transform: translate(-3px, 1px); }
    60% { transform: translate(2px, -1px); }
    80% { transform: translate(-2px, 2px); }
}

.hero-title {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 1.6em;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

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

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

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

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(91, 76, 219, 0.35);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll-mouse 1.5s infinite;
}

@keyframes scroll-mouse {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Orbit visual */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-container {
    position: relative;
    width: 280px;
    height: 280px;
}

.planet {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(61, 139, 139, 0.2);
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(91, 76, 219, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 120px;
    height: 120px;
    animation: rotate 8s linear infinite;
}

.orbit-2 {
    width: 180px;
    height: 180px;
    animation: rotate 12s linear infinite reverse;
}

.orbit-3 {
    width: 250px;
    height: 250px;
    animation: rotate 18s linear infinite;
}

.satellite {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent-2);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-2);
}

.orbit-2 .satellite {
    background: var(--accent-3);
    box-shadow: 0 0 12px var(--accent-3);
}

.orbit-3 .satellite {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== Career Timeline Section ===== */
.career-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 680px;
    margin: -30px auto 50px;
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Cosmic decorations */
.cosmic-decor {
    position: relative;
    height: 0;
    pointer-events: none;
    z-index: 0;
}

.decor-planet {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
}

.decor-planet-1 {
    width: 48px;
    height: 48px;
    background: radial-gradient(circle at 30% 30%, #a78bfa, #5b4cdb 60%, #3b2d8a);
    top: 40px;
    right: 8%;
    box-shadow: inset -6px -4px 12px rgba(0,0,0,0.2), 0 0 20px rgba(91, 76, 219, 0.25);
    animation: float-slow 8s ease-in-out infinite;
}

.decor-planet-2 {
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 35% 35%, #5eead4, #3d8b8b 70%);
    top: 180px;
    left: 5%;
    box-shadow: inset -4px -3px 8px rgba(0,0,0,0.15), 0 0 14px rgba(61, 139, 139, 0.3);
    animation: float-slow 6s ease-in-out infinite reverse;
}

.decor-planet-3 {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 40% 40%, #c4b5fd, #7c3aed 65%);
    top: 420px;
    right: 14%;
    box-shadow: inset -3px -2px 6px rgba(0,0,0,0.15), 0 0 10px rgba(124, 58, 237, 0.25);
    animation: float-slow 7s ease-in-out infinite;
}

.decor-satellite,
.decor-sat-1 {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #5b4cdb;
    border-radius: 50%;
    top: 100px;
    right: 18%;
    box-shadow: 0 0 8px #5b4cdb, 14px 0 0 -3px #3d8b8b;
    animation: orbit-sat 12s linear infinite;
}

.decor-sat-2 {
    position: absolute;
    width: 7px;
    height: 7px;
    background: #3d8b8b;
    border-radius: 50%;
    top: 300px;
    left: 12%;
    box-shadow: 0 0 6px #3d8b8b, -10px 0 0 -2px #5b4cdb;
    animation: orbit-sat 9s linear infinite reverse;
}

.decor-rocket {
    position: absolute;
    font-size: 1.4rem;
    top: 260px;
    left: 10%;
    opacity: 0.75;
    animation: rocket-fly 10s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(91, 76, 219, 0.3));
}

.decor-blackhole {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #0f0f1a 25%, #2a1a4a 45%, #5b4cdb 60%, transparent 75%);
    top: 340px;
    right: 5%;
    opacity: 0.55;
    animation: pulse-bh 5s ease-in-out infinite;
    box-shadow: 0 0 25px rgba(91, 76, 219, 0.2);
}

.decor-star {
    position: absolute;
    color: var(--accent);
    opacity: 0.5;
    font-size: 0.9rem;
    animation: twinkle 3s ease-in-out infinite;
}

.decor-star-1 { top: 60px; left: 15%; animation-delay: 0s; }
.decor-star-2 { top: 220px; right: 12%; font-size: 0.7rem; animation-delay: 1s; }
.decor-star-3 { top: 380px; left: 8%; font-size: 1.1rem; animation-delay: 1.5s; color: var(--accent-2); }
.decor-star-4 { top: 140px; right: 22%; font-size: 0.8rem; animation-delay: 0.7s; color: var(--accent-3); }

.decor-comet {
    position: absolute;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(91, 76, 219, 0.6), rgba(61, 139, 139, 0.8));
    border-radius: 2px;
    top: 90px;
    left: 25%;
    opacity: 0;
    animation: comet-fly 8s ease-in-out infinite;
}

.decor-comet::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #5b4cdb;
}

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

@keyframes orbit-sat {
    0% { transform: rotate(0deg) translateX(18px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(18px) rotate(-360deg); }
}

@keyframes rocket-fly {
    0%, 100% { transform: translate(0, 0) rotate(-15deg); }
    50% { transform: translate(8px, -16px) rotate(-10deg); }
}

@keyframes pulse-bh {
    0%, 100% { transform: scale(1); opacity: 0.45; }
    50% { transform: scale(1.15); opacity: 0.65; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

@keyframes comet-fly {
    0%, 70% { opacity: 0; transform: translateX(0) translateY(0); }
    75% { opacity: 0.8; }
    100% { opacity: 0; transform: translateX(120px) translateY(30px); }
}

.timeline-badge.stage {
    background: rgba(91, 76, 219, 0.12);
    color: var(--accent);
    border: 1px solid rgba(91, 76, 219, 0.2);
}

@media (max-width: 900px) {
    .cosmic-decor { display: none; }
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 0;
}

.timeline-item {
    display: flex;
    gap: 28px;
    margin-bottom: 8px;
    position: relative;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 24px;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent);
    z-index: 2;
    flex-shrink: 0;
    transition: all var(--transition);
}

.timeline-dot.current {
    width: 22px;
    height: 22px;
    background: var(--gradient);
    border: none;
    box-shadow: 0 0 0 4px rgba(91, 76, 219, 0.2), 0 0 20px rgba(91, 76, 219, 0.3);
}

.timeline-line {
    width: 2px;
    flex-grow: 1;
    background: linear-gradient(to bottom, var(--accent), rgba(91, 76, 219, 0.15));
    min-height: 40px;
}

.timeline-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 28px;
    border: 1px solid rgba(91, 76, 219, 0.1);
    box-shadow: 0 4px 20px rgba(91, 76, 219, 0.05);
    margin-bottom: 24px;
    flex: 1;
    transition: all var(--transition);
}

.timeline-content:hover {
    border-color: rgba(91, 76, 219, 0.25);
    box-shadow: 0 8px 30px rgba(91, 76, 219, 0.1);
    transform: translateX(4px);
}

.timeline-current .timeline-content {
    border: 1px solid rgba(91, 76, 219, 0.3);
    background: linear-gradient(135deg, rgba(91, 76, 219, 0.04), rgba(61, 139, 139, 0.04));
    box-shadow: 0 8px 32px rgba(91, 76, 219, 0.1);
}

.timeline-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--gradient);
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}

.timeline-badge.leadership {
    background: linear-gradient(135deg, #3d8b8b, #5b4cdb);
}

.timeline-date {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-2);
    font-weight: 500;
    margin-bottom: 6px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.timeline-content .project-company {
    margin-bottom: 12px !important;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.55;
}

/* Keep old project styles for tags etc */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(91, 76, 219, 0.1);
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(91, 76, 219, 0.06);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(91, 76, 219, 0.25);
    box-shadow: 0 20px 40px rgba(91, 76, 219, 0.12);
}

.project-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.project-bg {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.project-card:hover .project-bg {
    transform: scale(1.08);
}

.project-bg-1 {
    background: linear-gradient(135deg, #e8e4f8 0%, #d4e8f0 50%, #c8e0f0 100%);
    position: relative;
}

.project-bg-1::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(91, 76, 219, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(61, 139, 139, 0.2) 0%, transparent 40%);
}

.project-bg-2 {
    background: linear-gradient(135deg, #ebe6f5 0%, #e0d8f0 50%, #d8e8f0 100%);
    position: relative;
}

.project-bg-2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 60% 30%, rgba(107, 91, 149, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(91, 76, 219, 0.2) 0%, transparent 40%);
}

.project-bg-3 {
    background: linear-gradient(135deg, #e0f0f0 0%, #d0e8e8 50%, #c8e0e8 100%);
    position: relative;
}

.project-bg-3::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 40% 50%, rgba(61, 139, 139, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(91, 76, 219, 0.18) 0%, transparent 40%);
}

.project-bg-4 {
    background: linear-gradient(135deg, #e8e8f5 0%, #dde4f0 50%, #d0dce8 100%);
    position: relative;
}

.project-bg-4::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(91, 76, 219, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(61, 139, 139, 0.15) 0%, transparent 40%);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(244, 246, 251, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 2;
}

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

.project-link {
    padding: 10px 24px;
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.project-link:hover {
    background: var(--accent);
}

.project-info {
    padding: 24px;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.project-company {
    font-size: 0.85rem !important;
    color: var(--accent-2) !important;
    margin-bottom: 10px !important;
    font-weight: 500;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

.project-tags span {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: rgba(91, 76, 219, 0.1);
    color: var(--accent);
    border-radius: 20px;
    border: 1px solid rgba(91, 76, 219, 0.18);
}

/* ===== Skills Section ===== */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.skills-category h3 {
    font-size: 1.2rem;
    margin-bottom: 28px;
    color: var(--accent-2);
}

.skill-item {
    margin-bottom: 24px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.skill-percent {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.skill-bar {
    height: 6px;
    background: rgba(91, 76, 219, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    width: 0;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Contact Section ===== */
.contact-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 500px;
    margin: -30px auto 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(91, 76, 219, 0.15);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(91, 76, 219, 0.12);
}

.form-group label {
    position: absolute;
    left: 18px;
    top: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
    pointer-events: none;
    transition: all var(--transition);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    background: var(--bg-primary);
    padding: 0 6px;
    color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-info-centered {
    max-width: 520px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 40px;
}

@media (max-width: 600px) {
    .contact-info-centered {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(91, 76, 219, 0.1);
    border-radius: 12px;
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.contact-item a {
    color: var(--text-primary);
    font-size: 1.05rem;
}

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

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(91, 76, 219, 0.06);
    border: 1px solid rgba(91, 76, 219, 0.15);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(91, 76, 219, 0.1);
    text-align: center;
}

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

.heart {
    color: var(--accent-3);
    display: inline-block;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer-note {
    margin-top: 8px;
    font-size: 0.8rem !important;
    opacity: 0.6;
}

/* ===== Animations on scroll ===== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-40px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(40px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .about-grid,
    .skills-container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        order: -1;
    }

    .orbit-container {
        width: 200px;
        height: 200px;
    }

    .orbit-3 {
        width: 180px;
        height: 180px;
    }

    .container {
        padding: 0 20px;
    }
}

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

    .navbar {
        padding: 12px 16px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(244, 246, 251, 0.98);
        flex-direction: column;
        padding: 90px 32px 40px;
        gap: 20px;
        transition: right 0.35s ease;
        border-left: 1px solid rgba(91, 76, 219, 0.1);
        box-shadow: -10px 0 30px rgba(91, 76, 219, 0.1);
        z-index: 1000;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.05rem;
        padding: 8px 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

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

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

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

    .hero {
        padding: 100px 16px 60px;
        min-height: 100svh;
    }

    .hero-greeting {
        font-size: 0.95rem;
    }

    .hero-name {
        font-size: clamp(1.8rem, 9vw, 2.6rem);
    }

    .hero-title {
        font-size: 1.05rem;
        min-height: 1.5em;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 13px 24px;
    }

    .scroll-indicator {
        bottom: 24px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    .career-intro {
        font-size: 0.95rem;
        margin: -20px auto 36px;
        padding: 0 8px;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .about-stats {
        justify-content: space-around;
        gap: 16px;
        margin-top: 28px;
    }

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

    .stat-label {
        font-size: 0.75rem;
    }

    /* Timeline mobile */
    .timeline-item {
        gap: 12px;
    }

    .timeline-marker {
        width: 18px;
    }

    .timeline-dot {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .timeline-dot.current {
        width: 16px;
        height: 16px;
    }

    .timeline-content {
        padding: 16px 16px;
        margin-bottom: 16px;
    }

    .timeline-content:hover {
        transform: none;
    }

    .timeline-content h3 {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.88rem;
    }

    .timeline-badge {
        font-size: 0.68rem;
        padding: 3px 10px;
    }

    .timeline-date {
        font-size: 0.8rem;
    }

    .project-tags span {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    /* Skills */
    .skills-category h3 {
        font-size: 1.05rem;
        margin-bottom: 20px;
    }

    .skill-header {
        font-size: 0.88rem;
    }

    /* Contact */
    .contact-intro {
        font-size: 0.95rem;
        margin: -20px auto 36px;
    }

    .contact-item {
        gap: 12px;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .contact-item a,
    .contact-item span {
        font-size: 0.95rem;
        word-break: break-word;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .footer {
        padding: 28px 0;
    }

    .footer p {
        font-size: 0.82rem;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 14px;
    }

    .navbar {
        padding: 10px 12px;
    }

    .hero {
        padding: 90px 12px 50px;
    }

    .hero-name {
        font-size: clamp(1.6rem, 10vw, 2.2rem);
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 1.35rem;
        margin-bottom: 32px;
    }

    .about-stats {
        flex-direction: column;
        gap: 18px;
    }

    .timeline-content {
        padding: 14px 12px;
    }

    .timeline-badge {
        font-size: 0.62rem;
        padding: 2px 8px;
        max-width: 100%;
        white-space: normal;
        line-height: 1.3;
    }

    .nav-links {
        width: 85%;
        padding: 80px 24px 32px;
    }

    .btn {
        max-width: 100%;
    }

    .orbit-container {
        width: 160px;
        height: 160px;
    }

    .orbit-3 {
        width: 145px;
        height: 145px;
    }

    .planet {
        width: 44px;
        height: 44px;
    }
}

/* Prevent horizontal scroll */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .timeline-content {
        overflow: hidden;
    }
}
