/* ============================= */
/* GLOBAL RESET & VARIABLES      */
/* ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Octodanor brand system (from logo)
   Primary: #1F5E5B
*/
:root {
  /* Keep existing variable names to avoid refactoring HTML/classes */
  --navy: #0f2f2e;          /* deep teal-black for header/footer/overlays */
  --gray: #5f6e6d;          /* restrained muted text */
  --orange: #1F5E5B;        /* mapped to Octodanor primary (CTA + accents) */
  --white: #FFFFFF;
  --green: #3BA55C;         /* unused; kept */

  /* New helpers (optional) */
  --brand: #1F5E5B;
  --brand-hover: #184C49;
  --surface: #F7F9F9;
  --border: #DDE5E5;
  --text: #0F1A1A;
  --focus: rgba(31, 94, 91, 0.35);
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
}

/* Accessible focus */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ============================= */
/* HEADER / NAVBAR               */
/* ============================= */
header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo span {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white); /* keep high contrast on dark header */
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

nav ul li a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s ease;
}

nav ul li a:hover {
  color: var(--orange);
}

/* Ensure CTA in nav looks like a button */
nav ul li.nav-cta a.btn {
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
}

/* Dropdown */
.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  background: var(--navy);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  top: 100%;
  left: 0;
  min-width: 240px;
  z-index: 999;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  overflow: hidden;
}
.dropdown-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.dropdown-menu li:last-child {
  border-bottom: 0;
}
.dropdown-menu li a {
  display: block;
  padding: 0.85rem 1rem;
  color: rgba(255, 255, 255, 0.92);
}
.dropdown-menu li a:hover {
  background: var(--brand-hover);
}
.dropdown:hover .dropdown-menu {
  display: block;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--white);
}

/* ============================= */
/* BUTTONS                       */
/* ============================= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  background: var(--orange); /* primary */
  color: var(--white);
  border: 1px solid var(--orange);
}

.btn:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  transform: translateY(-1px); /* subtle micro-interaction */
}

.btn:active {
  transform: translateY(0);
}

/* Keep legacy hook if any page uses .btn.primary */
.btn.primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: rgba(255, 255, 255, 0.95);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

/* ============================= */
/* HERO                          */
/* ============================= */

/* HERO CAROUSEL */
.hero-carousel {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  /* conservative overlay tied to brand */
  background: rgba(15, 47, 46, 0.68);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.6rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.90);
}

/* Text Animations for Hero Carousel (kept but restrained) */
.hero-content h1,
.hero-content p,
.hero-content .btn {
  opacity: 0;
  transform: translateY(14px);
  transition: all 0.7s ease;
}

.hero-slide.active .hero-content h1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.hero-slide.active .hero-content p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.hero-slide.active .hero-content .btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.65s;
}

/* Controls */
.hero-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 3;
  transform: translateY(-50%);
}

.hero-controls span {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  opacity: 0.55;
  user-select: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.hero-controls span:hover {
  color: var(--orange);
  opacity: 0.9;
}

/* Indicators */
.hero-indicators {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 3;
}

.hero-indicators .dot {
  height: 12px;
  width: 12px;
  margin: 0 4px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.18s ease;
}

.hero-indicators .dot.active,
.hero-indicators .dot:hover {
  background: var(--orange);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 350px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

/* Legacy .hero block (unused on current index; kept) */
.hero {
  position: relative;
  height: 90vh;
  background: url("Assets/img/hero-bg.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 47, 46, 0.68);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.6rem;
  margin-bottom: 1rem;
  animation: fadeInDown 0.9s ease forwards;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease forwards;
}

/* ============================= */
/* ABOUT                         */
/* ============================= */
.about {
  padding: 6rem 2rem;
  text-align: center;
  background: var(--surface);
}

.about h2 {
  font-family: 'Montserrat', sans-serif;
  color: var(--navy);
  font-size: 2.1rem;
  margin-bottom: 1.5rem;
}

.about-desc {
  max-width: 760px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray);
}

/* Stats Grid */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  transition: transform 0.18s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-card p {
  font-size: 0.95rem;
  color: var(--navy);
  margin: 0;
}

/* ============================= */
/* SERVICES                      */
/* ============================= */
.services {
  background: var(--surface);
  padding: 6rem 2rem;
  text-align: center;
}

.services h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 3rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Service Card */
.service-card {
  position: relative;
  display: block;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;

  /* Animation state (hidden by default) */
  opacity: 0;
  transform: translateY(24px);
}

/* Trigger animation only when section is visible */
.services.visible .service-card {
  animation: fadeUp 0.75s ease forwards;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background: var(--bg) no-repeat center/cover;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: transform 0.45s ease, opacity 0.25s ease;
  z-index: 0;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 47, 46, 0.70); /* brand overlay */
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-3px); /* conservative */
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
  opacity: 1;
  transform: scale(1.04);
}

.service-card:hover::after {
  opacity: 1;
}

/* Content */
.service-content {
  position: relative;
  z-index: 2;
  transition: color 0.25s ease;
}

.service-content h3 {
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  transition: color 0.25s ease;
}

.service-content p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.6;
  transition: color 0.25s ease;
}

.service-card:hover .service-content h3,
.service-card:hover .service-content p {
  color: var(--white);
}

/* Button inside card (unused on current index; kept) */
.service-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.22s ease;
}

.service-card:hover .service-btn {
  opacity: 1;
  transform: translateY(0);
}

