:root {
  --bg: #0f1724;
  --card: #ffffff;
  --muted: #7b7f8b;
  --accent: #00d4ff;
  --accent-2: #6a8cff;
  --text: #0b1220;
  --glass: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --maxw: 1100px;
}

/* Light theme variables (default) */
:root[data-theme="light"] {
  --bg: linear-gradient(135deg, #f7f9fc, #eef6ff);
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #4facfe;
  --accent-2: #00f2fe;
  --text: #071022;
  --glass: rgba(10, 14, 20, 0.03);
}

/* Dark theme overrides */
:root[data-theme="dark"] {
  --bg: linear-gradient(135deg, #0f1724, #121827);
  --card: #0b1220;
  --muted: #9aa3b2;
  --accent: #00d4ff;
  --accent-2: #6a8cff;
  --text: #e6eef8;
  --glass: rgba(255, 255, 255, 0.03);
}

/* Reset + Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}



/* NAV */
.site-header {
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 18px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all .18s;
}

.nav-link:hover {
  background: var(--glass);
}

.controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

.hamburger {
  display: none;
}

/* S Logo in Nav */
#s-logo {
  width: 50px;
  /* smaller for nav */
  height: 50px;
  cursor: pointer;
  /* shows it's interactive */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

/* Hover effect: slight scale and color glow */
#s-logo:hover {
  transform: scale(1.15);
}

/* Optional: Responsive for mobile nav */
@media (max-width: 768px) {
  #s-logo {
    width: 40px;
    height: 40px;
  }
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  /* space between logo and text */
}

/* HERO */
.hero {
  padding: 56px 0;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: center;
}

.hero-title {
  font-size: 2.1rem;
  margin: 0 0 8px;
}

.accent {
  color: var(--accent);
}

.hero-sub {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-weight: 600;
}

.hero-desc {
  color: var(--muted);
  max-width: 54ch;
}

.hero-cta {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  background: var(--text);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  border: 0;
  cursor: pointer;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text);
}

/* HERO RIGHT IMAGE ONLY */
.hero-right {
  display: flex;
  justify-content: center;
  /* centers the card horizontally */
  align-items: center;
  /* centers the card vertically */
}

.hero-right .profile-card {
  background: transparent;
  /* remove card background if not needed */
  padding: 0;
  box-shadow: none;
  /* remove shadow if not needed */
}

.hero-right .profile-img {
  width: 150px;
  /* adjust size */
  height: 217px;
  border-radius: 5%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-right .profile-img:hover {
  transform: scale(1.05);
  /* slight zoom on hover */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero-right {
    margin-top: 30px;
  }

  .hero-right .profile-img {
    width: 150px;
    /* adjust size */
    height: 217px;
  }
}

@media (max-width: 480px) {
  .hero-right .profile-img {
    width: 150px;
    /* adjust size */
    height: 229px;
  }
}

/* Neon multi-color glowing effect behind profile image */
.hero-right .profile-card {
  position: relative;
  display: inline-block;
}

.hero-right .profile-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  /* slightly bigger than profile image */
  height: 260px;
  /* match profile image height */
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      #00d4ff,
      #6a8cff,
      #ff00ff,
      #00ff99,
      #00d4ff);
  filter: blur(40px);
  opacity: 0.7;
  z-index: -1;
  animation: neonPulse 3s linear infinite, neonRotate 6s linear infinite;
}

/* Soft pulsing */
@keyframes neonPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Slow rotation of colors */
@keyframes neonRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}



/* Sections */
.section {
  padding: 60px 0;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  margin-bottom: 12px;
  color: #4facfe;
  font-size: 2rem;
}

.section p {
  color: var(--muted);
  margin-bottom: 18px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  /* Video slightly larger */
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.about-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
}

.resume-video {
  width: 100% !important;
  height: 100% !important;
  max-width: 600px;
  /* Desktop max width */
  aspect-ratio: 16 / 9;
  /* Keep perfect video ratio */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  /* Makes video fill container without distortion */
}



/* About Content */
.about-content {
  max-width: 700px;
}

.about-content h2 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 20px;
}

