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

body,
html {
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background-color: #f7edf7; /* softer pink background */
  color: #231f20;
  overflow-x: hidden;
}

/* Ensure footer stays at the bottom even when content is short */
.main-bg {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
.header {
  background: #f2cde0; /* refined pink */
  box-shadow: 6px 10px 0 #c29ab3; /* softer shadow */
  padding: 10px 40px;
  display: flex;
  align-items: center;
  border-radius: 0 0 40px 40px;
  margin-bottom: 0;
  position: relative;
  z-index: 3;
  width: 100vw;
  box-sizing: border-box;
}

.navbar {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown {
  margin-left: auto;
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #231f20;
  cursor: pointer;
  padding: 0 10px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  min-width: 180px;
  width: max-content;
  z-index: 100;
  flex-direction: column;
  border: none;
  padding: 0;
  overflow: hidden;
}

.dropdown-menu a {
  color: #231f20;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
  background: #ffffff;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: #f2d6e6;
}

.dropdown-menu a + a { border-top: 1px solid #edd0e2; }
/* Top item (Profile) */
.dropdown-menu a:first-child { background: #f2cde0; font-weight: 800; color: #6b2260; }
.dropdown-menu a:first-child:hover { background: #f2cde0; color: #6b2260; }
/* Logout button at bottom */
.logout-btn { background: #f2cde0; color: #231f20; border-top: 1px solid #edd0e2; }
.logout-btn:hover { background: #e6b6d6; }

.dropdown.open .dropdown-menu {
  display: flex;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 90px;
  height: 90px;
  margin-right: 18px;
}

.brand {
  font-weight: 1000;
  font-size: 48px;
  color: #231f20;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 70px;
  font-weight: 700;
  padding-left: 500px;
}

.nav-links li a:hover {
  color: #8a3d70; /* muted accent */
}
.nav-links li a:hover,
.nav-links li a.active {
  color: #8a3d70; /* active/highlight color */
}

.dropdown-toggle:hover,
.dropdown-toggle.active {
  color: #8a3d70;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: #f2d6e6;
  color: #8a3d70;
}


/* Hero section */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 98px); /* viewport minus header and footer */
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 60px;
  box-sizing: border-box;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero-text {
  max-width: 40%;
}

.hero-text h1 {
  font-weight: 900;
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-text p {
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #231f20;
}

.hero-image img {
  max-width: 350px;
  height: auto;
  user-select: none;
  pointer-events: none;
}


footer {
      background: #f2cde0;
    padding: 18px 0 10px 0;
    position: relative;
    left: 0;
    bottom: 0;
    width: 100vw;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -4px 0 #c29ab3;
    box-sizing: border-box;
    z-index: 100;
    margin-top: auto; /* push to bottom in flex layout */
}

.footer-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-content span {
    font-weight: 700;
    color: #fff;
    margin-right: 10px;
    font-size: 1rem;
    letter-spacing: 1px;
    padding-left: 30px;
    
}

.footer-content a {
  font-size: 1.3rem;
  color: #231f20;
  transition: color 0.2s;
}

.footer-content a:hover {
  color: #8a3d70;
}

/* Responsive */
@media (max-width: 768px) {
  main {
    padding: 20px;
  }

  .hero {
    flex-direction: column;
  }

  .hero-text {
    max-width: 100%;
    text-align: center;
    margin-bottom: 40px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  footer {
    padding: 15px 20px;
  }

  .footer-content {
    justify-content: center;
  }
}

/* Logout button style inside dropdown */
.logout-btn {
  width: 100%;
  text-align: left;
  background: #ffffff;
  color: #231f20;
  border: none;
  padding: 15px 20px;
  font-weight: 700;
  display: block;
  cursor: pointer;
}
.logout-btn:hover { background: #f8f9fa; }
/* --- 📱 iPhone 14 Responsive Layout --- */
@media (max-width: 430px) {

  /* HEADER */
  .header {
    padding: 6px 12px;
    height: auto;
    flex-wrap: wrap;
    justify-content: space-between;
    border-radius: 0 0 25px 25px;
  }

  .logo {
    width: 45px;
    height: 45px;
    margin-right: 6px;
  }

  .brand {
    font-size: 1.2rem; /* smaller text */
    font-weight: 800;
    letter-spacing: 0.5px;
  }

  .nav-links {
    display: flex !important;
    gap: 18px;
    padding-left: 0;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
  }

  .nav-links li a {
    font-size: 0.85rem;
    font-weight: 600;
  }

  .dropdown-toggle {
    font-size: 1.4rem;
    padding: 0 8px;
  }

  /* BODY */
  .client-landing-container {
    padding: 15px 10px !important;
  }

  .client-landing-container > div:first-child {
    flex-direction: column;
    gap: 12px !important;
  }

  .client-landing-container p {
    font-size: 0.9rem !important;
  }

  .client-landing-container > div:last-child {
    flex-direction: column !important;
    gap: 16px !important;
    padding: 0 8px 30px !important;
  }

  .client-landing-container div[style*="width:360px"],
  .client-landing-container div[style*="width:650px"] {
    width: 100% !important;
  }

  .client-landing-container [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* FOOTER */
  footer {
    padding: 10px 0;
    border-radius: 20px 20px 0 0;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .footer-content span {
    font-size: 0.85rem;
  }

  .footer-content a {
    font-size: 1.1rem;
  }
}
