*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --accent-1: #6c5ce7;
    --accent-2: #a29bfe;
    --accent-3: #00cec9;
    --gradient-primary: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #00cec9 100%);
    --border-color: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --glass-bg: rgba(22, 22, 31, 0.7);
    --glass-border: rgba(255,255,255,0.08);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(108,92,231,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--accent-1) var(--bg-secondary); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 3px; }
body { font-family: var(--font-primary); background: var(--bg-primary); color: var(--text-primary); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.preloader { position: fixed; inset: 0; z-index: 9999; background: var(--bg-primary); display: flex; align-items: center; justify-content: center; transition: opacity 0.6s ease, visibility 0.6s ease; }
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-text { font-family: var(--font-display); font-size: 3rem; font-weight: 700; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: preloaderPulse 1.5s ease-in-out infinite; }
.preloader-bar { width: 120px; height: 3px; background: var(--border-color); border-radius: 3px; margin: 20px auto 0; overflow: hidden; }
.preloader-bar-fill { width: 0; height: 100%; background: var(--gradient-primary); border-radius: 3px; animation: preloaderFill 1.8s ease-in-out forwards; }
@keyframes preloaderPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes preloaderFill { 0% { width: 0; } 100% { width: 100%; } }

.cursor, .cursor-follower { position: fixed; border-radius: 50%; pointer-events: none; z-index: 10000; transition: transform 0.15s ease; display: none; }
@media (pointer: fine) { .cursor, .cursor-follower { display: block; } }
.cursor { width: 8px; height: 8px; background: var(--text-primary); transform: translate(-50%, -50%); }
.cursor-follower { width: 36px; height: 36px; border: 1.5px solid var(--accent-2); transform: translate(-50%, -50%); transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease; }
.cursor-follower.hover { width: 56px; height: 56px; border-color: var(--accent-3); }

.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; transition: var(--transition-base); }
.navbar.scrolled { padding: 10px 0; background: rgba(10, 10, 15, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.5px; }
.logo-bracket { color: var(--accent-1); font-weight: 400; }
.nav-links { display: flex; gap: 8px; }
.nav-link { padding: 8px 16px; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); border-radius: var(--radius-sm); transition: var(--transition-fast); position: relative; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link.active::after { content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 16px; height: 2px; background: var(--gradient-primary); border-radius: 2px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition-base); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 120px 24px 80px; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(120px); }
.hero-glow-1 { width: 600px; height: 600px; background: rgba(108, 92, 231, 0.12); top: -200px; right: -100px; animation: floatGlow 8s ease-in-out infinite; }
.hero-glow-2 { width: 500px; height: 500px; background: rgba(0, 206, 201, 0.08); bottom: -200px; left: -100px; animation: floatGlow 10s ease-in-out infinite reverse; }
@keyframes floatGlow { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -30px) scale(1.1); } }
.floating-shapes .shape { position: absolute; border-radius: 50%; opacity: 0.08; }
.shape-1 { width: 300px; height: 300px; border: 1px solid var(--accent-1); top: 10%; left: 5%; animation: rotateShape 25s linear infinite; }
.shape-2 { width: 200px; height: 200px; border: 1px solid var(--accent-3); bottom: 15%; right: 10%; animation: rotateShape 20s linear infinite reverse; }
.shape-3 { width: 100px; height: 100px; background: var(--accent-1); top: 60%; left: 15%; animation: floatShape 7s ease-in-out infinite; }
.shape-4 { width: 60px; height: 60px; background: var(--accent-3); top: 20%; right: 20%; animation: floatShape 9s ease-in-out infinite reverse; }
.shape-5 { width: 150px; height: 150px; border: 1px solid var(--accent-2); top: 50%; right: 30%; animation: rotateShape 30s linear infinite; }
@keyframes rotateShape { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes floatShape { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.hero-content { text-align: center; position: relative; z-index: 2; max-width: 800px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 50px; font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); backdrop-filter: blur(10px); margin-bottom: 32px; }
.badge-dot { width: 8px; height: 8px; background: #00d26a; border-radius: 50%; animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 210, 106, 0.4); } 50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0, 210, 106, 0); } }
.hero-title { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.hero-line { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--text-secondary); letter-spacing: -0.5px; }
.hero-name { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 800; letter-spacing: -2px; line-height: 1.1; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-line:last-child { font-size: 1.4rem; color: var(--text-secondary); font-weight: 400; }
.typed-text { color: var(--accent-3); -webkit-text-fill-color: var(--accent-3); }
.typed-cursor { color: var(--accent-1); -webkit-text-fill-color: var(--accent-1); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-desc { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; max-width: 580px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-size: 0.9rem; font-weight: 600; border-radius: var(--radius-md); transition: var(--transition-base); cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--gradient-primary); color: white; box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4); }
.btn-outline { border: 1.5px solid var(--border-hover); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent-2); background: rgba(162, 155, 254, 0.05); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

.hero-stats { display: flex; align-items: center; justify-content: center; gap: 40px; }
.stat { text-align: center; }
.stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.stat-plus { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--accent-2); }
.stat-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 40px; background: var(--border-color); }

