* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f7fb;
  color: #07162f;
  line-height: 1.6;
}

header {
  background: #07162f;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav {
  max-width: 1200px;
  margin: auto;
  padding: 18px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  color: white;
  border-bottom: 3px solid #e63946;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ff4d4d;
}

.home-btn,
.btn {
  background: #e63946;
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(230, 57, 70, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-btn:hover,
.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.45);
  color: white;
}

.hero {
  min-height: 520px;
  padding: 70px 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 65px;
  background: linear-gradient(135deg, #fff3f3, #eef4ff);
}

.profile-img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 8px solid white;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.hero-text {
  max-width: 650px;
}

.welcome {
  color: #e63946;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h2 {
  font-size: 4rem;
  line-height: 1.1;
  margin: 10px 0;
}

.subtitle {
  font-weight: bold;
}

.hero p {
  margin: 15px 0;
}

.red {
  background: #ff1f2d;
  margin-left: 10px;
}

.card {
  max-width: 1150px;
  margin: 40px auto;
  background: white;
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.about-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 35px;
  align-items: center;
}

.about-card h2,
.card h2 {
  margin-bottom: 15px;
}

.about-card p {
  margin-bottom: 12px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  text-align: center;
}

.about-stats article {
  padding: 25px 15px;
  border-radius: 12px;
  background: #fff2f2;
  transition: transform 0.3s ease, background 0.3s ease;
}

.about-stats article:hover {
  transform: translateY(-8px);
  background: #ffe2e2;
}

.section-title {
  text-align: center;
  margin: 45px 0 25px;
}

.section-title h2 {
  font-size: 2.2rem;
}

.section-title h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #e63946;
  display: block;
  margin: 12px auto;
  border-radius: 5px;
}

.grid,
.course-grid,
.experience-grid,
.education-grid,
.dream-grid {
  max-width: 1150px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.course-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.course,
.experience-grid article,
.education-grid article,
.dream-grid article {
  background: white;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-bottom: 4px solid #e63946;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card {
  text-align: center;
}

.feature-card:hover,
.course:hover,
.experience-grid article:hover,
.education-grid article:hover,
.dream-grid article:hover,
.interest-grid article:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(230, 57, 70, 0.25);
}

.course {
  color: #07162f;
  text-decoration: none;
}

.course span {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 15px;
  border: 2px solid #e63946;
  color: #e63946;
  border-radius: 6px;
  font-weight: bold;
}

.course:hover span {
  background: #e63946;
  color: white;
}

.blue {
  background: #eef5ff;
}

.red-light {
  background: #fff0f0;
}

.green {
  background: #edf8ef;
}

.gold {
  background: #fff8df;
}

.section-intro {
  margin-bottom: 20px;
}

.tab-section {
  display: none;
  margin-top: 30px;
  padding: 25px;
  background: #f8f9ff;
  border-left: 5px solid #e63946;
  border-radius: 10px;
}

.tab-section:target {
  display: block;
}

.tab-section h3 {
  color: #e63946;
  margin-bottom: 10px;
}

.tab-section ul {
  padding-left: 25px;
}

.tab-section a {
  color: #e63946;
  font-weight: bold;
}

.experience-grid article,
.education-grid article,
.dream-grid article {
  min-height: 230px;
}

.experience-grid h3,
.education-grid h3,
.dream-grid h3 {
  color: #e63946;
  margin-bottom: 10px;
}

.dream-grid span {
  background: #e63946;
  color: white;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 12px;
}

.tags {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tags p {
  background: #eef0f5;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

.interest-grid {
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 25px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.interest-grid article {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interest-grid img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: #eef2f8;
}

.interest-grid div {
  padding: 22px;
}

.interest-grid h3 {
  color: #e63946;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.interest-grid p {
  font-size: 1rem;
}

footer {
  margin-top: 55px;
  padding: 45px 8%;
  background: linear-gradient(135deg, #07162f, #e63946);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 25px;
}

footer blockquote {
  font-size: 1.4rem;
  border-left: 4px solid #ff4d4d;
  padding-left: 20px;
}

.connect-section h2 {
  margin-bottom: 10px;
}

.connect-section p {
  margin: 10px 0;
  font-size: 1rem;
  font-weight: bold;
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  color: #ffd6d6;
}

.copyright {
  width: 100%;
  text-align: center;
  margin-top: 25px;
  font-weight: bold;
}

@media (max-width: 1000px) {
  .course-grid,
  .interest-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid,
  .experience-grid,
  .education-grid,
  .dream-grid {
    grid-template-columns: 1fr;
    width: 90%;
  }
}

@media (max-width: 700px) {
  nav {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero h2 {
    font-size: 2.8rem;
  }

  .about-card,
  .course-grid,
  .interest-grid {
    grid-template-columns: 1fr;
    width: 90%;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .red {
    margin-left: 0;
    margin-top: 10px;
  }
}