/* Base */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #0f172a;
  color: #e5e7eb;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}

/* Scrolled state — added by JS */
#navbar.scrolled {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 245, 255, 0.08);
  border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

.logo img {
  width: auto;
  height: 80px;
  display: block;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
  margin-right: 20px;
}

.nav-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #00f5ff;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.7);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 25px;
  background: #00f5ff;
  border-radius: 2px;
  transition: all 0.4s ease;
}

.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(5px, -5px);
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 97px;
    right: 0;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    width: 200px;
    height: 100vh;
    padding: 20px;
    display: none;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
  }

  .nav-links.active {
    display: flex;
    gap: 40px;
  }

  .hamburger {
    display: flex;
    margin-right: 20px;
  }

  .logo img {
    width: auto;
    height: 70px;
  }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 50px;
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  width: 100%;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.hero-text {
  z-index: 1;
}

.hero-text p {
  margin: 0;
  font-size: 1.2rem;
  color: #a1a1a1;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 800;
  margin: 10px 0;
}

.hero-text h1 span {
  color: #00f5ff;
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.7);
}

.hero-sub {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #cbd5e1;
  min-height: 1.5em; /* fallback height so layout doesn't shift */
}

.hero-image {
  width: 400px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

.hero-image img {
  width: 100%;
  object-fit: cover;
  border-radius: 60px 15px 60px 15px;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
  transition: transform 0.4s ease;
}

.hero-image img:hover {
  transform: translateY(-10px);
}

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

  .hero-image {
    margin-top: 20px;
    width: 300px;
  }

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

/* ── Section Spacing ── */
section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #e5e7eb;
  margin-bottom: 60px;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.skill-card {
  background: #111827;
  color: #00f5ff;
  font-weight: 600;
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
  transition: 0.3s ease;
}

.skill-card:hover {
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
  transform: translateY(-3px);
}

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

.project-card {
  background: #111827;
  border-radius: 12px;
  padding: 24px;
  text-align: left;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card:hover {
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
  object-fit: cover;
  height: 180px;
}

.project-card h3 {
  color: #00f5ff;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.4);
  font-size: 1rem;
}

.project-short {
  color: #94a3b8;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

/* Tech tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  background: rgba(0, 245, 255, 0.08);
  color: #00f5ff;
  border: 1px solid rgba(0, 245, 255, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Project buttons row */
.project-btns {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
 
.btn{
  margin-top: 20px;
}
/* Secondary button */
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #00f5ff;
  border: 1px solid rgba(0, 245, 255, 0.5);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
  background: rgba(0, 245, 255, 0.08);
  border-color: #00f5ff;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.3);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: #00f5ff;
  color: #0f172a;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.6);
  transition: 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.9);
  transform: translateY(-2px);
}

.btn-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

/* ── About ── */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.97rem;
}

.about-image {
  width: 500px;
  max-width: 100%;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  object-fit: cover;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
  transition: transform 0.4s ease;
}

.about-image img:hover {
  transform: translateY(-10px);
}

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

  .about-image {
    margin-top: 20px;
    width: 300px;
    max-width: 100%;
  }
  
}

/* ── Contact ── */
.contact-text {
  color: #cbd5e1;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1rem;
}

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

/* ── Footer ── */
.footer {
  background: #0a1020;
  padding: 3rem 1rem;
  text-align: center;
  border-top: 1px solid rgba(0, 245, 255, 0.15);
}

.footer h3 {
  color: #00f5ff;
  margin-bottom: 0.5rem;
}

.footer a {
  color: #fff;
  margin: 0 10px;
  transition: 0.3s;
  text-decoration: none;
}

.footer a:hover {
  color: #00f5ff;
}

.copy {
  color: #4b5563;
  font-size: 0.85rem;
  margin-top: 16px;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #111827;
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 16px;
  padding: 40px;
  max-width: 640px;
  width: 100%;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.1);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  color: #00f5ff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: 0.2s;
}

.modal-close:hover {
  color: #fff;
  transform: scale(1.2);
}

.modal-content h2 {
  color: #00f5ff;
  font-size: 1.4rem;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.4);
}

.modal-content p {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.modal-content .modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.modal-content .modal-tags span {
  background: rgba(0, 245, 255, 0.08);
  color: #00f5ff;
  border: 1px solid rgba(0, 245, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .modal {
    padding: 28px 20px;
  }
}
