/*
 * Fusion Harbor Website Styles (Fixed)
 *
 * This style sheet defines a modern, dark‑themed aesthetic inspired by high‑end
 * consulting and technology brands. The palette uses deep blues and blacks
 * complemented by gold and teal accents to evoke a sense of luxury and
 * innovation. Responsive typography, generous spacing and subtle
 * animations ensure readability and a polished user experience.
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* CSS variables for easy theming */
:root {
  --color-bg: #0b1421; /* deep navy background */
  --color-bg-alt: #0f1d2f; /* slightly lighter panel background */
  /* updated palette for a more refined luxury feel */
  --color-primary: #c1aa69; /* updated gold tone (RGB 193,170,105) */
  --color-secondary: #3dbec6; /* soft teal accent */
  --color-light: #f5f7fa; /* light text for contrast */
  --color-muted: #a5b2c5; /* muted grey for secondary text */
  --font-body: 'Poppins', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --transition-speed: 0.4s;
  /* additional accent for subtle lines */
  --color-line: rgba(199, 163, 74, 0.3);
}

/* Global reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--color-secondary);
}

/* Navigation */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background: rgba(11, 20, 33, 0.85);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(229, 168, 35, 0.2);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
}

/* Logo image within the logo container */
.logo img {
  height: 42px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav li a {
  font-weight: 500;
  color: var(--color-light);
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-speed) ease;
}

nav li a:hover::after {
  width: 100%;
}

/* Hamburger menu for mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  background: var(--color-primary);
  margin-bottom: 4px;
  transition: transform var(--transition-speed) ease;
  border-radius: 2px;
}

/* Mobile menu */
.mobile-nav {
  display: none;  /* hidden by default */
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-bg-alt);
  width: 200px;
  border: 1px solid rgba(229, 168, 35, 0.2);
  border-top: none;
}

/* Show mobile nav only when open class is present */
.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 1rem;
  color: var(--color-light);
  border-bottom: 1px solid rgba(229, 168, 35, 0.15);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* Optional: animate hamburger icon when open */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px);
}

/* Hero section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-light);
  /* Updated hero background to use the high‑resolution network banner stored in the images folder */
  background: url('images/network-banner.png') no-repeat center center/cover;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11,20,33,0.9) 0%, rgba(11,20,33,0.7) 60%, rgba(11,20,33,1) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--color-muted);
}

.hero .btn {
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background var(--transition-speed);
}

.hero .btn:hover {
  background: var(--color-secondary);
}

/* Generic button style reused across pages */
.btn {
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background var(--transition-speed), color var(--transition-speed);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--color-secondary);
  color: var(--color-bg);
}

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

section.dark {
  background: var(--color-bg-alt);
  border-top: 1px solid rgba(229, 168, 35, 0.1);
  border-bottom: 1px solid rgba(229, 168, 35, 0.1);
}

section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--color-primary);
}

section p {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  text-align: center;
  color: var(--color-muted);
}

/* Identity cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  background: var(--color-bg-alt);
  border: 1px solid rgba(229, 168, 35, 0.1);
  padding: 2rem;
  border-radius: 8px;
  flex: 1 1 250px;
  max-width: 300px;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.card p {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Process timeline */
.timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
}

.timeline-step {
  background: var(--color-bg-alt);
  border: 1px solid rgba(229, 168, 35, 0.1);
  padding: 1.5rem;
  border-radius: 6px;
  flex: 1 1 200px;
  max-width: 280px;
  position: relative;
}

.timeline-step::before {
  content: attr(data-step);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-bg);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.timeline-step h4 {
  font-size: 1.1rem;
  font-family: var(--font-heading);
  margin: 1.5rem 0 0.5rem;
  color: var(--color-secondary);
  text-align: center;
}

.timeline-step p {
  font-size: 0.9rem;
  color: var(--color-muted);
  text-align: center;
}

/* Call to action */
.cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
  color: var(--color-bg);
  margin-top: 4rem;
}

.cta h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.cta p {
  color: var(--color-bg);
  margin-bottom: 1.5rem;
}

.cta .btn-dark {
  background: var(--color-bg);
  color: var(--color-primary);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background var(--transition-speed), color var(--transition-speed);
}

.cta .btn-dark:hover {
  background: var(--color-light);
  color: var(--color-bg);
}

/*
 * Vertical tagline styling
 *
 * To evoke the modern, content‑driven aesthetic seen on leading websites
 * like engine.fm, we introduce a subtle vertical tagline that sits on
 * the left side of the hero section. It appears on larger screens and
 * offers visitors a glimpse of Fusion Harbor’s core focus (governance‑led
 * transformation) without overwhelming the main headline. On smaller
 * viewports the tagline is hidden to preserve space.
 */
.hero .vertical-tagline {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  display: none;
}

.hero .vertical-tagline::before {
  content: '';
  display: block;
  width: 1px;
  height: 100px;
  margin-bottom: 0.5rem;
  background: var(--color-line);
}

@media (min-width: 768px) {
  .hero .vertical-tagline {
    display: block;
  }
}

/* Footer */
footer {
  background: var(--color-bg-alt);
  padding: 3rem 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(229, 168, 35, 0.2);
}

footer .footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* RTL support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .nav-container {
  flex-direction: row-reverse;
}

[dir="rtl"] nav ul {
  flex-direction: row-reverse;
}

[dir="rtl"] .cards {
  justify-content: flex-end;
}

footer h4 {
  color: var(--color-primary);
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

footer p,
footer a {
  font-size: 0.85rem;
  color: var(--color-muted);
}

footer a:hover {
  color: var(--color-secondary);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icons a {
  color: var(--color-primary);
  font-size: 1.2rem;
}

/* Page indicator dots on the left side of the viewport. These provide a subtle
   visual cue of how many sections are on the home page and evoke the
   vertical navigation seen on sites like engine.fm. */
.page-indicator {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 90;
}

.page-indicator a {
  width: 10px;
  height: 10px;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  background: transparent;
  display: block;
  transition: background var(--transition-speed);
}

.page-indicator a:hover,
.page-indicator a:focus {
  background: var(--color-primary);
}

.social-icons a:hover {
  color: var(--color-secondary);
}

/* Language switch link */
.lang-switch {
  margin-left: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  align-self: center;
}

.lang-switch:hover {
  color: var(--color-secondary);
}

/* Mobile navigation language switch styling */
.mobile-nav .lang-switch {
  margin-top: 1rem;
  border-top: 1px solid rgba(229, 168, 35, 0.2);
  padding-top: 1rem;
}

/* Utilities */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-speed) ease,
              transform var(--transition-speed) ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive styles */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  /* Do not force mobile-nav to display; rely on .open class */
  .timeline {
    flex-direction: column;
    align-items: center;
  }
}
