/* General Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "avenir-next-regular", sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}
.page-wrapper {
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: "avenir-next-regular", sans-serif;
  color: #333;
  line-height: 1.6;
  width: 100%;
}

/* Navbar - Updated for sticky behavior and iOS compatibility */
header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(-90deg, rgba(30, 114, 184, 0.8), rgba(40, 31, 96, 1));
  width: 100%;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
/**/
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  width: 100%;
  overflow: visible !important;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  width: auto;
  height: 50px;
  object-fit: contain;
  margin-bottom: 10px;
}

.logo p {
  /*font-size: 0.9rem;*/
  color: white;
  font-weight: normal;
  /*padding-left: 10px;
  padding-top: 10px;*/
  margin-top: 10px;
  margin-left: 10px;
}

.logo i {
  color: #1e72b8;
}

.logo img {
  height: 100%;
  /*padding: 6px;*/
  margin-top: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: white;
  margin-left: 2rem;
  font-weight: normal;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #281f60;
}

.nav-links a.active {
  color: #281f60 !important;
  font-weight: 700;
}

/* Menu Toggle - Enhanced for iPhone/Safari */
.menu-toggle {
  display: none;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1001;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.bar:nth-child(1) { top: 0; }
.bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.bar:nth-child(3) { bottom: 0; }

/* Hamburger Animation when menu is open */
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, rgba(30, 114, 184, 0.98), rgba(40, 31, 96, 0.98));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 10px 10px;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    padding: 15px 0;
    margin-left: 0;
    width: 100%;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: #281f60;
  color: white;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background-color: #1e72b8;
  transform: translateY(-2px);
}

.btn-primary2 {
  display: inline-block;
  background-color: #1e72b8;
  color: white;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.hero-line {
  width: 80px;
  height: 4px;
  background: #1e72b8;
  margin: 20px auto 20px auto;
}

.btn-primary2:hover {
  background-color: #333;
  transform: translateY(-2px);
}

/* --- New Hero Style --- */
.home-hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 1.5rem 150px;
  clip-path: ellipse(150% 100% at 50% 0%);
}

/* The Slider Container */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Individual Slides */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideShow 12s linear infinite;
}

/* Apply the Linear Gradient Overlay globally via a pseudo-element */
.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(40, 31, 96, 0.75), rgba(40, 31, 96, 0.75));
  z-index: 1;
}

/* Animation Timing for 3 Images */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 4s; }
.slide:nth-child(3) { animation-delay: 8s; }

@keyframes slideShow {
  0% { opacity: 0; }
  10% { opacity: 1; }
  33% { opacity: 1; }
  43% { opacity: 0; }
  100% { opacity: 0; }
}

.home-hero-overlay {
  position: relative;
  z-index: 2;
}

.home-hero-overlay h1 {
  font-size: 4.5rem;
  text-shadow: #1e72b8 2px 2px 4px;
  color: white;
  animation: fadeInUp 1s ease;
}

.home-subtitle {
  color: #1e72b8;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.home-hero-overlay p {
  color: white;
  font-size: 1.5rem;
  font-weight: 500;
}

/* --- Who We Are Section --- */
.who-we-are {
  background: url('img/new/new.png') center/cover no-repeat;
  background-color: rgba(255, 255, 255, 0.95);
  background-blend-mode: lighten;
  color: #1e293b;
  padding: 40px 5% 10px 5%;
  margin-top: -50px;
}

.who-we-are h2 {
  text-align: center;
  margin-top: 50px;
}

.who-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.who-content {
  flex: 1.2;
}

.who-heading {
  font-size: 2.8rem;
  color: #281f60;
  text-align: center;
  margin-bottom: 2rem;
}

.who-container-right {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 5%;
  display: flex;
  justify-content: flex-end;
}

.content-alignment-wrapper {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

.overview-visual-right {
  width: 100%;
}

.strategy-frame {
  position: relative;
  width: 100%;
  max-width:350px;
}

.strategy-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);         /* ← NEW: sits above the decoration */
}

