/* =========================
   RESET & BASE
   ========================= */
* {
  box-sizing: border-box;
}

/* =========================
   GLOBAL SILVER–LIGHT GREEN GRADIENT
   ========================= */

html, body {
  min-height: 100%;
  background: linear-gradient(
    180deg,
    #f5f7f6 0%,
    #e8f3ee 100%
  ) !important;
}

/* Let gradient show through all sections */
.hero-section,
.services-section,
.solutions-section,
.philosophy-section,
.why-section,
.footer-section {
  background: transparent !important;
}


/* =========================
   VARIABLES
   ========================= */
:root {
  --primary: #0d6efd;
  --muted: #4b5563;
  --border: #e5e7eb;
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
  background: linear-gradient(
    90deg,
    #f5f7f6 0%,
    #e8f3ee 100%
  ) !important;
  backdrop-filter: blur(6px);
}

/* Navbar text clarity */
.navbar .nav-link {
  color: #1f2937;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #2563eb;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary);
}

.navbar .btn {
  border-radius: 999px;
  font-size: 0.9rem;
}

/* =========================
   MOBILE NAVBAR – FLOW DOWN
   ========================= */

@media (max-width: 991px) {

  /* Dropdown flows naturally */
  .navbar-collapse {
    background: #ffffff;
    margin-top: 8px;
    padding: 12px 0;
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
  }

  /* Center links */
  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-link {
    padding: 10px 0;
    font-size: 1rem;
  }

  /* Keep buttons untouched */
  .navbar form {
    margin-top: 0;
  }

  .navbar .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
}



/* =========================
   HERO SECTION
   ========================= */
.hero-section {
  min-height: 80vh;
  background: transparent;
  position: relative;

  /* unified horizontal gutter */
  padding-inline: clamp(1rem, 4vw, 4rem);
}

/* =========================
   HERO CONTENT TYPOGRAPHY
   ========================= */

/* Subtitle badge polish */
.accent-subtitle .badge {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

/* Hero title color rhythm */
.hero-title span {
  display: inline-block;
  line-height: 1.2;
}

/* Description readability */
.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  word-spacing: 2.5px;
  color: #4b5563;
}

/* CTA buttons */
.hero-cta {
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 12px 25px rgba(13, 110, 253, 0.25);
}

/* =========================
   ANDROID / MOBILE CENTER ALIGN
   ========================= */
@media (max-width: 768px) {

  /* Center entire hero column */
  .hero-left {
    align-items: center !important;
    text-align: center;
  }

  /* Center content card */
  .hero-content-card {
    padding: 32px 24px;
    text-align: center;
  }

  /* Ensure headings align center */
  .hero-title {
    text-align: center;
  }

  .hero-title span {
    width: 100%;
  }

  /* Center description text */
  .hero-desc {
    text-align: center;
  }

  /* Center CTA buttons row */
  .hero-left .d-flex {
    justify-content: center;
  }

  /* Prevent buttons stretching weirdly */
  .hero-left .btn {
    white-space: nowrap;
  }
}



/* =========================
   LEFT CONTENT
   ========================= */
.hero-left {
  background: transparent;
  padding: clamp(2rem, 3.5vw, 4rem) !important;

  /* space between text and 3D model */
  padding-right: clamp(2.5rem, 6vw, 6.5rem) !important;

  position: relative;
  z-index: 5;
}

/* =========================
   TEXT STYLES
   ========================= */
.hero-section h4 {
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.hero-section h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.3;
  color: #07143a;
}

.hero-desc {
  max-width: 100ch;
  font-size: 1.1rem;
  color: var(--muted);
}

/* =========================
   PREMIUM SOLUTION CARDS
   ========================= */

.solution-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.35s ease;
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.solution-icon {
  font-size: 2.2rem;
  color: var(--primary);
}


/* =========================
   3D MODEL COLUMN
   ========================= */
.hero-image-wrap {
  position: relative;
  z-index: 1;

  /* mirror left spacing */
  padding-left: clamp(2.5rem, 6vw, 6.5rem);
  padding-right: clamp(1rem, 3vw, 3rem);

  overflow: hidden;
  background: transparent !important;
}

#hero3d {
  width: 100%;
  height: 100%;
  min-height: 80vh;
  display: block;
  background: transparent;
}

/* =========================
   MOBILE FIXES
   ========================= */
@media (max-width: 767px) {
  .hero-section {
    padding-inline: 1rem;
  }

  .hero-left {
    padding-right: 1rem !important;
    text-align: center;
    align-items: center !important;
  }

  .hero-image-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  #hero3d {
    min-height: 50vh;
  }
}

/* =========================
   BUTTONS
   ========================= */
.btn-primary,
.hero-cta {
  border-radius: 14px;
  font-size: 0.9rem;
}

.btn-orange {
  background-color: #ff8a5c;
  color: #fff;
  border-radius: 25px;
  padding: 10px 25px;
  border: none;
}

.btn-register {
  background-color: #f28b50;
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  border: none;
}

.btn-contact {
  background: none;
  color: #f28b50;
  border: none;
  padding: 10px 0;
}

/* =========================
   SERVICES
   ========================= */
