/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #0b1120;
  color: #e1e1e1;
  scroll-behavior: smooth;
  padding: 0 6vw;



}

/* ================= NAVBAR ================= */


/* Navigation Buttons */
.navbar {
  font-family: -apple-system, BlinkMacSystemFont, "San Francisco",
    "Segoe UI", Helvetica, Arial, sans-serif;

  position: sticky;
  top: 0;
  width: 100%;

  padding: 0.9rem 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(15, 23, 42, 0.65);
  /* translucent */
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-right-radius: 30px;
  border-bottom-left-radius: 30px;
  z-index: 100;
}

.nav-center {
  display: flex;
  gap: 2rem;
}

.nav-center a {
  text-decoration: none;
  color: #e5e7eb;
  font-size: 1rem;
  font-weight: 500;

  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  /* pill shape */

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.15s ease;
}

.nav-center a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-center a:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 480px) {
  .nav-center {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  .nav-center a {
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
  }
}

.nav-center a.active {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
}


/* ================= HERO ================= */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;

  padding: 4rem 6rem;
  border-radius: 20px;

   background: radial-gradient(circle at top, #1e293b, #020617);
  color: #e5e7eb;

  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
}

.hero-text {
  max-width: 600px;
}

.intro {
  font-size: 1.3rem;
  color: #22c55e;
  margin-bottom: 0.6rem;
}

.main-heading {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: #e5e7eb;
}

.subtext {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.blue {
  color: #6366f1;
}

.green {
  color: #22c55e;
}

.btn {
  padding: 0.8rem 1.9rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

.primary {
  background: #6366f1;
  color: #fff;
}

.primary:hover {
  background: #4f46e5;
}

.outline {
  border: 2px solid #6366f1;
  color: #6366f1;
  margin-left: 1rem;
}

.outline:hover {
  background: #6366f1;
  color: #fff;
}

.hero-image {
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 420px;
  height: auto;

  border-radius: 1rem;
  border: 4px solid #1e293b;
}

.card-bottom {
  margin-top: 0.7rem;
  background: #1e293b;
  padding: 0.8rem 1.2rem;
  border-radius: 0.7rem;

  color: #fff;
  font-size: 0.9rem;

  display: flex;
  justify-content: center;
}

.github-icon {

  width: 20px;
  height: 20px;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .hero {
    padding: 3rem;
    gap: 3rem;
  }

  .main-heading {
    font-size: 2.6rem;
  }

  .hero-image img {
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .intro {
    font-size: 1.1rem;
  }

  .main-heading {
    font-size: 2.1rem;
  }

  .subtext {
    font-size: 1.1rem;
  }

  .hero-image img {
    max-width: 280px;
  }

  .card-bottom {

    justify-content: center;
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .main-heading {
    font-size: 1.8rem;
  }

  .hero-image img {
    max-width: 240px;
  }

  .btn {
    padding: 0.7rem 1.6rem;
    font-size: 0.9rem;
  }
}


/* ================= BUTTON ================= */
.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
}

.primary {
  background: #6366f1;
  color: #fff;
}

.primary:hover {
  background: #4f46e5;
}

/* ================= SECTIONS ================= */
section {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(14px);
}

section h2 {
  color: #d5d5d5;
  text-align: center;
  font-size: 40px;
}

/* ================= SLIDER ================= */
#skills {
  padding: 3rem;
  color: white;
}

/* Container */
.slider {
  position: relative;
  width: 100%;
  height: clamp(260px, 50vh, 520px);
  /* auto height */
  border-radius: 24px;

  background: linear-gradient(145deg, #0f172a, #020617);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);

  overflow: hidden;
  touch-action: none;
}

/* Draggable icons */
.slide {
  position: absolute;

  /* 🔥 AUTO SIZE FOR ALL SCREENS */
  width: clamp(56px, 10vw, 110px);
  height: clamp(56px, 10vw, 110px);

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.08);
  border-radius: clamp(12px, 2vw, 20px);

  cursor: grab;
  user-select: none;
  touch-action: none;

  transition: transform 0.15s ease;
}

.slide img {
  width: 60%;
  height: auto;
  pointer-events: none;
}

.slide:active {
  cursor: grabbing;
  transform: scale(0.95);
}
/* Technical skill */

.skills-section {
  max-width: auto;
  margin: auto;
  padding: 4rem 2rem;
}

.skills-section h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3rem;
}

.skill {
  margin-bottom: 2.2rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

/* Progress Bar Background */
.progress {
  width: 100%;
  height: 14px;
  background: linear-gradient(90deg, #140013, #2a0025);
  border-radius: 10px;
  overflow: hidden;
}

/* Progress Fill */
.progress-bar {
  width: 0;
  transition: width 1.5s ease-in-out;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    #00f0ff,
    #38ffff
  );
  box-shadow: 0 0 12px #00f0ff;
  transition: width 1.5s ease-in-out;
}
/* ====Certifcations==== */
.certifications {
  padding: 4rem 2rem;
  background: radial-gradient(circle at top, #1e293b, #020617);
  color: #e5e7eb;
  text-align: center;
}

.certifications h2 {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: 1200px;
  margin: auto;
}

.cert-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 1.6rem;
  text-align: left;

  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cert-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: #f8fafc;
}

.issuer {
  font-size: 0.85rem;
  color: #cbd5f5;
  display: block;
}

.date {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.6rem;
  display: block;
}

.credential {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.6rem;
}

.link {
  color: #818cf8;
  font-size: 0.85rem;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.tags span {
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

/* ===Projects=== */
.projects {
  display: flex;
  justify-content: space-between;

}

.container1 {
  width: 50%;
  max-width: 800px;
  background: black;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.container2 {
  width: 50%;
  max-width: 800px;
  background: black;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

/* ===== Run Button ===== */
#runBtn {
  align-self: center;
  background: #00ff88;
  color: black;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 10px;
  border-radius: 4px;
}

/* ===== Terminal Output ===== */
#terminal {

  flex: 1;
  min-height: 260px;
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid #00ff88;
  padding: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
}

/* ===== Input Line ===== */
.input-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-line span {
  font-size: 16px;
}

/* ===== Input Field ===== */
input {
  background: black;
  color: #00ff88;
  border: none;
  outline: none;
  width: 100%;
  font-family: monospace;
  font-size: 14px;
}

/* ===============================
   📱 Mobile (Small Screens)
================================ */
@media (max-width: 480px) {
  #terminal {
    min-height: 220px;
    font-size: 12px;
  }

  input {
    font-size: 12px;
  }

  #runBtn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Projects Button */
.flutter{
  margin-top: 30px;
}
.flutter a {
  padding: 0.8rem 1.9rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  background: #00ff88;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  transition: 0.3s ease;
}

.flutter a:hover {
  background: #06a35a;
}

/* ================= FOOTER ================= */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 60px 20px 30px;
  font-family: "Segoe UI", sans-serif;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-column h3 {
  color: #ffffff;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-column a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #38bdf8;
}

/* Contact email */
.contact-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}


/* Icons */
.footer-icon {
  width: 20px;
  height: 20px;
}

.social-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.social-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons img:hover {
  transform: translateY(-4px);
  opacity: 0.8;
}

/* Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  font-size: 0.9rem;
}

/* ================= MEDIA QUERIES ================= */


/* ===============================
   📱 Tablets
================================ */
@media (min-width: 481px) and (max-width: 768px) {
  #terminal {
    min-height: 300px;
    font-size: 13px;
  }
}

/* ===============================
   💻 Laptops
================================ */
@media (min-width: 769px) and (max-width: 1200px) {
  #terminal {
    min-height: 360px;
    font-size: 14px;
  }
}

/* ===============================
   🖥️ Large Screens
================================ */
@media (min-width: 1201px) {
  .container {
    max-width: 900px;
  }

  #terminal {
    min-height: 420px;
    font-size: 15px;
  }
}