/* =========================================
   VARIABLES & BASE RESET
========================================= */
:root {
  --bg-dark: #06070f;
  --bg-card: rgba(15, 18, 35, 0.62);
  --border-glass: rgba(168, 85, 247, 0.25);
  --border-hover: rgba(56, 189, 248, 0.65);
  --purple: #a855f7;
  --blue: #38bdf8;
  --cyan: #22d3ee;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  backdrop-filter: blur(14px);
  background: rgba(6, 7, 15, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-text span {
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.btn-nav {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff !important;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--blue);
  margin-bottom: 1.4rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
}

.hero-subtitle .highlight {
  color: var(--blue);
  font-weight: 600;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  border-color: var(--blue);
}

/* Hero Social Media Pills */
.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(15, 18, 35, 0.75);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.social-pill:hover {
  color: #fff;
  transform: translateY(-2px);
}

.social-pill.linkedin:hover {
  border-color: #0a66c2;
  background: rgba(10, 102, 194, 0.2);
  box-shadow: 0 4px 16px rgba(10, 102, 194, 0.35);
}

.social-pill.instagram:hover {
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.2);
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.35);
}

.social-pill.facebook:hover {
  border-color: #1877f2;
  background: rgba(24, 119, 242, 0.2);
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.35);
}

/* =========================================
   SECTION HEADERS & GLASS CARDS
========================================= */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.14);
}

/* =========================================
   EDUCATION & SKILLS
========================================= */
.edu-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: stretch;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.card-icon.purple {
  background: rgba(168, 85, 247, 0.16);
  color: var(--purple);
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue);
  text-transform: uppercase;
}

.edu-skills-grid h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0.3rem 0;
}

.card-org {
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.card-text {
  color: #cbd5e1;
  margin-bottom: 1.4rem;
}

.edu-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.edu-highlights span {
  font-size: 0.9rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.edu-highlights i {
  color: var(--blue);
}

.skills-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem;
}

.skill-icon {
  min-width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.skill-icon.blue {
  background: rgba(56, 189, 248, 0.15);
  color: var(--blue);
}

.skill-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple);
}

.skill-icon.cyan {
  background: rgba(34, 211, 238, 0.15);
  color: var(--cyan);
}

.skill-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.skill-item p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* =========================================
   CERTIFICATES GALLERY
========================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cert-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cert-img-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: #0b0e1e;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.cert-img-link:hover .cert-img {
  transform: scale(1.06);
}

.cert-fallback {
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(56, 189, 248, 0.15));
  color: var(--text-main);
}

.cert-fallback i {
  font-size: 2.2rem;
  color: var(--blue);
}

.cert-fallback span {
  font-family: var(--font-heading);
  font-weight: 600;
}

.cert-fallback small {
  color: var(--text-muted);
}

.cert-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 15, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-hover-overlay span {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cert-img-link:hover .cert-hover-overlay {
  opacity: 1;
}

.cert-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cert-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.issuer-badge {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple);
}

.issuer-badge.gold {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

.issuer-badge.blue {
  background: rgba(56, 189, 248, 0.15);
  color: var(--blue);
}

.cert-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cert-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.cert-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  flex: 1;
}

.verify-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.verify-link:hover {
  color: var(--purple);
}

/* =========================================
   PROJECTS
========================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.project-icon {
  font-size: 1.6rem;
  color: var(--purple);
}

.project-top a {
  color: var(--text-muted);
  font-size: 1.3rem;
  transition: color 0.2s;
}

.project-top a:hover {
  color: var(--blue);
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  margin-bottom: 0.6rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.3rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--blue);
}

/* =========================================
   CONTACT & SOCIAL GRID
========================================= */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 0.4rem 0 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.social-connect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: var(--text-main);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
}

.contact-item.linkedin:hover {
  border-color: #0a66c2;
  background: rgba(10, 102, 194, 0.2);
}

.contact-item.instagram:hover {
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.2);
}

.contact-item.facebook:hover {
  border-color: #1877f2;
  background: rgba(24, 119, 242, 0.2);
}

.contact-item.github:hover {
  border-color: var(--blue);
  background: rgba(56, 189, 248, 0.15);
}

.copy-btn {
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: rgba(6, 7, 15, 0.75);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.full-width {
  width: 100%;
}

.form-status {
  font-size: 0.88rem;
  color: #22c55e;
  min-height: 1.2rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 1rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-socials a:hover {
  color: #fff;
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 992px) {
  .edu-skills-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .cert-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(6, 7, 15, 0.96);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .cert-grid,
  .projects-grid,
  .social-connect-grid {
    grid-template-columns: 1fr;
  }
}