/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --de: #00d4ff;
  --ce: #a855f7;
  --ds: #10b981;
  --bg: #050b18;
  --bg2: #0a1628;
  --bg3: #0f1f3d;
  --card: #0d1b35;
  --border: rgba(255,255,255,0.07);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --white: #ffffff;
  --grad: linear-gradient(135deg, #00d4ff, #a855f7, #10b981);
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--de); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(5,11,24,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.navbar.scrolled { padding: 0.8rem 3rem; background: rgba(5,11,24,0.95); }
.nav-brand { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--white); }
.nav-brand span { color: var(--de); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--de); transition: width 0.3s; }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.hamburger { display: none; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 20% 50%, rgba(0,212,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(168,85,247,0.08) 0%, transparent 60%),
              var(--bg);
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute; border-radius: 50%;
  background: var(--de); opacity: 0.4;
  animation: float linear infinite;
}
@keyframes float {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 4rem; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  padding-top: 5rem;
}
.hero-text { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.3);
  color: var(--de); padding: 0.4rem 1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  margin-bottom: 1.5rem; animation: pulse-border 2s infinite;
}
.hero-badge::before { content: ''; width: 8px; height: 8px; background: var(--de); border-radius: 50%; animation: blink 1.5s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse-border { 0%,100% { box-shadow: 0 0 0 0 rgba(0,212,255,0.3); } 50% { box-shadow: 0 0 0 6px rgba(0,212,255,0); } }
.hero-text h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 800; line-height: 1.05; color: var(--white); margin-bottom: 1.5rem; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-roles { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.role-tag {
  padding: 0.5rem 1.2rem; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  border: 1px solid; cursor: pointer; transition: all 0.3s;
}
.role-tag.de { color: var(--de); border-color: rgba(0,212,255,0.4); background: rgba(0,212,255,0.05); }
.role-tag.ce { color: var(--ce); border-color: rgba(168,85,247,0.4); background: rgba(168,85,247,0.05); }
.role-tag.ds { color: var(--ds); border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.05); }
.role-tag.active.de { background: rgba(0,212,255,0.15); box-shadow: 0 0 20px rgba(0,212,255,0.2); }
.role-tag.active.ce { background: rgba(168,85,247,0.15); box-shadow: 0 0 20px rgba(168,85,247,0.2); }
.role-tag.active.ds { background: rgba(16,185,129,0.15); box-shadow: 0 0 20px rgba(16,185,129,0.2); }
.hero-sub { font-size: 0.9rem; color: var(--de); font-weight: 500; margin-bottom: 1rem; letter-spacing: 0.02em; }
.hero-desc { font-size: 1.05rem; color: var(--muted); line-height: 1.7; margin-bottom: 2rem; max-width: 520px; }
.hero-cta { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.btn-primary {
  padding: 0.85rem 2rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  background: linear-gradient(135deg, var(--de), var(--ce));
  color: var(--white); border: none; cursor: pointer; transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,212,255,0.4); }
.btn-outline {
  padding: 0.85rem 2rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.2); cursor: pointer; transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--de); color: var(--de); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 2.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--white); }
.stat-label { font-size: 0.8rem; color: var(--muted); }

