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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #081120;
  color: #e8f1ff;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* =========================
   BACKGROUND EFFECTS
========================= */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 170, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 170, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -3;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.14;
  z-index: -2;
  pointer-events: none;
}

.glow-1 {
  top: -80px;
  left: -80px;
  background: #00ffaa;
}

.glow-2 {
  bottom: -120px;
  right: -100px;
  background: #00b7ff;
}

/* =========================
   GLOBAL LAYOUT
========================= */
.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-heading {
  margin-bottom: 40px;
}

.section-label {
  color: #00ffaa;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #ffffff;
}

.accent-text {
  color: #00ffaa;
  text-shadow: 0 0 10px rgba(0, 255, 170, 0.4);
}

/* =========================
   HEADER / NAV
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(5, 14, 30, 0.75);
  border-bottom: 1px solid rgba(0, 255, 170, 0.12);
}

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

.logo {
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  color: #ffffff;
  letter-spacing: 1px;
}

.logo-bracket {
  color: #00ffaa;
}

.logo-text {
  color: #e8f1ff;
}

.navbar {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: #c8d8f2;
  text-decoration: none;
  font-size: 0.96rem;
  transition: 0.25s ease;
  position: relative;
}

.nav-links a:hover {
  color: #00ffaa;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #00ffaa;
  box-shadow: 0 0 10px rgba(0, 255, 170, 0.65);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 20px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: #00ffaa;
  border-radius: 2px;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: bold;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #00ffaa, #00b7ff);
  color: #05111f;
  box-shadow: 0 0 18px rgba(0, 255, 170, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 255, 170, 0.35);
}

.btn-secondary {
  background: rgba(8, 20, 38, 0.7);
  color: #e8f1ff;
  border: 1px solid rgba(0, 255, 170, 0.28);
}

.btn-secondary:hover {
  border-color: #00ffaa;
  color: #00ffaa;
  box-shadow: 0 0 16px rgba(0, 255, 170, 0.15);
}

/* =========================
   HERO
========================= */
.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  color: #00ffaa;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 760px;
}

.hero-description {
  font-size: 1.05rem;
  color: #bdd0ee;
  max-width: 640px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: rgba(8, 20, 38, 0.72);
  border: 1px solid rgba(0, 255, 170, 0.14);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.18);
}

.stat-card h3 {
  color: #00ffaa;
  margin-bottom: 10px;
  font-size: 1rem;
}

.stat-card p {
  color: #bfd3f2;
  font-size: 0.95rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.terminal-card {
  width: 100%;
  max-width: 460px;
  background: rgba(5, 12, 24, 0.96);
  border: 1px solid rgba(0, 255, 170, 0.18);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 30px rgba(0, 255, 170, 0.12),
    0 20px 40px rgba(0, 0, 0, 0.35);
}

.terminal-header {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 255, 170, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #16304d;
}

.terminal-header span:nth-child(1) {
  background: #ff5f56;
}

.terminal-header span:nth-child(2) {
  background: #ffbd2e;
}

.terminal-header span:nth-child(3) {
  background: #27c93f;
}

.terminal-body {
  padding: 22px;
  font-family: "Courier New", Courier, monospace;
  color: #d8fff1;
  min-height: 300px;
}

.terminal-body p {
  margin-bottom: 10px;
}

.terminal-green {
  color: #00ffaa;
}

/* =========================
   ABOUT
========================= */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-card {
  background: rgba(8, 20, 38, 0.74);
  border: 1px solid rgba(0, 183, 255, 0.14);
  border-radius: 18px;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 170, 0.3);
  box-shadow: 0 0 24px rgba(0, 255, 170, 0.08);
}

.about-card h3 {
  color: #00ffaa;
  margin-bottom: 14px;
}

.about-card p {
  color: #c7d8f3;
}

