/* --- Google Fonts Import --- */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Playfair+Display:wght@400;700&display=swap");

/* --- CSS Reset and Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family, "Montserrat", sans-serif);
}

body {
  background-color: #0d0b1f;
  color: #f0eaff;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* --- Navbar and Hero --- */
.navbar {
  background: radial-gradient(circle at top, #1e003e, #0d0b1f);
  padding: 1rem;
  position: relative;
}

.nav-list {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #f0eaff;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #e86ce6;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 100;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #f0eaff;
  border-radius: 2px;
}

.hero {
  background: radial-gradient(circle at top, #1e003e, #0d0b1f);
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
}

.hero h1 {
  font-size: 2rem;
  color: #f0eaff;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 2.5rem;
  background: linear-gradient(to right, #ff6ec4, #7873f5);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero h3 {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.hero-buttons button {
  background-color: #ff6ec4;
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.hero-buttons button:hover {
  background-color: #c04eff;
}

/* --- Section Titles --- */
section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #ffb6f9;
}

/* --- About Section --- */
.about-section {
  background-color: #1a172f;
  text-align: center;
  padding: 4rem 1rem;
}

.profile-picture {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: block;
  border: 3px solid #ff6ec4;
}

.about-section p {
  color: #d4c8f0;
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.about-subsection {
  margin-top: 2rem;
  text-align: left;
}

.about-subsection h3 {
  color: #e86ce6;
  margin-bottom: 0.5rem;
}

.subsection-divider {
  border: 1px solid #444;
  margin: 1rem 0;
}

/* --- Timeline (Education & Experience) --- */

.container-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-left: 2rem;
  margin-right: 2rem;
}

.timeline-column h3 {
  color: #e86ce6;
  margin-top: 1.5rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0 auto 2rem;
}

.timeline-item h4 {
  margin-top: 0.25rem;
}

.timeline-card {
  background-color: #2c254d;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-color);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #fff;
}

.timeline-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
  background-color: #d4c8f0;
}

.timeline-card h4 {
  margin-top: 20px;
}

/* --- Skills Section --- */
.section {
  margin-top: 2rem;
}
.skills-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.skill-category {
  flex: 1;
  min-width: 200px;
}

.skill-category h3 {
  color: #e86ce6;
  margin-bottom: 0.5rem;
}

.skill-category ul {
  list-style: none;
  padding: 0;
  color: #f0eaff;
}

/* --- Projects --- */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-left: 2rem;
  margin-right: 2rem;
}

.project-card {
  background-color: #2c254d;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-color);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #fff;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
  background-color: #d4c8f0;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3,
.project-card p {
  padding: 0 20px;
}

.project-card p {
  padding-bottom: 20px;
}

/* --- Contact --- */
.contact-section {
  background-color: #1a172f;
  padding: 4rem 1rem;
  text-align: center;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  margin-bottom: 1rem;
  background-color: #2c254d;
  color: #fff;
}

#contact-form button {
  background-color: #ff6ec4;
  border: none;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  margin-bottom: 4rem;
}

.contact-links a {
  color: #e86ce6;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #0d0b1f;
  color: #aaa;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .skills-container {
    flex-direction: column;
    align-items: center;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background-color: #1a172f;
    padding: 1rem 0;
    display: none;
    z-index: 99;
  }

  .nav-list.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .projects-grid,
  .projects-grid.second-row {
    grid-template-columns: 1fr;
  }
}
