/* ========== Global Reset ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; } /* nicer anchor jumps */

body {
  font-family: 'Segoe UI', sans-serif;
  /* keep your brand gradient */
  background: linear-gradient(to bottom right,  #0f2027, #438aa1, #71b5d3);
  color: white;

}

/* CONTAINER: center content and add safe side padding */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1rem; /* MOBILE: prevent edge clipping */
}

a { text-decoration: none; color: inherit; }
section { padding: 4rem 2rem; }

/* ========== Navigation Bar ========== */
.navbar {
  background: rgba(0, 0, 0, 0.6);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky; top: 0; z-index: 999;
  backdrop-filter: blur(6px); /* subtle glass on scroll */
}

.logo {
  font-size: 2rem; /* MOBILE: smaller than 3rem to avoid overflow */
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* desktop nav */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  font-size: 1.05rem;
}

/* hamburger (hidden on desktop) */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid #ffffff33;
  color: white;
  padding: .5rem .6rem;
  border-radius: .5rem;
}
.menu-toggle:hover {
  background: #0ff;
  color: #111;
  box-shadow: 0 0 10px #0ff;
}

/* link hover */
.nav-links a:hover { 
  color: #0ff; }

/* ========== Self / About Section ========== */
.self {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* FIX: 'left' is invalid; use center/start */
  justify-content: space-between;
  gap: 2rem; /* spacing between text and image */
}

.self-text {
  flex: 1 1 320px; /* MOBILE: allow shrinking */
  max-width: 560px;
  text-align: left;
}

.self-text h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.self-text h2 {
  margin: 5px 0;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2rem);
  color: #0ff;
  text-shadow: 2px 4px 5px #000;
}
.self-text p { margin: 1.2rem 0 0; font-size: 1.05rem; line-height: 1.7; }

#Name {
  color: #0ff;
  text-shadow: 2px 4px 5px #000;
  font-weight: 700;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.2rem);
}

.self-img {
  flex: 1 1 260px;
  display: flex; justify-content: center;
}

.profile-pic {
  /* FIX: avoid fixed 400px width on phones */
  width: min(320px, 80vw);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 10px 4px #0ff;
}

/* ========== Skills Section ========== */
.skills { text-align: center; font-size: 25px;



}
.skillSection {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem;
}
.card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 1rem;        /* MOBILE: slightly smaller */
  min-width: 140px;
  transition: transform 0.3s, background 0.3s, color 0.3s;
  cursor: default;
}
.card:hover { transform: scale(1.05); background: #0ff; color: #000; box-shadow: 0 0 20px #0ff; }
.card i { display: block; font-size: 1.6rem; margin-bottom: 0.4rem; }

/* ========== Projects Section ========== */
.projects { text-align: center; font-size: 25px; }
.projects-grid {
  display: grid;
  padding-right: 2rem;
  padding-left: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* a bit narrower for phones */
  gap: 1.5rem; margin-top: 2rem;
}
.project {
  background: rgba(0, 255, 255, 0.1);
  padding: 1.25rem;
  border-radius: 12px;
  color: white;
  transition: transform 0.3s;
}
.project:hover { transform: scale(1.05); 
  background: rgba(0, 255, 255, 0.377); 
  color: #000;
  box-shadow: 0 0 20px #0ff;
  border: rgba(0,0,0,0.85)  1px darkturquoise solid;

}

.project-video {
  width: 100%;   /* FIX: 80% caused empty edges on mobile */
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 0 8px rgb(74, 209, 209);
}
.project h3 { margin-bottom: 0.5rem; color: #0ff; }
.project p { font-size: 1rem; margin-bottom: 1rem; }

/* ========== Certificates Section ========== */
.certificates { text-align: center; font-size: 25px; }
.certificate-list {
  display: grid;
  padding-left: 2rem;
  padding-right: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.certificate-card {
  background: rgba(0, 255, 255, 0.1);
  padding: 1.25rem; border-radius: 12px; color: white;
  box-shadow: 0 0 6px #0ff;
  transition: transform 0.3s;
  margin-left: 1rem;
}

.certificate-card:hover { transform: scale(1.05); box-shadow: 0 0 20px #0ff; }
.certificate-card h3 { margin-bottom: 0.5rem; color: #0ff; }
.certificate-card p { font-size: 1rem; margin-bottom: 1rem; }
.certificate-img {
  width: 100%; border-radius: 10px; margin-bottom: 1rem;
  box-shadow: 0 0 8px #0ff;
  transition: transform 0.3s ease;
}
.certificate-img:hover { transform: scale(1.03); }

/* ========== Shared Button Styles ========== */
.btn, .btn-secondary {
  display: inline-block; padding: 0.6rem 1rem;
  border-radius: 10px; border: 2px solid #0ff;
  color: rgb(255, 255, 255); background: transparent; text-decoration: none;
  transition: all 0.3s;
  min-height: 44px; /* MOBILE: touch target */
}
.btn:hover, .btn-secondary:hover { 
  background: #0ff;
  color: #111; 
  box-shadow: 0 0 20px #0ff;
}

/* ========== Contact Section ========== */
.contact { text-align: center; font-size: 25px; margin-top: 80px; }
.contact h2 { margin-bottom: 1.5rem; }
.contactform {
  max-width: 520px; margin: auto; display: flex; flex-direction: column; gap: 1rem;
}
.contactform input, .contactform textarea, .contactform button {
  font-size: 1rem; border-radius: 10px;
}
.contactform input, .contactform textarea {
  padding: 12px; border: 1px solid #ccc; background: #fff; color: #333;
}
.contactform textarea { resize: vertical; min-height: 140px; }
.contactform input:focus, .contactform textarea:focus {
  border-color: #0ff; outline: none; box-shadow: 0 0 4px #0ff;
}
.contactform button { background: #2c5364; padding: 0.9rem; border: none; color: white; cursor: pointer; }
.contactform button:hover { background: #0ff;
  box-shadow: #0ff 0 0 20px; color: #111;

}


/* ========== Social Links ========== */
.socialLinks { margin-top: 1rem; display: flex; justify-content: center; gap: 1.5rem; font-size: 1.5rem;
  
}

/* ========== Footer ========== */
footer { background: #111; text-align: center; padding: 1rem; margin-top: 2rem; }

/* ========== Mobile & Tablet Tweaks ========== */
@media (max-width: 1024px) {
  .logo { font-size: 1.8rem; }
}

/* phones */
@media (max-width: 768px) {
  /* show hamburger, hide desktop nav */
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    right: 1rem; top: 60px;
    background: rgba(0,0,0,0.85);
    border: 1px solid #ffffff22;
    border-radius: 12px;
    padding: .75rem;
    display: none;           /* hidden by default */
    flex-direction: column;  /* dropdown */
    gap: .75rem;
    min-width: 200px;
  }
  .nav-links.open { display: flex; } /* toggled via JS */

  section { padding: 3rem 1rem; }
  .self { justify-content: center; text-align: center; }
  .self-text { text-align: center; }
}
#resumeButton{
  background-color: rgba(75, 209, 209, 0.8);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  border: rgb(53, 104, 104)  0.5px solid;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 20px;

}
#resumeButton:hover {
  background-color: rgba(75, 209, 209, 1);
  color: #333;
  box-shadow: 0 0 20px #0ff;
}