/* =========================
   SKILLS
========================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-card {
  background: rgba(8, 20, 38, 0.74);
  border: 1px solid rgba(0, 255, 170, 0.14);
  border-radius: 18px;
  padding: 28px;
  transition: 0.25s ease;
}

.skill-card:hover {
  border-color: rgba(0, 255, 170, 0.34);
  box-shadow: 0 0 24px rgba(0, 255, 170, 0.08);
  transform: translateY(-5px);
}

.skill-card h3 {
  color: #00ffaa;
  margin-bottom: 14px;
}

.skill-card ul {
  list-style: none;
}

.skill-card li {
  color: #c7d8f3;
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
}

.skill-card li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: #00b7ff;
}

/* =========================
   EXPERIENCE / TIMELINE
========================= */
.timeline {
  position: relative;
  margin-left: 10px;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #00ffaa, rgba(0, 183, 255, 0.2));
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #00ffaa;
  box-shadow: 0 0 16px rgba(0, 255, 170, 0.5);
}

.timeline-content {
  background: rgba(8, 20, 38, 0.74);
  border: 1px solid rgba(0, 255, 170, 0.14);
  border-radius: 18px;
  padding: 24px;
}

.timeline-content h3 {
  color: #ffffff;
  margin-bottom: 8px;
}

.timeline-date {
  display: inline-block;
  color: #00ffaa;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.timeline-content p {
  color: #c7d8f3;
}

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

.project-card {
  background: linear-gradient(180deg, rgba(8, 20, 38, 0.85), rgba(6, 15, 30, 0.95));
  border: 1px solid rgba(0, 183, 255, 0.14);
  border-radius: 18px;
  padding: 28px;
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(0, 255, 170, 0.04), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.project-card:hover::before {
  transform: translateX(100%);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 170, 0.34);
  box-shadow: 0 0 24px rgba(0, 255, 170, 0.08);
}

.project-card h3 {
  color: #ffffff;
  margin-bottom: 14px;
}

.project-card p {
  color: #c7d8f3;
  margin-bottom: 18px;
}

.project-tag {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 255, 170, 0.1);
  color: #00ffaa;
  border: 1px solid rgba(0, 255, 170, 0.2);
  font-size: 0.9rem;
}

/* =========================
   CERTIFICATIONS
========================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cert-card {
  background: rgba(8, 20, 38, 0.74);
  border: 1px solid rgba(0, 255, 170, 0.14);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  transition: 0.25s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 170, 0.34);
  box-shadow: 0 0 24px rgba(0, 255, 170, 0.08);
}

.cert-card h3 {
  color: #00ffaa;
  margin-bottom: 12px;
}

.cert-card p {
  color: #c7d8f3;
}

/* =========================
   CONTACT
========================= */
.contact-card {
  background: rgba(8, 20, 38, 0.78);
  border: 1px solid rgba(0, 255, 170, 0.14);
  border-radius: 20px;
  padding: 34px;
  text-align: center;
}

.contact-card p {
  max-width: 760px;
  margin: 0 auto 24px;
  color: #c7d8f3;
  font-size: 1.02rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  border-top: 1px solid rgba(0, 255, 170, 0.12);
  background: rgba(5, 12, 24, 0.9);
  padding: 24px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer p {
  color: #9fb4d5;
}

.footer-note {
  color: #00ffaa;
}

/* =========================
   SCROLLBAR
========================= */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #07101c;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#00ffaa, #00b7ff);
  border-radius: 999px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px) {
  .hero-container,
  .about-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 60px;
  }

  .hero-visual {
    margin-top: 10px;
  }
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 76px;
    right: 1rem;
    width: 260px;
    background: rgba(5, 14, 30, 0.98);
    border: 1px solid rgba(0, 255, 170, 0.16);
    border-radius: 16px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }

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

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 80px 0;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .terminal-body {
    min-height: auto;
  }

  .about-card,
  .skill-card,
  .project-card,
  .cert-card,
  .contact-card,
  .timeline-content,
  .stat-card {
    padding: 22px;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}
