/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d0d0d;
  color: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Background & Particles ===== */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.2;
}

.glow.one {
  width: 400px;
  height: 400px;
  background: #921577;
  top: 10%;
  left: 5%;
}

.glow.two {
  width: 500px;
  height: 500px;
  background: #00ffff;
  bottom: 5%;
  right: 10%;
}

.particles {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  animation-name: rise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes rise {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-110vh);
    opacity: 0;
  }
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 1px;
}

.brand span {
  color: #00ffff;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  transition: 0.3s;
  font-size: 1rem;
}

.nav-links a:hover {
  color: #00ffff;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy .eyebrow {
  text-transform: uppercase;
  color: #00ffff;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.hero-copy h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-copy h1 .accent {
  color: #ff00c8;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #ccc;
  max-width: 500px;
}

.cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: #00ffff;
  color: #000;
  border: none;
}

.btn-primary:hover {
  background: #00bbbb;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0,255,255,0.3);
}

.btn-secondary {
  border: 2px solid #ff00c8;
  color: #ff00c8;
  background: transparent;
}

.btn-secondary:hover {
  background: #ff00c8;
  color: #000;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.stat span {
  font-size: 0.85rem;
  color: #aaa;
}

.hero-visual .profile-card {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

.profile-frame {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid #00ffff;
  box-shadow: 0 0 20px rgba(0,255,255,0.3);
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.badge {
  display: inline-block;
  background: rgba(255,0,200,0.2);
  color: #ff00c8;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid rgba(255,0,200,0.3);
}

/* ===== Sections ===== */
section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 1rem;
  color: #aaa;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Cards ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.05);
}

.card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-5px);
  border-color: rgba(0,255,255,0.3);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.card p {
  color: #bbb;
  line-height: 1.5;
  font-size: 0.9rem;
}

.course-date {
  font-size: 0.8rem;
  color: #00ffff;
  margin-bottom: 0.8rem;
}

/* ===== Chips ===== */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.chip {
  background: rgba(0,255,255,0.15);
  color: #00ffff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: 0.2s;
}

.chip:hover {
  background: rgba(0,255,255,0.3);
}

/* ===== Timeline ===== */
.timeline {
  border-left: 2px solid #00ffff;
  padding-left: 2rem;
  margin-left: 1rem;
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0;
  width: 12px;
  height: 12px;
  background: #00ffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ffff;
}

.timeline-item .topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.role {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.org {
  font-size: 0.85rem;
  color: #00ffff;
}

.date {
  font-size: 0.8rem;
  color: #888;
}

.timeline-item ul {
  list-style: none;
  padding-left: 0;
}

.timeline-item li {
  color: #bbb;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.timeline-item li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: #ff00c8;
}

/* ===== Projects ===== */
.project-card {
  text-align: center;
}

.project-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* ===== Contact ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,0,200,0.1);
  color: #ff00c8;
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  transition: 0.3s;
  border: 1px solid rgba(255,0,200,0.2);
  width: fit-content;
}

.contact-pill:hover {
  background: rgba(255,0,200,0.2);
  transform: translateX(5px);
}

.availability {
  color: #00ff88;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #888;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: #00ffff;
  font-size: 0.8rem;
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .lead {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .cta {
    justify-content: center;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .hero-copy h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .timeline {
    margin-left: 0;
    padding-left: 1.5rem;
  }
  
  .timeline-item::before {
    left: -1.8rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  section {
    padding: 3rem 0;
  }
}

/* Mobile menu active state (will be toggled by JS) */
.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  padding: 1rem;
  text-align: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ===== Certifications Card ===== */
.certifications-card {
  margin-bottom: 1.5rem;
}