/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', sans-serif; line-height: 1.6; color: #333; background: #f9f9f9; }

.container { width: 90%; max-width: 1100px; margin: auto; }


/* Navbar */
.header { width: 100%; background: #001f3f; color: #fff; padding: 20px 0 60px; }
.nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: bold; color: #fff; text-decoration: none; }
.nav__list { display: flex; gap: 1.5rem; list-style: none; }
.nav__link {
  color: #fff !important;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.7px;
  padding: 8px 14px;
  border-radius: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 0 4px #ff9800;
  transition: background 0.2s, color 0.2s;
}
.nav__link::after { content: ""; width: 0; height: 2px; background: #fff; position: absolute; bottom: -4px; left: 0; transition: width 0.3s; }
.nav__link:hover::after { width: 100%; }
.nav__link:hover,
.nav__link:focus {
  background: rgba(255,152,0,0.15);
  color: #ffa600 !important;
}
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
}
@media screen and (max-width: 768px) {
  .nav__toggle {
    display: block;
    margin-left: 1rem;
  }
}

/* Header profile image */
.header__profile {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;

}
.profile__img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);

}

/* Header intro */
.header__intro {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  color: #444;
}

/* Hero */
.header__content { text-align: center; margin-top: 60px; }
.header__title { font-size: 2.5rem; margin-bottom: 0.8rem; }
.header__title span { color: #222; background: #fff; padding: 5px 12px; border-radius: 4px; }
.header__subtitle { font-size: 1.2rem; margin-bottom: 1.5rem; }
.btn { display: inline-block; color: #fff; background: #1e88e5; padding: 12px 28px; border-radius: 6px; text-decoration: none; font-weight: bold; transition: 0.3s; }
.btn:hover { background: #5b0dec; color: #fff; }

/* Sections */
.section { padding: 80px 0 60px 0; }
.section__title { font-size: 2.2rem; margin-bottom: 2rem; text-align: center; }
.section__title::after { content: ""; width: 60px; height: 3px; background: #ff9800; display: block; margin: 8px auto 0; }

/* About */
.about__content { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; }
.about__image img { width: 250px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.about__text { flex: 1; }

/* Skills */
.skills__container { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-top: 2rem; }
.skills__data { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.skills__header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.skill-icon { font-size: 1.5rem; }
.skills__bar { background: #e0e0e0; border-radius: 6px; overflow: hidden; position: relative; }
.skills__percentage { height: 28px; width: 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; color: #fff; font-size: 0.9rem; font-weight: bold; border-radius: 6px; transition: width 1.5s ease-in-out; }
.skills__percentage span { position: relative; z-index: 2; }

/* Skill widths (targets) */
.skills__percentage.html { background: #e34c26; max-width: 95%; }
.skills__percentage.java { background: #007396; max-width: 85%; }
.skills__percentage.python { background: #3776ab; max-width: 90%; }
.skills__percentage.firebase { background: #ffca28; max-width: 80%; color:#000; }
.skills__percentage.git { background: #f1502f; max-width: 90%; }
.skills__percentage.uiux { background: #673ab7; max-width: 70%; }
.skills__percentage.sql { background: #00618a; max-width: 80%; }

/* Projects */
.projects__container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.project__card { background: #fff; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s; overflow: hidden; text-align: center;  }
.project__card:hover { transform: translateY(-8px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.project__image img { width: 100%; height: 180px; object-fit: cover; display: block; }
.project__title { font-size: 1.3rem; margin: 15px 0 8px; }
.project__desc { font-size: 0.95rem; margin-bottom: 12px; padding: 0 10px; }
.project__link { color: #ff9800; text-decoration: none; font-weight: bold; }
.project__link:hover { text-decoration: underline; }
.project__tech {
  margin: 10px 0;
}
.badge {
  display: inline-block;
  background: #eee;
  color: #333;
  font-size: 0.85rem;
  border-radius: 12px;
  padding: 3px 12px;
  margin: 0 4px 4px 0;
  font-weight: 500;
  border: 1px solid #ff9800;
}

/* Contact */
.contact__info { text-align: center; font-size: 1rem; line-height: 1.8; }
.contact__info a { color: #ff9800; text-decoration: none; }
.contact__info a:hover { text-decoration: underline; }
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto 2rem;
}
.contact__form input,
.contact__form textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
}
.contact__form button,
.btn {
  background: #ff9800;
  color: #fff !important;
  font-weight: bold;
  border: none;
  text-shadow: none;
}
.contact__form button:hover {
  background: #f44336;
}

/* Footer */
.footer { background: #222; color: #fff; text-align: center; padding: 20px 0; }
.footer__social {
  margin-bottom: 10px;
}
.footer__social a {
  color: #fff;
  margin: 0 8px;
  font-size: 1.4rem;
  transition: color 0.2s;
}
.footer__social a:hover {
  color: #ff9800;
}

/* Modern orange text with subtle glow for readability */
body,
.header__title,
.header__subtitle,
.section__title,
.project__title,
.project__desc,
.btn,
.nav__link,
.about__text,
.skills__header,
.skills__percentage span,
.other-skill__item span,
.cert__card,
.contact__info,
.footer {
  color: #ff9800 !important;
  text-shadow: 0 0 8px rgba(255, 152, 0, 0.5);
}

/* For white backgrounds (cards, buttons), keep text dark for readability */
.skills__data,
.project__card,
.cert__card,
.other-skill__item {
  color: #222 !important;
}

/* Jumping Name Animation */
.jumping-name span {
  display: inline-block;
  animation: jump 1.2s infinite;
  animation-delay: calc(var(--i) * 0.08s);
}

.jumping-name span:nth-child(1) { --i: 0; }
.jumping-name span:nth-child(2) { --i: 1; }
.jumping-name span:nth-child(3) { --i: 2; }
.jumping-name span:nth-child(4) { --i: 3; }
.jumping-name span:nth-child(5) { --i: 4; }
.jumping-name span:nth-child(6) { --i: 5; }
.jumping-name span:nth-child(7) { --i: 6; }
.jumping-name span:nth-child(8) { --i: 7; }
.jumping-name span:nth-child(9) { --i: 8; }
.jumping-name span:nth-child(10) { --i: 9; }
.jumping-name span:nth-child(11) { --i: 10; }
.jumping-name span:nth-child(12) { --i: 11; }
.jumping-name span:nth-child(13) { --i: 12; }
.jumping-name span:nth-child(14) { --i: 13; }
.jumping-name span:nth-child(15) { --i: 14; }
.jumping-name span:nth-child(16) { --i: 15; }
.jumping-name span:nth-child(17) { --i: 16; }
.jumping-name span:nth-child(18) { --i: 17; }

@keyframes jump {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); color: #ff9800; }
}

/* Other Skills */
.other-skills__container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.other-skill__item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.1rem;
  min-width: 180px;
  transition: transform 0.3s;
}
.other-skill__item:hover {
  transform: translateY(-6px) scale(1.04);
}
.other-skill__item .skill-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.certs__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.cert__card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.cert__card:hover {
  transform: translateY(-6px);
}

.cert-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, #0a0f1c 0%, #1a2236 100%);
  overflow: hidden;
}

.tech-svg {
  width: 100vw;
  height: 100vh;
  display: block;
}

.node {
  filter: drop-shadow(0 0 18px #00eaff) drop-shadow(0 0 32px #ff9800);
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  0% { r: 10; opacity: 0.7; }
  50% { r: 14; opacity: 1; }
  100% { r: 10; opacity: 0.7; }
}

#line1, #line2 {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawline 3s linear forwards;
}

@keyframes drawline {
  to { stroke-dashoffset: 0; }
}

/* Make sure content is above background */
.header, main, footer {
  position: relative;
  z-index: 1;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .about__content { flex-direction: column; text-align: center; }
  .nav__list { display: none; flex-direction: column; background: #222; position: absolute; top: 70px; right: 20px; width: 200px; border-radius: 8px; padding: 10px; }
  .nav.active .nav__list { display: flex; }
  .nav__item { margin: 10px 0; }
}

/* Hero Card */
.hero-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.12);
  padding: 40px 32px;
  max-width: 600px;
  margin: 48px auto;
  text-align: center;
}

.hero-card .header__title,
.hero-card .header__subtitle,
.hero-card .header__intro {
  color: #222;
  text-shadow: none;
}

.hero-card .btn {
  background: #ff9800;
  color: #fff !important;
  font-weight: bold;
  border-radius: 6px;
  padding: 12px 32px;
  margin-top: 18px;
  box-shadow: 0 2px 8px rgba(255,152,0,0.12);
  border: none;
  text-shadow: none;
}

/* Force resume button colors */
a.btn, .btn { 
  background-color: #1e88e5 !important; 
  color: #fff !important; 
}
a.btn:hover, .btn:hover { 
  background-color: #000 !important; 
  color: #fff !important; 
}