.services-section h6 {
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

.services-section h2 {
  font-size: clamp(1.8rem, 2.3vw, 2.3rem);
}

.service-card {
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
}

.text-pink {
  color: #e83e8c;
}

/* =========================
   ACCORDION
   ========================= */
.accordion-button {
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

.accordion-body {
  font-size: 0.95rem;
  color: #5a6570;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* =========================
   PHILOSOPHY
   ========================= */
.philosophy-section {
  background-color: #fef7f5;
}

.philosophy-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophy-name {
  font-size: 1.5rem;
  font-weight: 600;
}

/* =========================
   CTA
   ========================= */

/* Content surfaces stay white */
.card,
.accordion-item {
  background-color: #ffffff;
}

/* CTA Section */
.cta-section {
  background: #2563eb;
  color: #ffffff;

  padding: 24px 20px;
  border-radius: 16px;

  /* IMPORTANT: no margin on mobile */
  width: 100%;
  box-sizing: border-box;
}

/* Desktop spacing */
@media (min-width: 768px) {
  .cta-section {
    padding: 32px 32px;
    border-radius: 20px;

    max-width: 1100px;
    margin: 32px auto;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
}

/* Typography */
.cta-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.cta-text {
  font-size: 0.95rem;
  color: #e5e7eb;
  max-width: 650px;
}


/* =========================
   FOOTER
   ========================= */
.footer-section {
  padding: 40px 0;
  background-color: #f1f5f9;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.footer-section a {
  color: #4b5563;
}

.footer-section a:hover {
  color: var(--primary);
}

/* =========================
   ACCESSIBILITY
   ========================= */
:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 3px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 767px) {
  .hero-left {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

/* =========================
   GLOBAL TRANSITIONS
   ========================= */
a, button, .card, img {
  transition: all 0.3s ease;
}

/* =========================
   NAVBAR HOVER EFFECT
   ========================= */

.navbar {
  background-color: #fff !important;
}

/* =========================
   NAVBAR GRADIENT (FINAL)
   ========================= */

.navbar {
  background: linear-gradient(
    90deg,
    #f4f7fc 0%,
    #e9eff9 100%
  ) !important;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Navbar links remain readable */
.navbar .nav-link {
  color: #1f2937;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #2563eb;
}

.navbar .nav-link {
  position: relative;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 60%;
}

/* =========================
   HERO ANIMATION
   ========================= */
.hero-left h4,
.hero-left h1,
.hero-desc,
.hero-cta {
  animation: fadeUp 0.9s ease forwards;
}

.hero-left h1 { animation-delay: 0.15s; }
.hero-desc { animation-delay: 0.3s; }
.hero-cta { animation-delay: 0.45s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   SERVICE CARD HOVER
   ========================= */
.service-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

/* =========================
   PHILOSOPHY – FINAL GRID-CORRECT DESIGN
   ========================= */

/* Section spacing */
.philosophy-section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

/* Header typography */
.philosophy-section h6 {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
}

.philosophy-section h2 {
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* =========================
   CRITICAL FIX
   RECTANGLE = SAME WIDTH AS 3 CARDS
   ========================= */

/* Override Bootstrap col-lg-10 ONLY inside philosophy */
.philosophy-section .row > .col-lg-10 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* =========================
   CORE PHILOSOPHY (RECTANGLE CARD)
   ========================= */

.philosophy-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  gap: 16px;
  padding: 36px 40px;

  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  border-left: 6px solid var(--primary);
  border-radius: 18px;
}

/* Core icon */
.philosophy-core-icon {
  font-size: 3rem;
  line-height: 1;
  color: var(--primary);
}

/* Core text */
.philosophy-core p {
  max-width: 760px;
  line-height: 1.65;
}

/* =========================
   PHILOSOPHY CARDS (3 SQUARE CARDS)
   ========================= */

.philosophy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  height: 100%;
  padding: 36px 32px;

  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Hover polish */
.philosophy-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

/* Top-center icons */
.philosophy-icon {
  width: 64px;
  height: 64px;

  display: grid;
  place-items: center;

  font-size: 3.2rem;
  line-height: 1;
  color: var(--primary);

  border-radius: 50%;
  background: rgba(13, 110, 253, 0.08);
  margin-bottom: 14px;
}

/* Card heading */
.philosophy-card h5 {
  margin-top: 6px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* Card text */
.philosophy-card p {
  line-height: 1.6;
  max-width: 90%;
}

/* =========================
   SIGNATURE
   ========================= */

.philosophy-section .row.mt-5 {
  margin-top: 4rem !important;
}

.philosophy-section .text-secondary {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* =========================
   RESPONSIVE REFINEMENTS
   ========================= */

@media (max-width: 768px) {
  .philosophy-core {
    padding: 28px 24px;
  }

  .philosophy-core-icon {
    font-size: 2.6rem;
  }

  .philosophy-card {
    padding: 32px 24px;
  }

  .philosophy-icon {
    width: 56px;
    height: 56px;
    font-size: 2.8rem;
  }

  .philosophy-card p {
    max-width: 100%;
  }
}



/* =========================
   BUTTON HOVER EFFECTS
   ========================= */
.btn-primary,
.btn-register {
  box-shadow: 0 10px 20px rgba(13,110,253,0.15);
}

.btn-primary:hover,
.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(13,110,253,0.25);
}

.btn-contact:hover {
  text-decoration: underline;
}

/* =========================
   ACCORDION POLISH
   ========================= */
.accordion-item:hover {
  border-color: var(--primary);
}

/* =========================
   IMAGE HOVER EFFECT
   ========================= */
.hero-image,
.philosophy-image {
  transition: transform 0.6s ease;
}

.hero-image:hover,
.philosophy-image:hover {
  transform: scale(1.05);
}

/* =========================
   FOOTER ICON HOVER
   ========================= */
.footer-section i {
  font-size: 1.2rem;
}

.footer-section i:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

/* =========================
   RESPONSIVE IMPROVEMENTS
   ========================= */
@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
  }

  .hero-left {
    text-align: center;
    align-items: center !important;
  }

  .hero-desc {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.9rem;
  }

  .cta-section {
    text-align: center;
  }
}

/* =========================
   SCROLL POP-UP ANIMATION
   ========================= */

/* Initial hidden state */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Slight delay helpers (optional) */
.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }
.reveal.delay-3 { transition-delay: 0.45s; }

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}