/* =====================
   GLOBAL RESET
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =====================
   GLOBAL BACKGROUND
===================== */
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(135deg, #1d3557, #457b9d);
  color: #222;
  line-height: 1.6;
}

/* =====================
   NAVBAR
===================== */
.navbar {
  background: rgba(29, 53, 87, 0.95);
  padding: 16px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

.navbar a {
  color: #eaeaea;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 4px;
}

.navbar a:hover,
.navbar a.active {
  color: #fca311;
  border-bottom: 2px solid #fca311;
}

/* =====================
   BUTTONS
===================== */
.btn {
  display: inline-block;
  padding: 12px 22px;
  background: #457b9d;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}

.btn:hover {
  background: #1d3557;
}

/* =====================
   SECTION BASE
===================== */
section {
  padding: 70px 30px;
}

/* White content containers */
.about-hero,
.about-content,
.highlights,
.education,
.projects-wrapper,
.contact-wrapper {
  max-width: 1100px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 60px 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* =====================
   HOME / HERO
===================== */
body.home .hero {
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: #eaeaea;
}

body.home .btn {
  background: #fca311;
  color: #1d3557;
  font-weight: 600;
}

body.home .btn:hover {
  background: #ffb703;
}

/* Transparent navbar on home */
body.home .navbar {
  background: transparent;
}

/* =====================
   ABOUT PAGE
===================== */
.about-hero {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-hero img {
  width: 260px;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hero-right h1 {
  font-size: 2.4rem;
  color: #1d3557;
}

.subtitle {
  color: #555;
  margin: 10px 0 20px;
}

/* About content + sidebar */
.about-content {
  display: flex;
  gap: 50px;
}

.main-text {
  flex: 2;
}

.main-text h2 {
  color: #1d3557;
  margin-bottom: 15px;
}

.sidebar {
  flex: 1;
}
 /* =====================
   PROFILE IMAGE FIX
===================== */
.profile-pic {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden; /* crops the image */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* prevents stretching */
}

/* =====================
   CARDS
===================== */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 26px 28px;
  margin-bottom: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.card h3 {
  margin-bottom: 12px;
  color: #1d3557;
}

.card a {
  color: #457b9d;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* =====================
   HIGHLIGHTS
===================== */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.highlight-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.highlight-card h3 {
  margin-bottom: 12px;
  color: #1d3557;
}

/* =====================
   EDUCATION
===================== */
.education h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #1d3557;
}

.edu-card {
  background: #ffffff;
  padding: 22px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* =====================
   PROJECTS
===================== */
.projects h1 {
  text-align: center;
  margin-bottom: 50px;
  color: #1d3557;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
  color: #1d3557;
  margin-bottom: 10px;
}

/* =====================
   CONTACT
===================== */
.contact {
  text-align: center;
}

.contact h1 {
  color: #1d3557;
}

.contact-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
}

.contact-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-decoration: none;
  color: #1d3557;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
}

.contact-card i {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 12px;
  }

  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .about-hero {
    flex-direction: column;
    text-align: center;
  }

  .about-content {
    flex-direction: column;
  }

  section {
    padding: 50px 20px;
  }

  .about-hero,
  .about-content,
  .highlights,
  .education,
  .projects-wrapper,
  .contact-wrapper {
    padding: 40px 25px;
  }
}


/* =====================
   PROJECTS PAGE HEADER FIX
===================== */
.projects {
  padding-top: 60px;
}

.projects-wrapper {
  padding-top: 40px;
}

/* Style ONLY the projects heading */
.projects-wrapper > h1 {
  text-align: center;
  font-size: 2.4rem;
  color: #1d3557;
  margin-bottom: 15px;
  position: relative;
}

/* Optional subtle underline for professionalism */
.projects-wrapper > h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: #fca311;
  margin: 14px auto 40px;
  border-radius: 2px;
}

/* =====================
   EXPERIENCE PAGE
===================== */
.experience-wrapper {
  max-width: 1100px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 60px 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Experience header styling */
.page-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-header h1 {
  font-size: 2.4rem;
  color: #1d3557;
}

.page-header p {
  color: #555;
  margin-top: 10px;
}

/* Slight separation between cards */
.experience-item span {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}


/* =====================
   PROJECTS PAGE HEADER FIX
===================== */
.projects {
  padding-top: 60px;
}

.projects-wrapper {
  padding-top: 40px;
}

/* Style ONLY the projects heading */
.projects-wrapper > h1 {
  text-align: center;
  font-size: 2.4rem;
  color: #1d3557;
  margin-bottom: 15px;
  position: relative;
}

/* Optional subtle underline for professionalism */
.projects-wrapper > h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: #fca311;
  margin: 14px auto 40px;
  border-radius: 2px;
}

/* =====================
   SKILLS – FINAL (ANIMATED)
===================== */

.skills-wrapper {
  max-width: 1100px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 60px 40px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 40px;
}

.skill {
  margin-bottom: 22px;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  margin-bottom: 6px;
}

/* TRACK */
.skill-track {
  background: #eaeaea;
  height: 10px;
  border-radius: 6px;
  overflow: hidden; /* CRITICAL */
}

/* FILL */
.skill-fill {
  height: 100%;
  width: 0;                     /* START AT ZERO */
  border-radius: 6px;
  transition: width 1.6s ease;  /* SMOOTH ANIMATION */
}

/* COLOR VARIANTS */
.python { background: linear-gradient(90deg, #3776ab, #4ea8de); }
.pandas { background: linear-gradient(90deg, #130754, #ff6f00); }
.sklearn { background: linear-gradient(90deg, #f7931e, #facc15); }
.tensorflow { background: linear-gradient(90deg, #ff6f00, #ff9f1c); }
.xai { background: linear-gradient(90deg, #6a4c93, #9d4edd); }

.streamlit { background: linear-gradient(90deg, #ff4b4b, #ff7a7a); }
.django { background: linear-gradient(90deg, #0c4b33, #16a34a); }
.sql { background: linear-gradient(90deg, #2563eb, #38bdf8); }
.viz { background: linear-gradient(90deg, #22c55e, #4ade80); }
.git { background: linear-gradient(90deg, #f97316, #fb923c); }


/* =====================
   BUTTONS ANIMATION
===================== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  background: #fca311;
  color: #1d3557;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Hover effect: scale + color shift + subtle shadow */
.btn:hover {
  background: #ffb703;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: #1d3557;
}

/* Optional: ripple effect */
.btn::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  top: 50%;
  left: 50%;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: 0;
}

.btn:hover::after {
  width: 300%;
  height: 300%;
}


/* Add decorative underline for Skills heading */
.skills-wrapper > .page-header h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: #fca311; /* same yellow as projects */
  margin: 14px auto 30px;
  border-radius: 2px;
}

/* Yellow line under page headers (Experience & Skills) */
.page-header > h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: #fca311;  /* same yellow as Projects */
  margin: 14px auto 30px;
  border-radius: 2px;
}

/* Yellow line under page headers (Experience, Skills, Contact) */
.contact-wrapper > h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: #fca311;  /* same yellow as Projects */
  margin: 14px auto 30px;
  border-radius: 2px;
}