.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; }
.mouse { width: 24px; height: 38px; border: 2px solid var(--text-muted); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.mouse-wheel { width: 3px; height: 8px; background: var(--accent-2); border-radius: 3px; animation: mouseScroll 1.5s ease-in-out infinite; }
@keyframes mouseScroll { 0%, 100% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }

.section { padding: 120px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 72px; }
.section-tag { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--accent-1); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -1px; line-height: 1.2; }
.gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-subtitle { color: var(--text-secondary); font-size: 1rem; margin-top: 16px; max-width: 500px; margin-left: auto; margin-right: auto; }

.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: center; }
.about-image-wrapper { position: relative; }
.about-image { position: relative; aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); }
.about-image-img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; top: 0; left: 0; }
.about-image-border { position: absolute; inset: -1px; border-radius: var(--radius-lg); border: 1.5px solid transparent; background: var(--gradient-primary) border-box; mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0); -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0); mask-composite: exclude; -webkit-mask-composite: xor; opacity: 0.3; }
.about-experience-badge { position: absolute; bottom: -16px; right: -16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px 24px; text-align: center; backdrop-filter: blur(10px); box-shadow: var(--shadow-md); }
.exp-number { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--accent-2); }
.exp-text { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.about-text { color: var(--text-secondary); font-size: 1rem; line-height: 1.8; margin-bottom: 20px; }
.about-text strong { color: var(--text-primary); }
.about-highlights { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.highlight { display: flex; align-items: flex-start; gap: 16px; padding: 16px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-color); transition: var(--transition-base); }
.highlight:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.highlight-icon { width: 48px; height: 48px; min-width: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: rgba(108, 92, 231, 0.1); color: var(--accent-2); }
.highlight h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.highlight p { font-size: 0.85rem; color: var(--text-muted); }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.skill-category { padding: 32px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); transition: var(--transition-base); }
.skill-category:hover { border-color: var(--border-hover); background: var(--bg-card-hover); box-shadow: var(--shadow-glow); }
.skill-category-header { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.skill-cat-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: rgba(108, 92, 231, 0.1); color: var(--accent-2); }
.skill-category-header h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.skill-items { display: flex; flex-direction: column; gap: 18px; }
.skill-item { width: 100%; }
.skill-name { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; }
.skill-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.05); border-radius: 6px; overflow: hidden; }
.skill-bar-fill { height: 100%; width: 0; background: var(--gradient-primary); border-radius: 6px; transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card { padding: 36px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); position: relative; overflow: hidden; transition: var(--transition-base); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.service-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.service-card:hover::before { transform: scaleX(1); }
.service-number { font-family: var(--font-display); font-size: 3.5rem; font-weight: 800; position: absolute; top: 20px; right: 28px; color: rgba(255,255,255,0.03); line-height: 1; }
.service-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: rgba(108, 92, 231, 0.1); color: var(--accent-2); margin-bottom: 24px; }
.service-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
.service-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span { padding: 4px 12px; font-size: 0.75rem; font-weight: 500; color: var(--accent-2); background: rgba(108, 92, 231, 0.1); border-radius: 50px; border: 1px solid rgba(108, 92, 231, 0.15); }

.timeline { position: relative; max-width: 700px; margin: 0 auto; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--accent-1), var(--accent-3)); opacity: 0.3; border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 48px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -40px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-primary); border: 3px solid var(--accent-1); z-index: 2; transition: var(--transition-base); }
.timeline-item:hover .timeline-dot { background: var(--accent-1); box-shadow: 0 0 16px rgba(108, 92, 231, 0.5); }
.timeline-content { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; transition: var(--transition-base); }
.timeline-item:hover .timeline-content { border-color: var(--border-hover); background: var(--bg-card-hover); }
.timeline-date { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--accent-3); background: rgba(0, 206, 201, 0.1); padding: 4px 12px; border-radius: 50px; margin-bottom: 12px; }
.timeline-content h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.timeline-content p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: 16px; transition: var(--transition-base); }
.contact-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.contact-card-icon { width: 48px; height: 48px; min-width: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: rgba(108, 92, 231, 0.1); color: var(--accent-2); }
.contact-card h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.contact-card a, .contact-card p { font-size: 0.9rem; color: var(--text-secondary); transition: var(--transition-fast); }
.contact-card a:hover { color: var(--accent-2); }
.contact-socials { display: flex; gap: 12px; margin-top: 24px; }
.social-link { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary); transition: var(--transition-base); }
.social-link:hover { color: var(--accent-2); border-color: var(--accent-1); background: rgba(108, 92, 231, 0.1); transform: translateY(-2px); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group textarea { padding: 14px 18px; background: var(--bg-card); border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.95rem; transition: var(--transition-base); outline: none; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }

.footer { padding: 60px 0 32px; border-top: 1px solid var(--border-color); }
.footer-content { text-align: center; }
.footer-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; display: inline-block; margin-bottom: 12px; }
.footer-text { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border-color); }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-up.revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) { .skills-grid, .services-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--bg-secondary); border-left: 1px solid var(--border-color); flex-direction: column; padding: 100px 32px 32px; gap: 4px; transition: right 0.3s ease; z-index: 999; }
    .nav-links.open { right: 0; }
    .nav-link { font-size: 1rem; padding: 12px 16px; }
    .nav-toggle { display: flex; }
    .hero-title .hero-line { font-size: 1.2rem; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 1.6rem; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrapper { max-width: 300px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .scroll-indicator { display: none; }
}
@media (max-width: 480px) { .section { padding: 80px 0; } .section-header { margin-bottom: 48px; } .skill-category { padding: 24px; } .service-card { padding: 28px; } }
