/* ----------------------------
   Global styles
-----------------------------*/
:root {
  --bg: #111217;
  --bg-alt: #181a20;
  --accent: #00c4ff;
  --text-main: #f5f7fb;
  --text-muted: #c1c6d4;
  --border-soft: #252733;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.55);
}

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

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1a2030 0, #05060a 45%, #010108 100%);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Layout helpers */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Particles canvas */
#particles {
  position: fixed;
  inset: 0;
  z-index: -3;
}

/* ----------------------------
   Header & Navigation
-----------------------------*/
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(7, 10, 18, 0.9), rgba(7, 10, 18, 0.3) 80%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, #00f5ff, #00a3ff);
  color: #05060a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(0, 196, 255, 0.7);
}
.brand-text {
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* nav links */
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.nav-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* mobile nav */
@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    right: 20px;
    top: 56px;
    flex-direction: column;
    background: #11131d;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 14px;
    display: none;
  }
  .nav-links.show {
    display: flex;
  }
}

/* ----------------------------
   Hero Section
-----------------------------*/
.hero {
  padding: 120px 0 80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

/* profile photo circle */
.hero-photo-wrapper {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 196, 255, 0.22), rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7);
  margin-inline: auto;
  padding: 8px;
}
.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(0, 196, 255, 0.65);
}

.hero-hi {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.hero-name {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero-name span {
  color: var(--accent);
}
.hero-role {
  margin-top: 4px;
  font-size: 18px;
  color: var(--accent);
  font-weight: 600;
}
.hero-text {
  margin-top: 16px;
  max-width: 520px;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-buttons {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* buttons */
.btn {
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #020308;
  box-shadow: 0 10px 30px rgba(0, 196, 255, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 196, 255, 0.6);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #f5f7fb;
}
.btn-outline:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* hero socials */
.hero-socials {
  margin-top: 20px;
  display: flex;
  gap: 16px;
}
.hero-socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-main);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.hero-socials a:hover {
  background: var(--accent);
  color: #020308;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ----------------------------
   Sections
-----------------------------*/
.section {
  padding: 64px 0;
}
.section.alt {
  background: rgba(8, 10, 18, 0.8);
}
.section-title {
  font-size: 26px;
  margin-bottom: 18px;
}
.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* About */
.about-text {
  max-width: 720px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Timeline (Education / Experience) */
.timeline {
  display: grid;
  gap: 18px;
}
.timeline-item {
  border-radius: var(--radius-md);
  background: #141826;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.timeline-item h3 {
  font-size: 17px;
}
.timeline-meta {
  font-size: 13px;
  color: var(--accent);
  margin: 4px 0 8px;
}
.timeline-item p {
  color: var(--text-muted);
}

/* Projects */
.projects-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.project-card {
  border-radius: var(--radius-md);
  background: #141826;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  border-color: rgba(0, 196, 255, 0.5);
}

.project-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.project-content {
  padding: 14px 16px 16px;
}
.project-content h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.project-content p {
  font-size: 14px;
  color: var(--text-muted);
}
.tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags span {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 196, 255, 0.12);
}
.project-links {
  margin-top: 10px;
}
.project-links a {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

/* Skills with bars */
.skills-grid {
  display: grid;
  gap: 16px;
}
.skill-item {
  background: #141826;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.skill-level {
  font-size: 12px;
  color: var(--accent);
}
.skill-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #252738;
  margin-top: 8px;
  overflow: hidden;
}
.skill-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 196, 255, 0.9), rgba(0, 255, 207, 0.8));
}

/* Certificates */
.cert-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.cert-item {
  background: #11131e;
  border-radius: var(--radius-md);
  padding: 8px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.cert-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.cert-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border-color: rgba(0, 196, 255, 0.6);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}
.lightbox.show {
  display: flex;
}
.lb-inner {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}
#lb-image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.9);
}
#lb-caption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  border: none;
  background: var(--accent);
  color: #020308;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}
.lb-close {
  top: 20px;
  right: 20px;
}
.lb-prev {
  left: 20px;
  top: 50%;
}
.lb-next {
  right: 20px;
  top: 50%;
}

/* Contact section */
.contact-section {
  background: #111217;
}
.contact-title {
  text-align: center;
}
.contact-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border-radius: 0;
  border: 1px solid #444;
  font-size: 14px;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}
.contact-btn {
  margin-top: 10px;
  align-self: center;
  min-width: 180px;
}

/* Footer */
.footer {
  padding: 20px 0 28px;
  background: #05060b;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.footer p + p {
  margin-top: 4px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive tweaks */
@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    margin-inline: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-socials {
    justify-content: center;
  }
}
