* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
}
/* RESET & VARIABLES */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* height of navbar */
}
body {
  margin: 0;
  padding-top:0px;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(135deg, #0f172a, #020617);
  color: var(--text-main);
  line-height: 1.6;
}
:root {
  --bg-main: #0f172a;
  --bg-card: #111827;
  --primary: #38bdf8;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
}
/* NAVBAR */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  z-index: 1000;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(10px);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
/* LOGO */
.logo {
  font-size: 1.6rem;
  font-weight: 700;
  white-space: nowrap;
}
/* NAV LIST RESET */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
/* LINKS */
.nav-links li a {
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-links li a:hover {
  color: #38bdf8;
}
/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-main);
  transition: all 0.3s ease;
}
.hamburger.toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.toggle span:nth-child(2) {
  opacity: 0;
}
.hamburger.toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
/* HERO SECTION */
.welcome-text {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s ease forwards;
}
.hero h2 {
  animation: fadeUp 1.2s ease forwards;
  animation-delay: 0.3s;
}
.hero p {
  color: #cfd9ff;   /* light color */
  z-index: 2;
  position: relative;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr; /* text + image */
  align-items: center;
  justify-content: center;
  text-align: left;
  background: linear-gradient(135deg, #0f172a, #020617);
  padding: 0 10%;
  color: #e5e7eb;
  border-radius: 0; /* optional for hero */
}
.hero-image img {
  width: 280px;
  border-radius: 50%;
  border: 4px solid #38bdf8;
  box-shadow: 0 0 40px rgba(56,189,248,0.4);
  animation: float 3s ease-in-out infinite alternate;
}
@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}
/* Typing effect */
.typing-text {
  color: #00e5ff;
  font-size: 1.4rem;
  margin: 12px 0;
  opacity: 1;
  width: auto;
  white-space: normal;
  animation: typing 3s steps(40, end) forwards, blink 0.75s step-end infinite;
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink {
  50% { border-color: transparent; }
}
.hero-content {
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeUp 1.2s ease forwards;
}
.hero-content h2 {
  animation-delay: 0.2s;
}
.hero-content p {
  animation-delay: 0.4s;
}
.hero-content .btn {
  animation-delay: 0.6s;
}
@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.btn {
  display: inline-block;
  padding: 12px 26px;
  background: #38bdf8;
  color: #020617;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  margin-top: 2rem;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(56,189,248,0.4);
}
/* SECTIONS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
section {
  padding: 3rem 3rem;
  background: transparent;
  border-radius: 16px;
  margin-bottom: 0;
  color: #e5e7eb;
  box-shadow: none;
  scroll-margin-top: 100px;
}
section h1, section h2 {
  margin-top: 0;
}
.section-box, .card, .education-card, .contact-form {
  background: rgba(17, 24, 39, 0.85); 
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  color: #e5e7eb; 
}
/* GRID CARDS */
.grid {
  display: grid;
  gap: 3rem;
}
.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
/* HOVER ANIMATION FOR CARDS */
.card:hover, .section-box:hover, .education-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(56,189,248,0.3);
}
/* SKILLS */
.skills {
  padding: 80px 10%;
}
.skills h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.skill-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}
.skill-card:hover {
  transform: translateY(-8px);
}
.skill-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}
.progress {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  border-radius: 10px;
  transition: width 1.5s ease;
}
.percent-text {
  display: block;
  margin-top: 10px;
  text-align: right;
  font-weight: 600;
}
/* CONTACT FORM */
.contact {
  padding: 80px 20px;
  text-align: center;
}
.contact h2 {
  margin-bottom: 30px;
}
.contact-form {
  max-width: 420px;
  margin: auto;
  padding: 30px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 14px;
}
.contact-form button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 30px;
  background: #00e5ff;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.contact-form button:hover {
  transform: scale(1.05);
}
/* FOOTER */
footer {
  background: var(--bg-card);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}
/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* RESPONSIVE (TABLET & MOBILE) */
@media (max-width: 1024px) {
  .hero-content h2 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }
}
@media (max-width: 768px) {
  /* Navbar */
  nav {
    flex-direction: column;
    width: 100%;
    position: relative;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    width: 200px;
    text-align: center;
    padding: 1rem 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid #334155;
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .hamburger {
    display: flex;
  }
  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-image {
    margin-top: 30px;
  }
  /* Grids */
  .skills-grid,
  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  section {
    padding: 3rem 1.5rem;
  }
}
/* CERTIFICATE MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}
.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(56,189,248,0.4);
}
.close-btn {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}
/* Certificate list hover */
.certificate-item {
  padding: 20px;
  margin: 15px 0;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}
.certificate-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(56,189,248,0.3);
}
/* CENTERED CONTENT FIX (Projects, Education, Certificates, Contact) */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.project-grid,
.education-card,
.certificate-item {
  max-width: 1000px;
  margin: auto;
  margin-bottom: 2rem;
}
/* Section separator for clean layout */
section:not(.hero) {
  border-top: 1px solid rgba(255,255,255,0.05);
}
.skills-section {
  padding-top: 5rem;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr;   /* forces vertical cards */
  gap: 2.5rem;
  max-width: 900px;
  margin: auto;
}
.project-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  line-height: 1.6;
}
.projects h2 {
  text-align: center;
  color: #e9eff0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-bottom: 50px;
  font-size: 2.5rem;
}
.education h2{
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
}