.frame-decoration {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid #1e72b8;
  border-radius: 20px;
  z-index: 1;            /* ← Changed from -1 to 1 */
}
.overview-content-right {
  text-align: left;
}

.overview-label {
  color: #1e72b8;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.overview-summary {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Horizontal Blocks on Left */
.summary-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.summary-row {
  display: flex;
  gap: 20px;
}

.summary-item {
  flex: 1;
  background: #f1f5f9;
  padding: 20px;
  border-left: 4px solid #1e72b8;
  border-radius: 4px;
}

.summary-item h4 {
  color: #281f60;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.learn-more {
  margin-top: 10px;
}

/* --- Dice Animation (Right Side) --- */
.who-visual {
  flex: 0.8;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dice-stage {
  position: relative;
  width: 250px;
  height: 250px;
}

.die {
  position: absolute;
  width: 160px;
  height: 160px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border: 2px solid #fff;
}

.die img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
}

.die-label {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 102, 255, 0.9);
  color: white;
  text-align: center;
  font-size: 0.8rem;
  padding: 5px 0;
  font-weight: 600;
  border-radius: 0 0 13px 13px;
}

/* The Orbit Keyframes */
@keyframes diceOrbit {
  0% { transform: translate(0, 0) scale(1); z-index: 3; }
  33% { transform: translate(120px, 120px) scale(0.8); z-index: 1; }
  66% { transform: translate(-80px, 150px) scale(0.9); z-index: 2; }
  100% { transform: translate(0, 0) scale(1); z-index: 3; }
}

@keyframes diceOrbitTwo {
  0% { transform: translate(120px, 120px) scale(0.8); z-index: 1; }
  33% { transform: translate(-80px, 150px) scale(0.9); z-index: 2; }
  66% { transform: translate(0, 0) scale(1); z-index: 3; }
  100% { transform: translate(120px, 120px) scale(0.8); z-index: 1; }
}

@keyframes diceOrbitThree {
  0% { transform: translate(-80px, 150px) scale(0.9); z-index: 2; }
  33% { transform: translate(0, 0) scale(1); z-index: 3; }
  66% { transform: translate(120px, 120px) scale(0.8); z-index: 1; }
  100% { transform: translate(-80px, 150px) scale(0.9); z-index: 2; }
}

.die-1 { animation: diceOrbit 12s infinite ease-in-out; }
.die-2 { animation: diceOrbitTwo 12s infinite ease-in-out; }
.die-3 { animation: diceOrbitThree 12s infinite ease-in-out; }

/* --- Quick Overview Row --- */
.quick-overview {
  display: flex;
  align-items: center;
  gap: 4rem;
  background: #f8fbff;
  padding: 40px;
  border-radius: 20px;
  margin-bottom: 60px;
  box-shadow: inset 0 0 20px rgba(0, 102, 255, 0.03);
  border: 1px solid rgba(0, 102, 255, 0.05);
}

.overview-left {
  flex: 1.5;
}

/* ---------- CORE VALUES SECTION ---------- */
.value-section {
  padding: 2.5rem 5%;
  background: #f8fbff;
}

.value-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.value-header h2 {
  font-size: 2.7rem;
  color: #281f60;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.value-header p {
  max-width: 620px;
  margin: 0.8rem auto 0;
  color: #1e72b8;
  font-weight: 500;
  font-size: 1.1rem;
}

.value_container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
  padding-bottom: 0.8rem;
}

.value_item {
  flex: 1 1 0;
  min-width: 180px;
  background: #ffffff;
  border-radius: 5px;
  padding: 1rem;
  transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  text-align: center;
  border: 1px solid rgba(0, 102, 255, 0.08);
}

.value_item:hover {
  transform: translateY(-12px);
  border-color: rgba(0, 102, 255, 0.3);
  background: #ffffff;
}

.value_icon {
  font-size: 3.2rem;
  color: #1e72b8;
  margin-bottom: 1.3rem;
  display: inline-block;
  transition: transform 0.25s;
}

