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

:root {
  --bg: #0d0f14;
  --bg-alt: #12151c;
  --card: #181c25;
  --card-border: #232838;
  --accent: #6c63ff;
  --accent2: #00d4aa;
  --text: #e8eaf0;
  --text-muted: #8890a8;
  --tag-bg: #1e2333;
  --radius: 14px;
  --shadow: 0 4px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(13,15,20,0.85);
  border-bottom: 1px solid var(--card-border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.5); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 1.5rem; font-weight: 800; color: var(--accent); letter-spacing: -1px; }
.nav-logo .dot { color: var(--accent2); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.btn-nav {
  background: var(--accent); color: #fff !important;
  padding: 0.45rem 1.2rem; border-radius: 50px;
  font-weight: 600 !important; transition: background 0.2s, transform 0.1s !important;
}
.btn-nav:hover { background: #5a52e0 !important; transform: translateY(-1px); }
.burger { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: space-between;
  gap: 4rem;
  max-width: 1200px; margin: 0 auto;
  padding: 8rem 2rem 4rem;
}
.hero-content { flex: 1; max-width: 620px; }
.hero-tag {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  color: var(--accent);
  border: 1px solid rgba(108,99,255,0.3);
  padding: 0.35rem 1rem; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease both;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -2px;
  animation: fadeInUp 0.7s 0.1s ease both;
}
.accent { color: var(--accent); }
.hero-sub {
  font-size: 1.1rem; color: var(--accent2); font-weight: 600;
  margin: 1rem 0 1.2rem;
  animation: fadeInUp 0.7s 0.2s ease both;
}
.hero-desc {
  color: var(--text-muted); font-size: 1rem; max-width: 540px;
  animation: fadeInUp 0.7s 0.3s ease both;
}
.hero-cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin: 2rem 0;
  animation: fadeInUp 0.7s 0.4s ease both;
}
.btn-primary {
  background: var(--accent); color: #fff;
  padding: 0.75rem 2rem; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(108,99,255,0.35);
  display: inline-block;
}
.btn-primary:hover { background: #5a52e0; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(108,99,255,0.45); }
.btn-secondary {
  background: transparent; color: var(--text);
  padding: 0.75rem 2rem; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--card-border);
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  animation: fadeInUp 0.7s 0.5s ease both;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* Hero Visual */
.hero-visual {
  flex: 0 0 auto;
  position: relative; width: 340px; height: 340px;
  animation: fadeIn 1s 0.5s ease both;
  display: flex; align-items: center; justify-content: center;
}
.avatar-ring {
  width: 220px; height: 220px; border-radius: 50%;
  border: 3px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(108,99,255,0.3);
  animation: spin 20s linear infinite;
}
@keyframes spin {
  from { box-shadow: 0 0 60px rgba(108,99,255,0.3); }
  50% { box-shadow: 0 0 80px rgba(0,212,170,0.4); }
  to { box-shadow: 0 0 60px rgba(108,99,255,0.3); }
}
.avatar-placeholder {
  width: 200px; height: 200px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; font-weight: 800; color: #fff; letter-spacing: -2px;
}
.floating-badge {
  position: absolute;
  background: var(--card); border: 1px solid var(--card-border);
  padding: 0.5rem 0.9rem; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; color: var(--text);
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.b1 { top: 10px; right: -10px; animation: float 3s ease-in-out infinite; }
.b2 { bottom: 40px; left: -20px; animation: float 3s 1s ease-in-out infinite; }
.b3 { bottom: 10px; right: 0px; animation: float 3s 2s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ===========================
   SECTIONS
=========================== */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
  text-align: center; letter-spacing: -1px; margin-bottom: 0.5rem;
}
.section-title.light { color: #fff; }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 3.5rem; font-size: 1rem; }
.section-sub.light { color: rgba(255,255,255,0.65); }

/* ===========================
   SKILLS GRID
=========================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 1.8rem;
  transition: border-color 0.2s, transform 0.2s;
}
.skill-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.skill-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.skill-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; }

/* ===========================
   TAGS
=========================== */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  background: var(--tag-bg); color: var(--text-muted);
  padding: 0.3rem 0.8rem; border-radius: 50px;
  font-size: 0.78rem; font-weight: 500;
  border: 1px solid var(--card-border);
  transition: color 0.2s, border-color 0.2s;
}
.tag:hover { color: var(--accent); border-color: var(--accent); }

/* ===========================
   TIMELINE
=========================== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--card-border);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot {
  position: absolute; left: -2rem; top: 1.5rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg-alt);
  box-shadow: 0 0 10px rgba(108,99,255,0.5);
}
.timeline-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 1.5rem 1.8rem;
  transition: border-color 0.2s;
}
.timeline-card:hover { border-color: var(--accent); }
.timeline-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.8rem;
}
.timeline-card h3 { font-size: 1.05rem; font-weight: 700; }
.company { color: var(--accent2); font-size: 0.9rem; font-weight: 500; margin-top: 0.2rem; }
.timeline-date {
  font-size: 0.8rem; color: var(--text-muted);
  background: var(--tag-bg); padding: 0.3rem 0.8rem; border-radius: 50px;
  white-space: nowrap;
}
.timeline-card > p { color: var(--text-muted); font-size: 0.93rem; }

/* ===========================
   PROJECTS
=========================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 2rem;
  position: relative; transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.project-card.featured { border-color: rgba(108,99,255,0.4); }
.project-badge {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; padding: 0.25rem 0.8rem; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px;
}
.project-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.project-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.7rem; }
.project-card > p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 1.2rem; }
.project-links { margin-top: 1.2rem; }
.project-link-label { font-size: 0.8rem; color: var(--accent2); font-weight: 500; }

/* ===========================
   CERTIFICATIONS
=========================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.cert-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 1.2rem 1.4rem;
  display: flex; align-items: center; gap: 1rem;
  transition: border-color 0.2s, transform 0.2s;
}
.cert-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cert-logo {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.5px;
  flex-shrink: 0;
}
.cert-logo.ms { background: rgba(0,120,212,0.2); color: #0078d4; border: 1px solid rgba(0,120,212,0.3); }
.cert-logo.aws { background: rgba(255,153,0,0.2); color: #ff9900; border: 1px solid rgba(255,153,0,0.3); }
.cert-logo.gcp { background: rgba(66,133,244,0.2); color: #4285f4; border: 1px solid rgba(66,133,244,0.3); }
.cert-card strong { font-size: 0.9rem; display: block; }
.cert-card p { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ===========================
   SERVICES
=========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
  text-align: center;
}
.service-card:hover { border-color: var(--accent2); transform: translateY(-4px); }
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.7rem; }
.service-card p { color: var(--text-muted); font-size: 0.93rem; }

/* ===========================
   CONTACT
=========================== */
.contact-section {
  background: linear-gradient(135deg, #0d0f14 0%, #1a1440 50%, #0d1a1a 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.8rem;
}
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-label { font-size: 0.78rem; color: rgba(255,255,255,0.45); font-weight: 500; margin-bottom: 0.1rem; }
.contact-value { color: #fff; font-size: 0.95rem; font-weight: 500; }
a.contact-value:hover { color: var(--accent); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.7); }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 0.75rem 1rem;
  color: #fff; font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-group select option { background: #181c25; }
.form-btn { text-align: center; cursor: pointer; }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: #0a0c10;
  text-align: center; padding: 1.5rem;
  color: var(--text-muted); font-size: 0.85rem;
  border-top: 1px solid var(--card-border);
}
.footer a { color: var(--accent); }
.footer a:hover { text-decoration: underline; }

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: flex-start; padding-top: 6rem; }
  .hero-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .timeline { padding-left: 1.5rem; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .hero h1 { font-size: 2.4rem; }
  .section { padding: 4rem 0; }
  .hero-stats { gap: 1.5rem; }
}