.services.visible .service-card:nth-child(1) { animation-delay: 0.15s; }
.services.visible .service-card:nth-child(2) { animation-delay: 0.30s; }
.services.visible .service-card:nth-child(3) { animation-delay: 0.45s; }
.services.visible .service-card:nth-child(4) { animation-delay: 0.60s; }
.services.visible .service-card:nth-child(5) { animation-delay: 0.75s; }

/* ============================= */
/* WHY US - Divider Style        */
/* ============================= */
.why-us {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #0f2f2e, #0b2322);
  color: var(--white);
  text-align: center;
}

.why-us h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2.2rem;
  color: var(--orange);
}

.why-list {
  list-style: none;
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

.why-list li {
  font-size: 1.1rem;
  margin: 1.1rem 0;
  padding-left: 1.2rem;
  border-left: 4px solid var(--orange);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  line-height: 1.6;
  font-weight: 500;

  opacity: 0;
  transform: translateY(18px);
}

/* Trigger animation only when section is visible */
.why-us.visible .why-list li {
  animation: fadeUp 0.75s ease forwards;
}

.why-us.visible .why-list li:nth-child(1) { animation-delay: 0.15s; }
.why-us.visible .why-list li:nth-child(2) { animation-delay: 0.30s; }
.why-us.visible .why-list li:nth-child(3) { animation-delay: 0.45s; }
.why-us.visible .why-list li:nth-child(4) { animation-delay: 0.60s; }

/* ============================= */
/* PROJECTS (unused on current index; kept) */
/* ============================= */
.projects {
  padding: 6rem 2rem;
  text-align: center;
  background: var(--surface);
}

.projects h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 3rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid var(--border);

  opacity: 0;
  transform: translateY(24px);
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.project-card:hover img {
  transform: scale(1.03);
}

.project-img {
  position: relative;
}

.project-img .overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 47, 46, 0.72);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  color: var(--white);
  text-align: center;
}

.project-img .overlay h3 {
  font-size: 1.25rem;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.project-img .overlay p {
  font-size: 1rem;
  opacity: 0.9;
}

.project-card:hover .overlay {
  opacity: 1;
}

/* Scroll animation */
.projects.visible .project-card {
  animation: fadeUp 0.75s ease forwards;
}

.projects.visible .project-card:nth-child(1) { animation-delay: 0.15s; }
.projects.visible .project-card:nth-child(2) { animation-delay: 0.30s; }
.projects.visible .project-card:nth-child(3) { animation-delay: 0.45s; }

/* ============================= */
/* PARTNERS / CAREERS (unused; kept) */
/* ============================= */
.partners {
  background: linear-gradient(135deg, var(--surface), #fff);
  padding: 6rem 2rem;
  text-align: center;
}

.partners h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.1rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.partners-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 3rem;
}

.partner-logos {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.partner-logos img {
  height: 55px;
  filter: grayscale(100%);
  opacity: 0;
  transform: translateY(18px);
  transition: filter 0.25s ease, transform 0.18s ease;
}

.partner-logos img:hover {
  filter: grayscale(0%);
  transform: translateY(-2px);
}

.partners.visible .partner-logos img {
  animation: fadeUp 0.75s ease forwards;
}

.partners.visible .partner-logos img:nth-child(1) { animation-delay: 0.15s; }
.partners.visible .partner-logos img:nth-child(2) { animation-delay: 0.30s; }
.partners.visible .partner-logos img:nth-child(3) { animation-delay: 0.45s; }
.partners.visible .partner-logos img:nth-child(4) { animation-delay: 0.60s; }

.careers {
  position: relative;
  background: linear-gradient(rgba(15, 47, 46, 0.88), rgba(15, 47, 46, 0.88)),
              url('assets/img/careers-bg.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 6rem 2rem;
  border-radius: 0;
}

.careers h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  color: var(--orange);
  margin-bottom: 1.2rem;
}

.careers p {
  font-size: 1.05rem;
  max-width: 740px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.careers .btn {
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
}

.careers .btn:hover {
  background: var(--brand-hover);
}

/* ============================= */
/* CONTACT                       */
/* ============================= */
.contact {
  background: linear-gradient(rgba(15, 47, 46, 0.92), rgba(15, 47, 46, 0.92)),
              url('assets/img/contact-bg.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
}

.contact h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.1rem;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.90);
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(255,255,255,0.96);
  color: var(--text);
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: rgba(31, 94, 91, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 94, 91, 0.30);
  transform: translateY(-1px);
}

.contact button {
  background: var(--orange);
  color: var(--white);
  padding: 1rem 1.8rem;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.contact button:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

/* ============================= */
/* FOOTER                        */
/* ============================= */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 2rem 1rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
  color: var(--orange);
  font-size: 1.05rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.90);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-logo {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-log a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}
.footer-log img {
  height: 50px;
  width: auto;
}
.footer-log span {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.social {
  margin-top: 0.5rem;
}

.social a {
  color: var(--white);
  text-decoration: none;
  margin: 0 0.3rem;
  transition: color 0.18s ease;
}

.social a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================= */
/* ANIMATIONS                    */
/* ============================= */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================= */
/* RESPONSIVENESS                */
/* ============================= */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--navy);
    width: 100%;
    padding: 1rem;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  nav ul.active { display: flex; }
  .menu-toggle { display: block; }

  .service-grid,
  .why-grid,
  .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .hero { height: 70vh; padding: 0 1rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.95rem; }

  .partner-logos img { height: 40px; }

  .contact form { padding: 0 1rem; }
}
