@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99,102,241,0.15);
  --text-primary: #f1f1f4;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border: rgba(255,255,255,0.06);
  --gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
  --gradient-2: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
}

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg-primary); }
body { font-family: 'Inter', sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.7; overflow-x: hidden; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(10,10,15,0.8); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
nav.scrolled { background: rgba(10,10,15,0.95); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; }
.nav-logo { font-size: 1.3rem; font-weight: 700; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gradient-1); transition: width 0.3s; border-radius: 1px; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.hamburger span { width: 24px; height: 2px; background: var(--text-secondary); transition: all 0.3s; border-radius: 2px; }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 6rem 2rem 4rem;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 20%, var(--accent-glow) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(139,92,246,0.08) 0%, transparent 50%);
  animation: heroBg 15s ease-in-out infinite alternate;
}
@keyframes heroBg { 0% { transform: translate(0,0); } 100% { transform: translate(-5%,5%); } }

.hero-content { position: relative; z-index: 1; max-width: 1200px; width: 100%; display: flex; align-items: center; gap: 5rem; }
.hero-text { flex: 1; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; border-radius: 50px; background: var(--accent-glow); border: 1px solid rgba(99,102,241,0.2); font-size: 0.8rem; color: var(--accent-light); font-weight: 500; margin-bottom: 1.5rem; }
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-text h1 { font-size: clamp(2.5rem,5vw,4rem); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 1.5rem; }
.hero-text h1 .gradient { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text p { font-size: 1.15rem; color: var(--text-secondary); max-width: 500px; margin-bottom: 2rem; line-height: 1.8; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { padding: 0.85rem 2rem; border-radius: 12px; background: var(--gradient-2); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 20px rgba(99,102,241,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.4); }
.btn-secondary { padding: 0.85rem 2rem; border-radius: 12px; background: var(--bg-card); color: var(--text-primary); text-decoration: none; font-weight: 600; font-size: 0.95rem; border: 1px solid var(--border); cursor: pointer; transition: all 0.3s; }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: rgba(99,102,241,0.3); transform: translateY(-2px); }

.hero-image { flex-shrink: 0; position: relative; }
.hero-image .img-wrapper {
  width: 320px; height: 320px; border-radius: 30px; overflow: hidden; position: relative;
  box-shadow: 0 25px 80px rgba(99,102,241,0.15); border: 2px solid rgba(99,102,241,0.15);
}
.hero-image .img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.hero-image .float-badge {
  position: absolute; padding: 0.6rem 1.2rem; border-radius: 12px;
  background: rgba(18,18,26,0.9); backdrop-filter: blur(10px); border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 500; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.hero-image .badge-1 { top: -10px; right: -30px; animation-delay: 0s; }
.hero-image .badge-2 { bottom: 20px; left: -40px; animation-delay: 2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* SECTIONS */
section { padding: 6rem 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .label { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--accent-light); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.75rem; }
.section-header h2 { font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 1rem; }
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.container { max-width: 1100px; margin: 0 auto; }

/* EXPERIENCE */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--accent), rgba(99,102,241,0.1)); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 3rem; padding: 2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; transition: all 0.4s; }
.timeline-item:hover { background: var(--bg-card-hover); border-color: rgba(99,102,241,0.15); transform: translateX(8px); }
.timeline-item::before {
  content: ''; position: absolute; left: -3rem; top: 2rem; width: 14px; height: 14px;
  background: var(--accent); border-radius: 50%; transform: translateX(-6px);
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 20px var(--accent-glow);
}
.timeline-item .role { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.3rem; }
.timeline-item .company { color: var(--accent-light); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
.timeline-item .company a { color: var(--accent-light); text-decoration: none; transition: color 0.3s, text-decoration 0.3s; }
.timeline-item .company a:hover { color: #a78bfa; text-decoration: underline; }
.timeline-item .date { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.4rem; }
.timeline-item .description { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* SKILLS */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.5rem; }
.skill-card { padding: 2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; transition: all 0.4s; }
.skill-card:hover { background: var(--bg-card-hover); border-color: rgba(99,102,241,0.2); transform: translateY(-4px); }
.skill-card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-glow); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1.2rem; }
.skill-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.skill-items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag { padding: 0.35rem 0.85rem; border-radius: 8px; background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.12); font-size: 0.82rem; color: var(--text-secondary); font-weight: 500; transition: all 0.3s; }
.skill-tag:hover { background: rgba(99,102,241,0.15); color: var(--accent-light); }