/* HERO PHOTO */
.hero-photo-wrap {
  position: relative; flex-shrink: 0;
  width: 380px; height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.photo-ring {
  position: absolute; border-radius: 50%; border: 1px solid;
  animation: spin linear infinite;
}
.ring1 { width: 100%; height: 100%; border-color: rgba(0,212,255,0.2); animation-duration: 20s; }
.ring2 { width: 85%; height: 85%; border-color: rgba(168,85,247,0.2); animation-duration: 15s; animation-direction: reverse; }
.ring3 { width: 70%; height: 70%; border-color: rgba(16,185,129,0.15); animation-duration: 25s; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.hero-photo {
  width: 260px; height: 260px; border-radius: 50%; object-fit: cover; object-position: top;
  border: 3px solid rgba(0,212,255,0.4);
  box-shadow: 0 0 60px rgba(0,212,255,0.2), 0 0 120px rgba(168,85,247,0.1);
  position: relative; z-index: 2;
}
.photo-badge {
  position: absolute; z-index: 3;
  background: var(--card); border: 1px solid var(--border);
  padding: 0.4rem 0.8rem; border-radius: 8px;
  font-size: 0.75rem; font-weight: 600; color: var(--white);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  animation: badge-float 3s ease-in-out infinite;
}
.badge-aws { top: 15%; right: 0; color: #ff9900; border-color: rgba(255,153,0,0.3); animation-delay: 0s; }
.badge-azure { bottom: 20%; right: 5%; color: #00a4ef; border-color: rgba(0,164,239,0.3); animation-delay: 1s; }
.badge-spark { top: 30%; left: 0; color: var(--ds); border-color: rgba(16,185,129,0.3); animation-delay: 2s; }
.badge-python { bottom: 15%; left: 5%; color: #60a5fa; border-color: rgba(96,165,250,0.3); animation-delay: 1.5s; }
@keyframes badge-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.scroll-indicator span {
  width: 2px; height: 50px;
  background: linear-gradient(to bottom, var(--de), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ===== SECTION COMMON ===== */
section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block; padding: 0.3rem 1rem; border-radius: 50px;
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.2);
  color: var(--de); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.section-header h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--white); }
.section-desc { color: var(--muted); margin-top: 0.75rem; font-size: 1rem; }

/* ===== ABOUT ===== */
.about { background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.about-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 2rem; transition: all 0.3s;
}
.about-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.about-card.featured {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 2rem;
  background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(168,85,247,0.05));
  border-color: rgba(0,212,255,0.2);
}
.about-photo-mini img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--de); flex-shrink: 0; }
.about-card.featured blockquote { font-size: 1.1rem; font-style: italic; color: var(--text); line-height: 1.6; flex: 1; }
.about-links { display: flex; gap: 1rem; margin-top: 1rem; }
.about-links a { color: var(--de); font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; gap: 0.4rem; }
.about-links a:hover { color: var(--white); }
.about-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(0,212,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--de); margin-bottom: 1rem; }
.about-card h3 { font-size: 1.2rem; font-weight: 600; color: var(--white); margin-bottom: 0.75rem; }
.about-card p { color: var(--muted); line-height: 1.7; font-size: 0.95rem; }

/* ===== SKILLS ===== */
.skills { background: var(--bg); }
.skills-tabs { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
.skill-tab {
  padding: 0.6rem 1.5rem; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all 0.3s;
}
.skill-tab.active, .skill-tab:hover { background: rgba(0,212,255,0.1); border-color: var(--de); color: var(--de); }
.skills-panel { display: none; }
.skills-panel.active { display: block; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.chip {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem; border-radius: 50px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); font-size: 0.875rem; font-weight: 500;
  transition: all 0.3s; cursor: default;
}
.chip:hover { border-color: var(--de); color: var(--de); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,212,255,0.15); }
.chip i { color: var(--de); }