/* DETAILS GRID */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

/* DETAIL CARD STYLING */
.detail-card {
  background: rgba(255, 255, 255, 0.05);
  /* subtle transparent background */
  padding: 28px 22px;
  border-left: 4px solid #00aaff;
  /* accent colored left border */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-5px);
  background: rgba(0, 123, 170, 0.1);
  /* subtle hover highlight */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.detail-card h3 {
  margin-bottom: 15px;
  font-size: 1.35rem;
  color: #00aaff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-card p {
  margin-bottom: 10px;
  line-height: 1.6;
  word-wrap: break-word;
}

/* Highlight links */
.highlight-link {
  background-color: rgba(161, 170, 172, 0.8);
  padding: 4px 8px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease;
}

.highlight-link:hover {
  background-color: #0077aa;
}

/* BACK BUTTON */
.back-btn {
  margin-top: 40px;
  text-align: center;
}

.back-btn .btn {
  text-decoration: none;
  color: #fff;
  border: 1px solid #00aaff;
  padding: 12px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.back-btn .btn:hover {
  background-color: #00aaff;
  color: #fff;
  transform: translateY(-2px);
}

/* RESPONSIVE FIXES */

/* Medium screens: tablets */
@media (max-width: 1024px) {
  .details-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }

  .detail-card {
    padding: 22px 18px;
  }

  .detail-card h3 {
    font-size: 1.2rem;
  }

  .detail-card p {
    font-size: 0.98rem;
  }
}

/* Small screens: mobile portrait */
@media (max-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .detail-card {
    padding: 18px 15px;
  }

  .detail-card h3 {
    font-size: 1.1rem;
  }

  .detail-card p {
    font-size: 0.95rem;
  }

  .back-btn {
    text-align: center;
  }
}

/* Very small screens: small phones */
@media (max-width: 480px) {
  .detail-card {
    padding: 14px 17px;
  }

  .detail-card h3 {
    font-size: 1rem;
  }

  .detail-card p {
    font-size: 0.9rem;
  }

  .back-btn .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* Footer adjustments for mobile */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}


/* Tablet */
@media (max-width: 1024px) {
  .resume-video {
    max-width: 500px;
    aspect-ratio: 16 / 9;
  }

  .about-content h2 {
    font-size: 1.8rem;
  }

  .about-content p {
    font-size: 0.95rem;
    line-height: 1.65;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-content {
    max-width: 100%;
    padding: 0 16px;
  }

  .resume-video {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }

  .about-content h2 {
    font-size: 1.6rem;
  }

  .about-content p {
    font-size: 0.92rem;
    line-height: 1.6;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .resume-video {
    aspect-ratio: 16 / 9;
  }

  .about-content h2 {
    font-size: 1.4rem;
  }

  .about-content p {
    font-size: 0.88rem;
    line-height: 1.55;
  }
}



/* Skills Section */
#skills {
  padding: 60px 33px;
  max-width: 1200px;
  /* align with main content */
  margin: 0 auto;
  /* center horizontally */
  background: var(--bg);
  text-align: center;
  font-family: "Poppins", sans-serif;
}

#skills h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--accent);
}

#skills h2 span {
  display: inline-block;
  margin: 0 5px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: center;
}

.skill-card {
  background: var(--card);
  width: 130px;
  /* fixed width */
  height: 150px;
  /* fixed height */
  padding: 15px;
  /* smaller padding */
  border-radius: var(--radius);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: conic-gradient(from 0deg,
      var(--accent),
      var(--accent-2),
      var(--accent),
      var(--accent-2));
  opacity: 0;
  filter: blur(30px);
  z-index: -1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.skill-card:hover::before {
  opacity: 0.4;
  transform: scale(1.1);
}

.skill-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
  z-index: 1;
}

.skill-card p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s ease;
  z-index: 1;
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.skill-card:hover img {
  transform: scale(1.2);
}

.skill-card:hover p {
  color: var(--accent);
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
  }

  .skill-card {
    width: 110px;
    height: 140px;
    padding: 10px;
  }

  .skill-card img {
    width: 45px;
    height: 45px;
  }

  .skill-card p {
    font-size: 0.85rem;
  }
}