/* EDUCATION */
.education-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 1.5rem; }
.edu-card { padding: 2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; transition: all 0.4s; }
.edu-card:hover { background: var(--bg-card-hover); transform: translateY(-4px); border-color: rgba(99,102,241,0.15); }
.edu-card .edu-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-glow); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 1rem; }
.edu-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.edu-card .institution { color: var(--accent-light); font-size: 0.9rem; font-weight: 500; margin-bottom: 0.3rem; }
.edu-card .institution a { color: var(--accent-light); text-decoration: none; transition: color 0.3s, text-decoration 0.3s; }
.edu-card .institution a:hover { color: #a78bfa; text-decoration: underline; }
.edu-card .period { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 0.5rem; }
.edu-card .hours { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 6px; background: rgba(52,211,153,0.1); color: #34d399; font-size: 0.78rem; font-weight: 600; }

/* PROJECTS */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2rem; }
.project-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: all 0.4s; }
.project-card:hover { transform: translateY(-6px); border-color: rgba(99,102,241,0.2); box-shadow: 0 20px 60px rgba(99,102,241,0.1); }
.project-img { position: relative; height: auto; overflow: hidden; background: rgba(0,0,0,0.3); }
.project-img img { width: 100%; height: auto; object-fit: contain; transition: transform 0.6s ease; }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-overlay { position: absolute; top: 1rem; left: 1rem; }
.project-category { padding: 0.35rem 0.9rem; border-radius: 8px; background: rgba(10,10,15,0.75); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); color: var(--accent-light); font-size: 0.78rem; font-weight: 600; }
.project-info { padding: 1.8rem; }
.project-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; }
.project-info p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; margin-bottom: 1.2rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 768px) { .projects-grid { grid-template-columns: 1fr; } }

/* LANGUAGES */
.languages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; margin-top: 2rem; }
.lang-card { padding: 1.8rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; text-align: center; transition: all 0.4s; }
.lang-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.2); }
.lang-card .lang-flag { font-size: 2.5rem; margin-bottom: 0.8rem; }
.lang-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.lang-card .level { color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; margin-bottom: 0.8rem; }
.lang-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.lang-bar .fill { height: 100%; background: var(--gradient-1); border-radius: 3px; transition: width 1.5s ease; }

/* CONTACT */
.contact-section { background: var(--bg-secondary); border-radius: 24px; max-width: 800px; margin: 0 auto; padding: 4rem; text-align: center; border: 1px solid var(--border); }
.contact-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 2.5rem; }
.contact-item { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; transition: all 0.3s; text-decoration: none; color: var(--text-primary); }
.contact-item:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-2px); background: var(--bg-card-hover); }
.contact-item .c-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-glow); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-item .c-text { text-align: left; }
.contact-item .c-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.contact-item .c-value { font-size: 0.95rem; font-weight: 600; }

/* FOOTER */
footer { text-align: center; padding: 3rem 2rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; }

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-content { flex-direction: column-reverse; text-align: center; gap: 3rem; }
  .hero-text p { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-image .badge-1, .hero-image .badge-2 { display: none; }
  .hero-image .img-wrapper { width: 240px; height: 240px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10,10,15,0.98); flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
  .nav-links.active { display: flex; }
  .nav-links a { font-size: 1.3rem; }
  .hamburger { display: flex; }
  .timeline { padding-left: 2rem; }
  section { padding: 4rem 1.5rem; }
  .contact-section { padding: 2.5rem 1.5rem; }
  .skills-grid, .education-grid { grid-template-columns: 1fr; }
}