/* ===== PROJECTS ===== */
.projects { background: var(--bg2); }
.project-filter { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-btn {
  padding: 0.5rem 1.3rem; border-radius: 50px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.3s;
}
.filter-btn.active, .filter-btn:hover { background: rgba(0,212,255,0.1); border-color: var(--de); color: var(--de); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.project-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 25px 50px rgba(0,0,0,0.4); }
.project-card.hidden { display: none; }
.card-header {
  padding: 1.2rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
}
.de-header { background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,212,255,0.05)); border-bottom: 1px solid rgba(0,212,255,0.15); }
.ce-header { background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(168,85,247,0.05)); border-bottom: 1px solid rgba(168,85,247,0.15); }
.ds-header { background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05)); border-bottom: 1px solid rgba(16,185,129,0.15); }
.ai-header { background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(251,191,36,0.05)); border-bottom: 1px solid rgba(251,191,36,0.15); }
.ml-header { background: linear-gradient(135deg, rgba(236,72,153,0.15), rgba(236,72,153,0.05)); border-bottom: 1px solid rgba(236,72,153,0.15); }
.card-category-badge {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.de-header .card-category-badge { color: var(--de); }
.ce-header .card-category-badge { color: var(--ce); }
.ds-header .card-category-badge { color: var(--ds); }
.ai-header .card-category-badge { color: #fbbf24; }
.ml-header .card-category-badge { color: #ec4899; }
.card-icons { font-size: 1.3rem; }
.de-header .card-icons { color: var(--de); }
.ce-header .card-icons { color: var(--ce); }
.ds-header .card-icons { color: var(--ds); }
.ai-header .card-icons { color: #fbbf24; }
.ml-header .card-icons { color: #ec4899; }
.card-body { padding: 1.5rem; flex: 1; }
.card-body h3 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.75rem; line-height: 1.4; }
.card-body p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.2rem; }
.architecture {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem;
  margin-bottom: 1.2rem; padding: 0.75rem; border-radius: 8px;
  background: rgba(0,0,0,0.2); border: 1px solid var(--border);
}
.arch-step {
  font-size: 0.7rem; font-weight: 600; padding: 0.25rem 0.6rem;
  border-radius: 4px; background: rgba(0,212,255,0.1); color: var(--de);
  white-space: nowrap;
}
.architecture .fa-arrow-right { color: var(--muted); font-size: 0.65rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tech-tags span {
  font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 4px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--muted);
}
.card-footer {
  padding: 1rem 1.5rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-link {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 500; color: var(--de);
  transition: all 0.3s;
}
.card-link:hover { color: var(--white); }
.card-lang {
  font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 4px;
}
.card-lang.jupyter { background: rgba(255,153,0,0.15); color: #ff9900; }
.card-lang.python { background: rgba(59,130,246,0.15); color: #60a5fa; }
.card-lang.aws { background: rgba(255,153,0,0.15); color: #ff9900; }
.card-lang.azure { background: rgba(0,164,239,0.15); color: #00a4ef; }
.card-lang.shell { background: rgba(16,185,129,0.15); color: var(--ds); }
.card-lang.ts { background: rgba(0,122,204,0.15); color: #007acc; }
.card-lang.html { background: rgba(228,77,38,0.15); color: #e44d26; }
.card-lang.spark { background: rgba(0,212,255,0.15); color: var(--de); }

/* ===== CERTIFICATIONS ===== */
.certifications { background: var(--bg); }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.cert-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start;
  transition: all 0.3s;
}
.cert-card:hover { transform: translateY(-4px); }
.cert-logo { font-size: 2rem; flex-shrink: 0; }
.aws-cert { border-top: 3px solid #ff9900; }
.aws-cert .cert-logo { color: #ff9900; }
.azure-cert { border-top: 3px solid #00a4ef; }
.azure-cert .cert-logo { color: #00a4ef; }
.gcp-cert { border-top: 3px solid #4285f4; }
.gcp-cert .cert-logo { color: #4285f4; }
.databricks-cert { border-top: 3px solid var(--de); }
.databricks-cert .cert-logo { color: var(--de); }
.cert-info h4 { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.cert-info p { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem; line-height: 1.5; }
.cert-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cert-badges span {
  font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 4px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--muted);
}

/* ===== CONTACT ===== */
.contact { background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--de); font-size: 1rem;
}
.contact-item h4 { font-size: 0.85rem; font-weight: 600; color: var(--white); margin-bottom: 0.2rem; }
.contact-item p, .contact-item a { font-size: 0.9rem; color: var(--muted); }
.contact-item a:hover { color: var(--de); }
.contact-roles h4 { font-size: 0.85rem; font-weight: 600; color: var(--white); margin-bottom: 0.75rem; }
.role-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pill { padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; border: 1px solid; }
.pill.de { color: var(--de); border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.08); }
.pill.ce { color: var(--ce); border-color: rgba(168,85,247,0.3); background: rgba(168,85,247,0.08); }
.pill.ds { color: var(--ds); border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.08); }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.form-group input, .form-group textarea {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.75rem 1rem; color: var(--white); font-size: 0.9rem; font-family: inherit;
  transition: border-color 0.3s; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--de); box-shadow: 0 0 0 3px rgba(0,212,255,0.1); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(148,163,184,0.5); }
.btn-primary.full-width { width: 100%; justify-content: center; display: flex; align-items: center; gap: 0.5rem; }

/* ===== FOOTER ===== */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 3rem 0; }
.footer-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.footer-brand { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--white); }
.footer-brand span { color: var(--de); }
.footer-content p { color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { width: 40px; height: 40px; border-radius: 8px; background: var(--card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1rem; transition: all 0.3s; }
.footer-links a:hover { border-color: var(--de); color: var(--de); }
.footer-copy { text-align: center; color: rgba(148,163,184,0.5); font-size: 0.8rem; }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-content { flex-direction: column; text-align: center; padding-top: 7rem; }
  .hero-photo-wrap { width: 280px; height: 280px; }
  .hero-photo { width: 200px; height: 200px; }
  .hero-stats { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-roles { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card.featured { flex-direction: column; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .navbar { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(5,11,24,0.98); padding: 1.5rem; gap: 1rem; border-bottom: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2.5rem; }
  section { padding: 4rem 0; }
}

/* ===== GHOST BUTTON (Download CV) ===== */
.btn-ghost {
  padding: 0.85rem 1.6rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  background: transparent; color: var(--muted);
  border: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-ghost:hover { border-color: var(--ds); color: var(--ds); transform: translateY(-2px); }

/* ===== ML ROLE TAG ===== */
.role-tag.ml { color: #ec4899; border-color: rgba(236,72,153,0.4); background: rgba(236,72,153,0.05); }
.role-tag.active.ml { background: rgba(236,72,153,0.15); box-shadow: 0 0 20px rgba(236,72,153,0.2); }

/* ===== EXPERIENCE / TIMELINE ===== */
.experience { background: var(--bg); }
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--de), var(--ce), var(--ds));
}
.timeline-item {
  position: relative; padding-left: 60px; margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: 12px; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--de); border: 3px solid var(--bg);
  box-shadow: 0 0 12px rgba(0,212,255,0.5);
}
.timeline-dot.edu-dot { background: var(--ds); box-shadow: 0 0 12px rgba(16,185,129,0.5); }
.timeline-content {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.5rem; transition: all 0.3s;
}
.timeline-content:hover { border-color: rgba(0,212,255,0.25); transform: translateX(4px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.timeline-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}
.timeline-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); }
.timeline-company { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--de); font-weight: 500; margin-top: 0.2rem; }
.timeline-date {
  font-size: 0.78rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 50px;
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.2); color: var(--de);
  white-space: nowrap; flex-shrink: 0;
}
.timeline-content p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.timeline-tags span {
  font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 4px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--muted);
}

/* ===== IMPROVED ABOUT GRID (5 cards) ===== */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.about-card.featured { grid-column: 1 / -1; }

/* ===== IMPROVED HERO STATS ===== */
.hero-stats { display: flex; gap: 2rem; padding-top: 0.5rem; }
.stat { display: flex; flex-direction: column; align-items: flex-start; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.2rem; }

/* ===== IMPROVED SECTION HEADER ===== */
.section-header p.section-desc { max-width: 600px; margin: 0.75rem auto 0; }

/* ===== IMPROVED CARD HOVER ===== */
.project-card:hover { border-color: rgba(0,212,255,0.2); }
.de-header ~ .card-body { border-left: none; }

/* ===== IMPROVED CERT CARD ===== */
.cert-card:hover { border-color: rgba(0,212,255,0.2); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }

/* ===== IMPROVED FOOTER ===== */
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.5rem; }
.footer-nav a { font-size: 0.85rem; color: var(--muted); transition: color 0.3s; }
.footer-nav a:hover { color: var(--de); }

/* ===== RESPONSIVE UPDATES ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-card.featured { grid-column: 1 / -1; }
  .timeline::before { left: 16px; }
  .timeline-item { padding-left: 48px; }
  .timeline-dot { left: 8px; }
  .hero-stats { gap: 1.5rem; }
}
@media (max-width: 600px) {
  .about-grid { grid-template-columns: 1fr; }
  .timeline-header { flex-direction: column; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .btn-ghost { width: 100%; justify-content: center; }
}

/* ===== TIMELINE BULLETS ===== */
.timeline-bullets {
  list-style: none; padding: 0; margin: 0 0 1rem 0;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.timeline-bullets li {
  font-size: 0.875rem; color: var(--muted); line-height: 1.65;
  padding-left: 1.2rem; position: relative;
}
.timeline-bullets li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--de); flex-shrink: 0;
}
.timeline-bullets li strong { color: var(--white); font-weight: 600; }

/* DS dot colour */
.timeline-dot.ds-dot { background: var(--ce); box-shadow: 0 0 12px rgba(168,85,247,0.5); }

/* ===== NEW CERT CARDS ===== */
.wqu-cert { border-top: 3px solid #a855f7; }
.wqu-cert .cert-logo { color: #a855f7; }
.besa-cert { border-top: 3px solid #fbbf24; }
.besa-cert .cert-logo { color: #fbbf24; }

/* Clickable cert badge links */
.cert-badge-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 4px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--de); transition: all 0.3s;
}
.cert-badge-link:hover { border-color: var(--de); background: rgba(0,212,255,0.1); }
.cert-badge-link .fa-external-link-alt { font-size: 0.6rem; }

/* ===== CV DROPDOWN ===== */
.cv-dropdown { position: relative; display: inline-block; }
.cv-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  background: transparent; color: var(--muted);
  border: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: all 0.3s;
  font-family: inherit;
}
.cv-toggle:hover { border-color: var(--ds); color: var(--ds); }
.cv-chevron { font-size: 0.7rem; transition: transform 0.3s; }
.cv-dropdown.open .cv-chevron { transform: rotate(180deg); }
.cv-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  min-width: 210px; overflow: hidden; z-index: 200;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.cv-dropdown.open .cv-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.cv-menu a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.8rem 1.1rem; font-size: 0.875rem; font-weight: 500;
  color: var(--muted); transition: all 0.2s; border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.cv-menu a:last-child { border-bottom: none; }
.cv-menu a:hover { background: rgba(0,212,255,0.08); color: var(--white); }
.cv-menu a i { width: 16px; }
.cv-menu a:nth-child(1) i { color: var(--de); }
.cv-menu a:nth-child(2) i { color: var(--ce); }
.cv-menu a:nth-child(3) i { color: var(--ds); }
