html, body {
  overflow-x: hidden;
}
/* ---------- General Styles ---------- */
body {
  background-color: #E8D9FF;
  font-family: 'Poppins', sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  padding-top: 130px; /* space for fixed header */
}

/* ---------- Header (Fixed + Compact) ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #E8D9FF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

/* Left side: name & subtitle stacked */
.header-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 220px;
}

.header-left h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #4b3f72;
  line-height: 1.2;
}

.header-left .subtitle {
  font-size: 1rem;
  color: #6b5b95;
  margin-top: 0.25rem;
}

/* Right side navigation */
nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #4b3f72;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 0.5rem;
  transition: background 0.3s ease;
  white-space: normal;
}

nav a:hover {
  background-color: #d9c1ff;
}

/* ---------- Dropdown Menu ---------- */
nav ul li {
  position: relative;
}

nav ul li ul.dropdown-menu {
  display: none !important; /* hide by default */
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #E8D9FF;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 0.75rem;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  min-width: 180px;
  z-index: 999;
}

nav ul li ul.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #4b3f72;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

nav ul li ul.dropdown-menu a:hover {
  background-color: #d9c1ff;
}

/* Show dropdown on hover */
nav ul li.dropdown:hover > ul.dropdown-menu {
  display: block !important;
}

/* ---------- Responsive Header ---------- */
@media (max-width: 950px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }

  nav ul {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 0.75rem;
  }

  header h1 {
    font-size: 1.5rem;
  }

  header .subtitle {
    font-size: 0.9rem;
  }
}

/* ---------- Main Section ---------- */
main {
  width: 95%;
  max-width: 1200px;
  background: #ffffffcc;
  border-radius: 1.5rem;
  padding: 2rem;
  margin: 2rem auto;
  display: block;
}

/* ---------- Headings ---------- */
h2 {
  color: #4b3f72;
  text-align: center;
  margin-bottom: 1rem;
}

.intro p, .about p {
  text-align: center;
  line-height: 1.6;
}

/* ---------- Profile Pic ---------- */
.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 3px solid #c4a1ff;
}

/* ---------- About Me Section (Media + Text) ---------- */
.about-flex {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.media-container {
  flex: 1 1 40%;
  text-align: center;
}

.text-container {
  flex: 1 1 55%;
}

.media-container video {
  width: 100%;
  border-radius: 1rem;
  border: 2px solid #c4a1ff;
  max-width: 500px;
}

.about .about-video {
  max-width: 700px !important;
  width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 1rem;
  border: 2px solid #c4a1ff;
}

.cv-button-container {
  text-align: center;
  margin: 2rem 0;
}

a.download-cv {
  background-color: #c4a1ff;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

a.download-cv:hover {
  background-color: #a87fff;
}

/* ---------- Projects ---------- */
.project-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem 0;
}

.project {
  flex: 1 1 45%;
  min-width: 300px;
  background-color: #ffffffcc;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.project-video {
  width: 100%;
  max-width: 500px;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.project-image {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

/* ---------- Graphics Section ---------- */
.graphics-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.graphics-text {
  flex: 1 1 40%;
  max-width: 500px;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.6;
}

.graphics-text h2 {
  color: #4b3f72;
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

/* ---------- Slideshow ---------- */
.slideshow-container {
  flex: 1 1 55%;
  max-width: 650px;
  width: 90%;
  position: relative;
  margin: 2rem auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: #ffffffcc;
  transition: transform 0.3s ease;
}

.slide-img,
.slide-video {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 1rem;
  display: block;
  margin: 0 auto;
  background-color: #ffffff;
}

.slide {
  display: none;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: #4b3f72;
  font-weight: bold;
  font-size: 22px;
  transition: 0.3s;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: #c4a1ff;
  color: white;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #d9c1ff;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.active, .dot:hover {
  background-color: #a87fff;
}

.fade {
  animation-name: fade;
  animation-duration: 1s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* ---------- Contact Form ---------- */
.iframe-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.iframe-container iframe {
  border: none;
}

/* ---------- Footer ---------- */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #6b5b95;
  padding: 1rem 2rem;
  background-color: #ffffffcc;
  border-radius: 1.5rem;
  margin: 2rem auto;
  max-width: 1200px;
}

footer .footer-links a {
  color: #4b3f72;
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

footer .footer-links a:hover {
  color: #a87fff;
}

/* ---------- Responsive Graphics ---------- */
@media (max-width: 900px) {
  .graphics-flex {
    flex-direction: column;
    align-items: center;
  }

  .graphics-text, .slideshow-container {
    max-width: 100%;
  }

  .graphics-text {
    text-align: center;
  }
}

* {
  box-sizing: border-box;
}
html, body {
  overflow-x: hidden;
}