.value_item:hover .value_icon {
  transform: scale(1.08);
  color: #281f60;
}

.value_title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f2b3d;
  margin-bottom: 0.9rem;
  letter-spacing: -0.3px;
}

.value_short_description {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 500;
}

.value_item .card-divider {
  width: 45px;
  height: 3px;
  background: #1e72b830;
  margin: 1rem auto 0.8rem auto;
  border-radius: 3px;
}

/* CTA Booking Section */
.booking {
  background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1600&q=80') repeat-x center center;
  background-size: cover;
  position: relative;
  animation: slideBackground 40s linear infinite;
}

@keyframes slideBackground {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.booking_overlay {
  background: rgba(26, 54, 93, 0.85);
  padding: 6rem 5%;
  text-align: center;
  color: white;
}

.booking_title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.booking_overlay p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 4rem 5% 2rem 5%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #334155;
  padding-bottom: 2rem;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links h4, .footer-socials h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-links a:hover, .footer-socials a:hover {
  color: #1e72b8;
}

.footer-socials a {
  color: #cbd5e1;
  font-size: 1.5rem;
  margin-right: 1rem;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
}

/* Keyframe Entrances */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Container Logic */
.summary-container {
  display: flex;
  align-items: center;
  gap: 5rem;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 5%;
}

.summary-image, .summary-text {
  flex: 1;
}

.section-tag {
  color: #1e72b8;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.mine {
  display: flex;
  flex: 1;
  position: relative;
  gap: 30px;
}

.section-description {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 25px;
}

.mini-features {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.mini-features2 {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.mini-features span,
.mini-features2 span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e72b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-features i,
.mini-features2 i {
  color: #1e72b8;
}
.strategy-frame:hover .frame-decoration {
  transform: translate(5px, 5px);
  background: rgba(0, 102, 255, 0.05);
}
.strategy-frame img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 15px;
  position: relative;
  z-index: 2;
}

/* Media Queries */
@media (max-width: 1050px) {
  .value_container {
    gap: 1.2rem;
  }
  .value_item {
    padding: 1.5rem 1rem;
  }
  .value_title {
    font-size: 1.3rem;
  }
  .value_icon {
    font-size: 2.6rem;
  }
}

@media (max-width: 992px) {
  .who-container {
    flex-direction: column;
    text-align: center;
  }
  .summary-row {
    flex-direction: column;
  }
  .who-visual {
    height: 350px;
  }
  .quick-overview {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  .overview-summary {
    font-size: 1.1rem;
  }
  .strategy-frame {
    margin-top: 20px;
  }
  .summary-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  .mini-features,
  .mini-features2 {
    justify-content: center;
  }
}

@media (max-width: 880px) {
  .value_container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    overflow-x: visible;
    padding-bottom: 0;
    flex-wrap: nowrap;
  }
  .mine {
    align-items: center;
    justify-content: center;
  }
  .value_item {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-width: 0;
    flex: 0 0 auto;
  }
  .value-section {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .who-container-right {
    justify-content: center;
  }
  .content-alignment-wrapper {
    text-align: center;
    align-items: center;
  }
  .overview-content-right {
    text-align: center;
  }
  .home-hero-overlay h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  .home-hero {
    height: 55vh;
    padding: 60px 1.5rem 80px;
    clip-path: none;
  }
  .home-hero-overlay p {
    font-size: 1rem;
  }
  .hero-line {
    margin: 15px auto;
  }
  .who-we-are {
    margin-top: 0;
    padding-top: 30px;
  }
  .who-we-are h2 {
    margin-top: 30px;
  }
  .booking_title {
    font-size: 2rem;
  }
}

@media (max-width: 620px) {
  .value_item {
    max-width: 100%;
  }
  .value-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .home-hero {
    height: 45vh;
    padding: 40px 1rem 60px;
  }
  .home-hero-overlay h1 {
    font-size: 1.8rem;
  }
}
