/* GLOBAL */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #020617, #000000);
  color: white;
  padding-top: 80px;
  font-size: 18px;
  padding-bottom: 60px;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  align-items: center;

  padding: 15px 40px;
  background: #020617;
  backdrop-filter: blur(10px);
  border-bottom: 4px solid rgba(0,255,255,0.2)
}

.navbar h2 {
  color: #00ffff;
  margin-right: auto;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-right: 60px;
}

.navbar a {
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.navbar a:hover {
  color: #00ffff;
}

/* HERO */
.hero {
  text-align: center;
  padding: 120px 20px;
}

.profile {
  width: 200px;   /* 👈 increased size */
  height: 200px;  /* keeps it perfectly round */
  object-fit: cover;

  border-radius: 50%;
  border: 3px solid #00ffff;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.7);
}
.hero h1 {
  font-size: 56px; 
  margin-top: 20px;
}

.hero p {
  color: #94a3b8;
  font-size: 20px;
}

/* BUTTON */
button {
  margin-top: 25px;

  padding: 16px 32px;   /* increased size */
  font-size: 18px;      /* bigger text */

  border: none;
  border-radius: 10px;

  color: white;
  cursor: pointer;

  background: linear-gradient(45deg, #00ffff, #3b82f6);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);

  transition: 0.3s;
}
button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 255, 1);
}

/* SECTION */
section {
  padding: 80px 60px;
  text-align: center;
}

h2 {
  color: #00ffff;
  margin-bottom: 30px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 boxes per row */
  gap: 25px;
}

/* SKILL BOX */
.box {
  padding: 15px;
  border-radius: 15px;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(0, 255, 255, 0.3);
  transition: 0.3s;

  display: flex;                /* 👈 centers content */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
  cursor: pointer;              /* 👈 shows it's clickable */
}

.box a {
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.box a:hover {
  color: #00ffff; /* teal on hover */
}

.box img {
  transition: 0.3s;
}

.box:hover img {
  transform: scale(1.1);
}

/* CARDS */
.card {
  margin: 20px auto;
  padding: 25px;
  width: 300px;
  border-radius: 15px;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(0, 255, 255, 0.3);
  transition: 0.3s;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
}

/* INPUT */
input, textarea {
  width: 60%;
  padding: 12px;
  margin: 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

/* FOOTER FIXED */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 40px;

  background: #020617;
  backdrop-filter: blur(10px);

  border-top: 4px solid rgba(0,255,255,0.2);
  color: #ccc;

  z-index: 1000;
}

/* LINKS */
.footer-links {
  display: flex;
  gap: 20px;
  margin-right: 60px;
}

.footer a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

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

/* CONTACT SECTION */
.contact {
  text-align: center;
}

.contact form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* LABELS */
.contact label {
  text-align: left;
  color: #5eead4;
  font-weight: 500;
}

/* INPUTS */
.contact input,
.contact textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;

  border: 1px solid rgba(0, 255, 255, 0.3);
  background: #111;

  color: white;
  font-size: 16px;
  outline: none;
}

.contact input:focus,
.contact textarea:focus {
  border-color: #00ffff;
  box-shadow: 0 0 10px rgba(0,255,255,0.5);
}

/* BUTTON FULL WIDTH */
.contact button {
  width: 109%;
  margin-top: 15px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;

  max-width: 1100px; /* slightly wider */
  margin: 0 auto; /* ensures true horizontal centering */

  justify-content: center; /* centers grid items */
  align-items: stretch;
}

/* Education links styling */
.card a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.card a:hover {
  color: #00ffff; /* teal on hover */
}


.resume-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.view-btn {
  background: transparent;
  border: 1px solid #00ffff;
  color: #00ffff;
  box-shadow: none;
}

.view-btn:hover {
  background: #00ffff;
  color: black;
}

#projects,
#research {
  padding: 40px;
}

/* GRID */
#projects .card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  justify-content: center;
}
#research .card-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* CARD */
#projects .card, 
#research .card {
  position: relative;
  display: flex;
  flex-direction: column;

  padding: 25px;
  border-radius: 20px;
  color: white;

  background: #0b1120;
  border: 1px solid rgba(20, 184, 166, 0.3);

  overflow: hidden;
  transition: 0.4s ease;

  min-height: 320px; /* balanced height */
  width: 80%;
}

