/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0f172a;
  color: #f1f5f9;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.1rem;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  position: relative;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  color: #f1f5f9;
}

.logo:hover {
  opacity: 0.9;
}

.first-letter-red {
  color: #e11d48;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #f1f5f9;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #e11d48;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== HAMBURGER MENU (MOBILE) ===== */
.hamburger {
  display: none;
  font-size: 1.8rem;
  color: #f1f5f9;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #1e293b;
    width: 100%;
    padding: 1rem 0;
    position: absolute;
    top: 60px;
    left: 0;
    text-align: center;
    border-bottom: 2px solid #e11d48;
  }

  .nav-links.show-menu {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 2rem;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero > * {
  z-index: 2;
  position: relative;
}

.hero-text {
  flex: 1 1 300px;
}

.hero-text h1 {
  font-size: 2.7rem;
  margin-bottom: 1rem;
  color: #f1f5f9;
}

#typed-text {
  color: #facc15;
  font-weight: 600;
  font-size: 1.4rem;
}

.hero-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin-top: 1.2rem;
  font-size: 1rem;
  background: transparent;
  color: #f1f5f9;
  border: 2px solid #e11d48;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  background: #e11d48;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 10px #e11d48aa;
}

/* ===== BADGES ===== */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  background: #f43f5e; /* softer coral-red */
  color: #fef2f2;       /* off-white text */
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ===== SECTIONS ===== */
.section {
  padding: 3rem 2rem;
  background-color: #1e293b;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.section:nth-child(even) {
  background-color: #141414;
}

.section h2 {
  font-size: 1.8rem;
  color: #e11d48;
  margin-bottom: 1rem;
  text-align: center;
}

.section p,
.section ul {
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0.5rem 0;
  color: #94a3b8;
}

.section ul {
  margin-top: 0.8rem;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  flex: 1 1 55%;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-cards {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.95rem;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.about-card i {
  color: #facc15;
  font-size: 1.4rem;
}

.about h2 {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
}

/* ===== EDUCATION SECTION ===== */
.education {
  text-align: center;
  background: linear-gradient(to bottom, #0f172a, #111);
  padding: 4rem 1rem 4rem;
}

.edu-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}


.edu-box {
  background-color: #1e293b;
  padding: 1.5rem;
  font-size: 0.95rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  max-width: 700px;
  width: 100%;
  color: #cbd5e1;
  text-align: left;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .edu-box:hover {
    transform: translateY(-4px);
  }
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edu-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #f1f5f9;
}

.edu-date {
  font-size: 0.95rem;
  color: #94a3b8;
}

.edu-college {
  font-size: 1rem;
  color: #9ca3af;
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
}

.edu-gpa {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #9ca3af;
}

.edu-gpa i {
  color: #38bdf8;
  margin-right: 0.4rem;
}

.edu-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.edu-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: #cbd5e1;
  word-break: break-word;
  white-space: normal;
  flex-wrap: wrap;
}

.edu-list i {
  color: #facc15;
  font-size: 1rem;
  flex-shrink: 0;
}

.edu-list strong span {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .edu-box {
    font-size: 0.9rem;
    padding: 1.2rem;
  }

  .edu-header h3 {
    font-size: 1.15rem;
  }

  .edu-college,
  .edu-date,
  .edu-gpa {
    font-size: 0.9rem;
  }

  .edu-list {
    margin-top: 0.5rem;
  }
}


/* --- Skills Section --- */
.skills {
  background-color: #1e293b;
  padding: 4rem 1rem;
  text-align: center;
}

.skills h2 {
  color: #f43f5e;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.skills h2 i {
  margin-right: 0.5rem;
}

.skills-group {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.skills-group h3 {
  color: #f1f5f9;
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #0f172a;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  color: #facc15;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.skill-badge i {
  font-size: 1rem;
}

.skill-badge:hover {
  transform: translateY(-3px);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .skills h2 {
    font-size: 1.5rem;
  }

  .skills-group h3 {
    font-size: 1.1rem;
  }

  .skills-row {
    gap: 0.5rem;
  }

  .skill-badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}

.skill-icon {
  color: #38bdf8; /* golden yellow for icons */
  font-size: 1rem;
}

.skill-name {
  color: #f1f5f9; /* soft white for names */
  font-weight: 500;
}


/* ===== PROJECT SECTION ===== */
.projects {
  background: linear-gradient(to bottom, #0f172a, #111);
  color: #f1f5f9;
  text-align: center;
  padding: 3rem 1rem;
}

.projects h2 {
  font-size: 2rem;
  color: #f43f5e;
  margin-bottom: 2rem;
}

.project-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.project-card {
  background-color: #1e293b;
  border-radius: 20px;
  padding: 2rem;
  max-width: 340px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.project-card h3 {
  color: #f43f5e;
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.project-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tags span {
  background-color: #0f172a;
  color: #facc15;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  border-radius: 999px;
}

.project-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.project-links a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.project-links a:hover {
  color: #7dd3fc;
}

.tabs {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #334155;
  padding-bottom: 0.5rem;
}

.tab-link {
  background: none;
  border: none;
  font-size: 1rem;
  color: #94a3b8;
  padding: 0.6rem 0;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.tab-link.active {
  color: #f43f5e;
}

.tab-underline {
  position: absolute;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #f43f5e;
  transition: all 0.3s ease;
  width: 0;
  transform: translateX(0);
}


.project-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.tab-content {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}


.tab-content.active {
  display: flex;
}


@media (max-width: 480px) {
  .project-card {
    padding: 1.2rem;
  }

  .project-card h3 {
    font-size: 1.1rem;
  }

  .project-card p {
    font-size: 0.85rem;
  }
}


/* --- Contact Section --- */
.contact {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 4rem 1rem;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  color: #f43f5e;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 10px;
  background-color: #1e293b;
  color: #f1f5f9;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background-color: #f43f5e;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #e11d48;
}

/* --- Social Links --- */
.contact-socials h3 {
  font-size: 1.3rem;
  color: #facc15;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.social-links a {
  color: #38bdf8;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #f43f5e;
}

.social-links i {
  margin-right: 0.5rem;
}



/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background-color: #111;
  border-radius: 12px 12px 0 0;
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 2rem;
}

/* ===== AOS Animation Support ===== */
[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .hero {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
    align-items: center;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.3;
    text-align: center;
  }

  .hero-text p {
    font-size: 1rem;
    text-align: center;
  }

  .btn {
    display: block;
    margin: 0.8rem auto 0.5rem auto;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    width: auto;
    max-width: 90%;
    text-align: center;
  }

  .badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-image img {
    max-width: 220px;
    border-radius: 16px;
  }

  nav {
    padding: 1rem;
  }

  .logo {
    font-size: 1.4rem;
  }
}



@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-cards {
    align-items: center;
    width: 100%;
  }

  .about-card {
    width: 90%;
    max-width: 350px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  }

  .about-text {
    width: 100%;
  }
}