/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 24px;
}

/* Project Card */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--glass);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

/* Image Wrapper */
.project-img-wrapper {
  position: relative;
  overflow: hidden;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.project-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.project-card:hover .project-img {
  transform: scale(1.08);
  filter: brightness(0.85);
}

/* Project Overlay */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Buttons on Overlay */
.project-actions {
  display: flex;
  gap: 14px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.project-actions .btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-actions .btn-small:hover {
  background: var(--accent-2);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Project Name */
.project-name {
  padding: 12px 10px;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  color: #556b7f;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Project Meta */
.project-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text);
  padding: 10px 12px;
  justify-content: center;
}

.project-meta span {
  background: var(--glass);
  padding: 4px 8px;
  border-radius: 6px;
}

/* Responsive */
@media(max-width:700px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-actions {
    flex-direction: column;
  }
}

/* Scrollable Projects Container for extra projects */
.projects-scroll-container {
  position: relative;
  margin-top: 20px;
}

.projects-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 15px 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Firefox hide scrollbar */
  -ms-overflow-style: none;
  /* IE hide scrollbar */
}

.projects-scroll::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari/Opera hide scrollbar */
}

/* Project Card inside scroll */
.projects-scroll .project-card {
  min-width: 280px;
  flex: 0 0 auto;
}

/* Arrow buttons */
.projects-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 17%;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.projects-scroll-arrow:hover {
  transform: translateY(-50%) scale(1.1);
  background: var(--accent-2);
}

.projects-scroll-arrow-left {
  left: 0;
}

.projects-scroll-arrow-right {
  right: 0;
}

/* Responsive */
@media(max-width:700px) {
  .projects-scroll {
    gap: 15px;
  }

  .projects-scroll-arrow {
    padding: 8px;
  }
}

.view-all-container {
  text-align: center;
  margin-top: 30px;
}


/* Contact */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--card);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: 0 auto;
}

.contact-form .form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
  outline: none;
}

.contact-form button {
  min-width: 130px;
  padding: 14px 18px;
  cursor: pointer;
}



.form-msg {
  color: var(--accent);
  font-weight: 500;
  text-align: center;
}

/* Responsive */
@media(max-width:600px) {
  .contact-form .form-row {
    flex-direction: column;
  }
}


/* Professional Footer Design */
/* Footer */
.site-footer {
  background: var(--card);
  color: var(--text);
  padding: 60px 20px 30px;
  font-family: 'Poppins', sans-serif;
  border-top: 2px solid var(--accent-2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
}

/* Footer Container */
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 35px;
  max-width: var(--maxw);
  margin: 0 auto 30px;
}

/* Footer Cards */
.footer-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-card h4 {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
}

.footer-card h4::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin-top: 6px;
  border-radius: 2px;
}

.footer-card ul {
  list-style: none;
  padding: 0;
}

.footer-card li {
  margin-bottom: 8px;
}

.footer-card a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.footer-card a:hover {
  color: var(--accent-2);
  transform: translateX(4px);
}

.footer-card p {
  color: var(--muted);
  margin-bottom: 6px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  border-radius: 50%;
  background: var(--glass);
  color: var(--text);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
}

.social-icons a i {
  color: inherit;
}

/* Brand colors on hover */
.social-icons a[aria-label="GitHub"]:hover {
  background: #181717;
  color: #fff;
}

.social-icons a[aria-label="LinkedIn"]:hover {
  background: #0077B5;
  color: #fff;
}

.social-icons a[aria-label="Twitter"]:hover {
  background: #1DA1F2;
  color: #fff;
}

.social-icons a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

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

/* Responsive Footer */
@media (max-width: 700px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-card h4::after {
    margin: 6px auto 0;
  }
}

