/* ===== CSS Variables ===== */
:root {
  --clr-primary: #2D3A8C;
  --clr-primary-dk: #1E2766;
  --clr-primary-lt: #4A5AC7;
  --clr-accent: #D4A843;
  --clr-accent-dk: #B8902E;
  --clr-bg: #F5F6FA;
  --clr-surface: #FFFFFF;
  --clr-text: #1E1E2F;
  --clr-muted: #5C5E6E;
  --clr-light-wash: #E8EAF2;
  --clr-dark: #12152E;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Helvetica, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(30, 39, 102, .06);
  --shadow-md: 0 8px 30px rgba(30, 39, 102, .09);
  --shadow-lg: 0 16px 50px rgba(30, 39, 102, .13);
  --transition: .35s cubic-bezier(.4, 0, .2, 1);
  --max-w: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}


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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

/* ===== Utility ===== */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(245, 246, 250, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45, 58, 140, .06);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

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

.nav__logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .12));
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav__brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-primary);
}

.nav__brand-sub {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--clr-muted);
  position: relative;
  transition: color var(--transition);
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  transition: width var(--transition);
}

.nav__links a:hover {
  color: var(--clr-primary);
}

.nav__links a:hover::after {
  width: 100%;
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  background: none;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.nav__toggle span:nth-child(1) {
  top: 0;
}

.nav__toggle span:nth-child(2) {
  top: 9px;
}

.nav__toggle span:nth-child(3) {
  top: 18px;
}

.nav__toggle.open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

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

.nav__toggle.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  padding: 160px 0 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: url('../assets/image1.jpeg') center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(18, 21, 46, .72) 0%,
    rgba(30, 39, 102, .58) 60%,
    rgba(18, 21, 46, .65) 100%
  );
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 28px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, .4));
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero__subtitle {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 20px;
}

.hero__title span {
  color: var(--clr-accent);
}

.hero__desc {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .78);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
}

.hero .btn--outline:hover {
  background: #fff;
  color: var(--clr-primary);
  border-color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  border-radius: 60px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(45, 58, 140, .3);
}

.btn--primary:hover {
  background: var(--clr-primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45, 58, 140, .35);
}

.btn--outline {
  background: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
}

.btn--outline:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--clr-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(212, 168, 67, .3);
}

.btn--gold:hover {
  background: var(--clr-accent-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 168, 67, .35);
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Banner Carousel ===== */
.banners {
  padding: 50px 0 70px;
}

.banners__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  position: relative;
}

.banners__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .6s ease;
}

.banners__slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: var(--clr-light-wash);
}

.banners__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Portrait images: prioritize top/center so subject stays visible when cropped */
.banners__slide--portrait img {
  object-position: center top;
}

.banners__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-light-wash) 0%, #c9cedf 100%);
  color: var(--clr-muted);
  font-weight: 600;
}

.banners__placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  opacity: .35;
}

.banners__placeholder span {
  font-size: .85rem;
  opacity: .6;
}

.banners__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 34px;
  background: linear-gradient(transparent, rgba(18, 21, 46, .6));
  color: #fff;
}

.banners__overlay h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 3px;
}

.banners__overlay p {
  font-size: .88rem;
  opacity: .85;
}

.banners__controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.banners__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clr-light-wash);
  border: none;
  transition: all var(--transition);
}

.banners__dot.active {
  background: var(--clr-primary);
  width: 28px;
  border-radius: 6px;
}

.banners__seemore {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}


/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 54px;
}

.section-header__tag {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 10px;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  color: var(--clr-primary-dk);
}

.section-header__line {
  width: 50px;
  height: 3px;
  border-radius: 3px;
  background: var(--clr-accent);
  margin: 16px auto 0;
}

/* ===== Team ===== */
.team {
  padding: 80px 0 100px;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.team__card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.team__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-lt));
  opacity: 0;
  transition: opacity var(--transition);
}

.team__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team__card:hover::before {
  opacity: 1;
}

.team__photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  background: var(--clr-light-wash);
}

.team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.team__card:hover .team__photo img {
  transform: scale(1.04);
}

.team__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #dfe2ef 0%, #c2c7db 100%);
  color: var(--clr-muted);
}

.team__photo-placeholder svg {
  width: 56px;
  height: 56px;
  opacity: .3;
  margin-bottom: 8px;
}

.team__photo-placeholder span {
  font-size: .78rem;
  font-weight: 600;
  opacity: .45;
}

.team__info {
  padding: 24px 26px 28px;
  text-align: center;
}

.team__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 5px;
  color: var(--clr-primary-dk);
}

.team__role {
  font-size: .78rem;
  font-weight: 700;
  color: var(--clr-accent-dk);
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* ===== Features ===== */
.features {
  padding: 90px 0 100px;
  background: var(--clr-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 90, 199, .15) 0%, transparent 70%);
  pointer-events: none;
}

.features .section-header__tag {
  color: var(--clr-accent);
}

.features .section-header__title {
  color: #fff;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.features__item {
  padding: 34px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: background var(--transition), transform var(--transition);
}

.features__item:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-4px);
}

.features__icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--clr-primary-lt);
  margin-bottom: 20px;
}

.features__icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.features__item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.features__item p {
  font-size: .88rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.75;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
  text-align: center;
}

.contact__card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  box-shadow: var(--shadow-md);
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.contact__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent), var(--clr-primary));
}

.contact__logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 22px;
  opacity: .85;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--clr-primary-dk);
  margin-bottom: 12px;
}

.contact__desc {
  font-size: 1rem;
  color: var(--clr-muted);
  max-width: 440px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.contact__email-preview {
  font-size: .84rem;
  color: var(--clr-muted);
  margin-top: 16px;
}

/* ===== Footer ===== */
.footer {
  background: var(--clr-dark);
  color: rgba(255, 255, 255, .45);
  padding: 36px 0;
  font-size: .84rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: .7;
}

.footer__brand span {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255, 255, 255, .7);
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: .8rem;
  color: rgba(255, 255, 255, .45);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {

  .team__grid {
    grid-template-columns: 1fr 1fr;
  }

  .features__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
  }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(245, 246, 250, .97);
    backdrop-filter: blur(16px);
    padding: 24px 5%;
    gap: 20px;
    border-bottom: 1px solid rgba(45, 58, 140, .06);
  }

  .nav__toggle {
    display: block;
  }

  .nav__brand-sub {
    display: none;
  }

  .team__grid,
  .features__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 130px 0 60px;
  }

  .banners__slide {
    min-height: 220px;
  }

  .hero__logo {
    width: 80px;
    height: 80px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .contact__card {
    padding: 48px 24px;
  }

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