/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-cream: #f8f6ef;
  --heading-dark: #1c244b;
  --text-blue: #324a6d;
  --gold: #b67b34;
  --brown: #7a4a16;
  --gold-btn: #d4a24c;
  --red: #c31b1b;
  --red-hover: #cb2525;
  --blue: #467ff7;
  --white: #ffffff;
  --tag-bg: #8197a6;
  --online-green: #49b24a;
  --font-main: "Poppins", sans-serif;
  --font-display: "Amita", cursive;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-cream);
  color: var(--text-blue);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  padding: 16px 55px;
  border-radius: 100px;
  border: 1px solid var(--blue);
  transition: background 0.4s, color 0.4s, transform 0.2s;
  cursor: pointer;
}

.btn:hover {
  transform: scale(0.97);
}

.auth-alert {
  margin-bottom: 1.5rem;
  padding: 18px 20px;
  background: rgba(70, 127, 247, 0.12);
  color: var(--heading-dark);
  border: 1px solid rgba(70, 127, 247, 0.2);
  border-radius: 14px;
  font-size: 0.98rem;
}

.btn-red:hover {
  background: var(--red-hover);
  color: #f7f9ff;
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-blue:hover {
  background: transparent;
  color: var(--blue);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: 0.9;
}

.main-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.main-nav a {
  display: block;
  padding: 15px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-blue);
  transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading-dark);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 5% 60px;
  text-align: center;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--heading-dark);
  max-width: 900px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-image-wrap {
  border-radius: 239px;
  overflow: hidden;
  max-width: 768px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== Welcome ===== */
.welcome {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 5% 3%;
  max-width: 1600px;
  margin: 0 auto;
}

.welcome-content {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  padding-right: 5%;
}

.welcome-content h1 {
  font-size: clamp(28px, 5vw, 65px);
  font-weight: 600;
  color: var(--heading-dark);
  line-height: 1.2;
}

.welcome-content p {
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 300;
  color: var(--text-blue);
  line-height: 1.5;
}

.welcome-image {
  flex: 0 0 55%;
}

.welcome-image img {
  width: 100%;
  border-radius: 39px;
  object-fit: cover;
}

/* ===== About ===== */
.about {
  display: flex;
  align-items: center;
  gap: 5%;
  padding: 5% 3%;
  max-width: 1600px;
  margin: 0 auto;
  min-height: 100vh;
}

.about-gallery {
  flex: 0 0 55%;
  display: flex;
  gap: 25px;
}

.gallery-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.gallery-col:first-child {
  align-items: flex-end;
}

.gallery-col:first-child .img-sm {
  width: 55%;
}

.gallery-col:first-child .img-lg {
  width: 85%;
}

.gallery-col:last-child .img-sm {
  width: 55%;
}

.gallery-col:last-child .img-xl {
  width: 95%;
}

.about-content {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.about-content h2 {
  font-size: clamp(28px, 5vw, 65px);
  font-weight: 600;
  color: var(--heading-dark);
  line-height: 1.2;
}

.about-content p {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-blue);
  line-height: 1.5;
  padding-right: 20%;
}

/* ===== Profiles Slider ===== */
.profiles {
  padding: 60px 5%;
  background: var(--bg-cream);
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h4 {
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 600;
}

.section-heading h2 {
  color: var(--brown);
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 700;
}

.slider-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.slider {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
  scrollbar-width: none;
}

.slider::-webkit-scrollbar {
  display: none;
}

.profile-card {
  min-width: 350px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.3s;
}

.profile-card:hover {
  transform: translateY(-5px);
}

.online-dot {
  width: 15px;
  height: 15px;
  background: #4caf50;
  border-radius: 50%;
  position: absolute;
  top: 25px;
  left: 25px;
  border: 3px solid var(--white);
  z-index: 1;
}

.profile-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 10px;
}

.online-badge {
  background: var(--online-green);
  color: var(--white);
  text-align: center;
  padding: 8px;
  margin-top: 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
}

.profile-name {
  font-size: 30px;
  font-weight: 700;
  margin-top: 15px;
  color: #222;
}

.profile-id {
  color: #8b5a2b;
  font-size: 18px;
  margin: 12px 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--tag-bg);
  color: var(--white);
  padding: 7px 12px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  background: var(--gold-btn);
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.slider-arrow:hover {
  background: #c4923a;
  transform: translateY(-50%) scale(1.05);
}

.slider-arrow.prev {
  left: -20px;
}

.slider-arrow.next {
  right: -20px;
}

/* ===== Why Choose Us ===== */
.why-choose {
  position: relative;
  padding: 120px 5% 100px;
  background: var(--bg-cream);
  text-align: center;
  overflow: hidden;
}

.why-image {
  width: 320px;
  margin: -180px auto 10px;
  border-radius: 0 0 120px 120px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  height: 400px;
}

.why-label {
  color: var(--gold);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.why-title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 20px;
}

.why-subtext {
  color: #555;
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 60px;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.why-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.why-card {
  width: 280px;
  background: var(--white);
  border-radius: 18px;
  padding: 35px 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s;
  border: 1px solid #eee;
}

.why-card:hover {
  transform: translateY(-10px);
}

.why-icon {
  font-size: 55px;
  margin-bottom: 20px;
}

.why-card h3 {
  font-size: 28px;
  color: var(--brown);
  margin-bottom: 15px;
  font-weight: 700;
}

.why-card p {
  color: #666;
  font-size: 17px;
  line-height: 1.7;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 8%;
  padding: 1% 3%;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.footer-logo img {
  max-width: 180px;
  height: auto;
  border-radius: 8px;
}

.footer-contact ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.footer-contact li {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-blue);
  display: flex;
  align-items: center;
}

.footer-contact svg {
  width: 14px;
  height: 14px;
  fill: var(--text-blue);
}

.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.footer-social a:hover svg {
  fill: #c8d5dc;
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: var(--blue);
  transition: fill 0.3s;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(50, 74, 109, 0.15);
  margin-top: 10px;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--text-blue);
}

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(70, 127, 247, 0.4);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .welcome {
    flex-direction: column;
    padding: 5%;
  }

  .welcome-content {
    flex: none;
    padding-right: 0;
    padding-bottom: 10%;
  }

  .welcome-image {
    flex: none;
  }

  .about {
    flex-direction: column-reverse;
    gap: 63px;
    padding: 5%;
  }

  .about-gallery {
    flex: none;
    width: 100%;
  }

  .about-content {
    flex: none;
    width: 100%;
  }

  .about-content p {
    padding-right: 0;
  }

  .slider-arrow.prev {
    left: 0;
  }

  .slider-arrow.next {
    right: 0;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .main-nav.open {
    max-height: 500px;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
  }

  .main-nav a {
    padding: 12px 24px;
    border-bottom: 1px solid #eee;
  }

  .hero {
    min-height: 50vh;
    padding: 30px 5%;
  }

  .welcome-content h1,
  .about-content h2 {
    text-align: center;
  }

  .welcome-content p {
    text-align: center;
  }

  .welcome-content .btn,
  .about-content .btn {
    align-self: center;
  }

  .about-content {
    text-align: center;
  }

  .about-gallery {
    gap: 12px;
  }

  .gallery-col {
    gap: 15px;
  }

  .gallery-col:first-child,
  .gallery-col:last-child {
    width: 45%;
  }

  .profile-card {
    min-width: 280px;
  }

  .profile-card img {
    height: 320px;
  }

  .profile-name {
    font-size: 24px;
  }

  .slider-arrow {
    width: 45px;
    height: 45px;
    font-size: 22px;
  }

  .why-image {
    width: 220px;
    margin-top: -120px;
    height: 280px;
  }

  .why-card {
    width: 100%;
    max-width: 360px;
  }

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

  .footer-contact ul {
    flex-direction: column;
    gap: 8px;
  }
}