/* Reveal animation helper */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-card {
    flex-direction: column;
    align-items: center;
  }


  .form-row {
    flex-direction: column;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

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

.nav-link.active {
  color: var(--accent);
  /* highlighted link color */
  font-weight: 600;
}

/* ---------------- MOBILE NAV ---------------- */
@media (max-width: 768px) {

  /* Hide normal nav */
  .nav {
    display: none;
  }

  /* Show hamburger */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 27px;
    height: 22px;
    cursor: pointer;
    padding: 0;
    position: relative;
    font-size: 0;
    z-index: 2100;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #53575f;
    border-radius: 4px;
    transition: all 0.3s ease;
  }

  /* Hamburger animation (X) */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Mobile nav container */
  .nav.mobile-active {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;

    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;

    background: var(--bg);
    backdrop-filter: blur(12px);
    padding: 80px 24px 24px;

    transition: right 0.4s ease;
    z-index: 2000;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav.mobile-active.show {
    right: 0;
  }

  /* Mobile nav links */
  .nav.mobile-active .nav-link {
    width: 100%;
    font-size: 1.05rem;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    transition: background 0.25s, color 0.25s, transform 0.2s;
  }

  .nav.mobile-active .nav-link:hover {
    background: var(--glass);
    color: var(--accent);
    transform: scale(1.03);
  }

  /* Nav row spacing */
  .nav-row {
    justify-content: space-between;
    align-items: center;
  }

}

/* Prevent body scroll when nav is open */
body.no-scroll {
  overflow: hidden;
  height: 100%;
}

/* ========================= */
/* Professional & modern button hover */
/* ========================= */

.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 0;
  top: 50%;
  left: -10%;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%) rotate(25deg);
  transition: all 0.5s ease;
}

.btn:hover::after {
  height: 300%;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Ghost Button Variant */
.btn-ghost {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.btn-ghost::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 0;
  top: 50%;
  left: -10%;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%) rotate(25deg);
  transition: all 0.5s ease;
}

.btn-ghost:hover::after {
  height: 300%;
}

.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ========================= */
/* Fixed My Details Section */
/* ========================= */
.details-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 20px;
  word-wrap: break-word;
}

.details-intro h1 {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1.2;
}

.details-intro p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 95%;
}

/* Tablet */
@media (max-width: 768px) {
  .details-intro {
    padding: 0 16px;
  }

  .details-intro h1 {
    font-size: 1.8rem;
  }

  .details-intro p {
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .details-intro {
    padding: 0 12px;
  }

  .details-intro h1 {
    font-size: 1.5rem;
  }

  .details-intro p {
    font-size: 0.95rem;
  }
}


/* Mobile adjustments */
@media (max-width: 768px) {
  .hero-grid {
    flex-direction: column;
    /* stack left and right vertically */
    align-items: center;
    /* center everything horizontally */
    text-align: center;
  }

  .hero-left {
    flex: 1 1 auto;
  }

  .hero-right {
    margin-top: 1.5rem;
    flex: 1 1 auto;
  }

  .hero-cta {
    justify-content: center;
    /* center buttons */
    flex-wrap: nowrap;
    /* keep buttons horizontal */
  }

  .hero-cta .btn {
    width: auto;
    /* natural width */
  }
}

@media (max-width: 480px) {
  .hero-cta {
    gap: 0.5rem;
    /* reduce gap on very small screens */
  }
}


/* Scroll Up Button */
#scrollUpBtn {
  position: fixed;
  bottom: 25px;
  right: 31px;
  z-index: 9999;
  /* ensure on top */
  background: #00aaff;
  color: #fff;
  border: none;
  outline: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.3s ease, background 0.3s ease;
}

#scrollUpBtn.show {
  opacity: 1;
  pointer-events: auto;
}

#scrollUpBtn:hover {
  background: #0077aa;
  transform: translateY(-5px);
}

/* Mobile adjustment */
@media (max-width: 480px) {
  #scrollUpBtn {
    width: 45px;
    height: 45px;
    font-size: 20px;
    bottom: 87px;
    right: 34px;
  }
}


#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* behind content */
  pointer-events: none;
  /* clicks go through */
}


/* Desktop navbar always visible */
@media (min-width: 992px) {
  .nav {
    display: flex !important;
    /* force navbar visible on desktop */
  }

  .hamburger {
    display: none;
    /* hide hamburger on desktop */
  }
}