/* 🔥 TEAL TOP GRADIENT */
#projects .card::before ,
#research .card::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 35%;

  background: linear-gradient(
    180deg,
    #14b8a6 0%,
    rgba(20, 184, 166, 0.5) 50%,
    transparent 100%
  );

  z-index: 0;
}

/* keep content above gradient */
#projects .card > * ,
#research .card > *{
  position: relative;
  z-index: 1;
}

/* HEADING */
#projects .card h3,
#research .card h3 {
  margin-bottom: 15px;
  color: #f8fafc;
}

/* DESCRIPTION */
#projects .card p,
#research .card p {
  margin-bottom: 15px;
  color: #cbd5f5;
}

/* TAGS */
#projects .tags, 
#research .tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

#projects .tags span ,
#research .tags span{
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;

  color: #5eead4;
  border: 1px solid rgba(20, 184, 166, 0.6);
  background: rgba(20, 184, 166, 0.1);

  transition: 0.3s;
}

#projects .tags span:hover,
#research .tags span:hover {
  background: rgba(20, 184, 166, 0.3);
  transform: scale(1.05);
}

/* ✅ BOTTOM SECTION (IMPORTANT FIX) */
#projects .bottom ,
#research .bottom{
  margin-top: auto;
  text-align: center;
}

/* VIEW PROJECT LINK */
#projects .view-link,
#research .view-link {
  display: inline-block;
  margin-top: 10px;

  font-size: 18px;
  font-weight: 500;

  color: #e2e8f0;
  text-decoration: none;
  transition: 0.3s;
}

#projects .view-link:hover,
#research .view-link:hover {
  color: #5eead4;
}

/* STATUS BADGE */
.card .status {
  display: block;
  width: 80%;
  margin: 0 auto 15px auto;

  text-align: center;
  padding: 8px 0;
  border-radius: 25px;

  font-size: 13px;
  font-weight: 600;

  color: black;
  border: 1px solid #14b8a6;
  background: rgba(20, 184, 166, 0.2);
}

/* HOVER */
#projects .card:hover,
#research .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(20, 184, 166, 0.4);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  #projects .card-container,
  #research .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #projects .card-container ,
  #research .card-container {
    grid-template-columns: 1fr;
  }
}

/* ================= COMMON SECTION ================= */
#achievements,
#internships {
  padding: 60px;
  text-align: center;
}

/* ================= GRID ================= */
.ach-container,
.intern-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ================= CARD ================= */
.ach-card,
#internships .card {
  padding: 30px;
  border-radius: 20px;

  background: #0b1120;
  border: 1px solid rgba(20, 184, 166, 0.3);

  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

/* ================= CONTENT ABOVE ================= */
.ach-card > *,
#internships .card > * {
  position: relative;
  z-index: 1;
}

/* ================= ICON ================= */
.ach-card .icon {
  font-size: 40px;
  margin-bottom: 15px;
}

/* ================= TITLE ================= */
.ach-card h3,
#internships .card h3 {
  color: #5eead4;
  margin-bottom: 10px;
}

/* ================= TEXT ================= */
.ach-card p,
#internships .card p {
  color: #cbd5f5;
  font-size: 15px;
}

/* ================= LIST ================= */
.intern-list {
  margin: 10px 0;
  padding-left: 18px;
}

.intern-list li {
  margin-bottom: 6px;
  color: #cbd5f5;
}

/* ================= HOVER ================= */
.ach-card:hover,
#internships .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(20, 184, 166, 0.5);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .ach-container,
  .intern-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ach-container,
  .intern-container {
    grid-template-columns: 1fr;
  }
}

/* ================= ICON IMAGE ================= */
.ach-card .icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

#internships .card {
  width: auto;          /* override 300px */
  margin: 0;            /* remove auto centering */
}

.popup {
  position: fixed;
  top: 20px;              /* 👈 move to top */
  left: 50%;
  transform: translateX(-50%) translateY(-20px);

  background: #14b8a6;
  color: black;

  padding: 12px 25px;
  border-radius: 10px;

  font-weight: 500;

  opacity: 0;
  pointer-events: none;

  transition: 0.3s ease;
  z-index: 9999;          /* ensures it appears above everything */
}

/* when visible */
.popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}