/* ==============================
   MAIN.CSS - GLOBAL STYLES
================================ */

/* ==============================
   DESIGN SYSTEM (VARIABLES)
================================ */
:root {
  --bg-light: #f9f9f9;
  --bg-dark: #0f0f1a;
  --text-primary: #111;
  --text-secondary: #555;
  --text-muted: #8f9ca3;
  --brand-primary: #0a2472;
  --brand-secondary: #f4511e;
  --brand-heat: #E6B873;
  --brand-highlight: #1F6AE1;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;

  --shadow-sm: 0 6px 20px rgba(0,0,0,0.04);
  --shadow-md: 0 12px 40px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==============================
 GLOBAL ELEMENTS
================================ */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-light);
  color: var(--text-primary);
  font-family: "Inter", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

section { 
  padding: 60px 24px;
}

p { 
  font-size: 1rem; 
  margin-bottom: 1em; }

.eyebrow {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

p.eyebrow {
  color: var(--brand-primary);
  font-size: 16px;
}


/* ==============================
 TYPOGRAPHY
================================ */
html { font-size: 16px; }

h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 0.25em; font-weight: 600; }
h2 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 0.75em; font-weight: 600; }
h3 { font-size: 1.5rem; line-height: 1.4; margin-bottom: 0.5em; }
h4 { font-size: 1rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.75rem; }

/* ==============================
 HEADER / NAVIGATION
================================ */
.floating-nav {
  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.floating-nav.nav-hidden {
  transform: translateX(-50%) translateY(-140%);
  opacity: 0;
  pointer-events: none;
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: none;
}

.logo-text {
  font-size: 1.5rem; /* adjust size */
  font-weight: 500;
  color: var(--brand-primary);
  font-family: 'Newsreader', sans-serif;
  text-decoration: none; /* remove underline */
}

.logo-text:hover {
  color: #3b508e; /* optional hover color */
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img { 
  height: 32px; 
  width: auto; 
  display: block; 
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px; /* controls spacing cleanly */
  min-height: 32px;
}

.nav-links a {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  min-width: 6ch; /* optional: keeps spacing consistent even if text width shifts */
  margin: 0;
  padding: 8px 0;
  font-size: 15px;
  letter-spacing: normal;
  text-decoration: none;
  font-size: 15px;
  color: var(--brand-primary);
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--brand-secondary); /* or any accent color you like */
}

.nav-btn {
  display: inline-flex; align-items:center; gap:10px;
  padding: 8px 14px; border-radius:999px; border:none;
  background: var(--brand-primary); color:#fff;
  font-size:13px; font-weight:500; cursor:pointer;
  transition: all 0.25s ease;
}
.nav-btn .nav-arrow { width:25px; height:25px; padding:5px; border-radius:50%; background:#fff; color:var(--brand-primary); transition: transform 0.25s ease; }
.nav-btn:hover .nav-arrow { transform: translateX(3px); }

.nav-btn,
.nav-btn:visited,
.nav-btn:hover,
.nav-btn:active {
  text-decoration: none;
}

/* Hamburger */
.nav-toggle { display: none; background:none; border:none; cursor:pointer; flex-direction: column; gap:5px; }
.nav-toggle span { width:24px; height:2px; background:#111; display:block; }

/* -------------------------
Dropdown for Desktop - Fixed Hover
------------------------- */
.nav-links .dropdown {
  position: relative;  /* needed for absolute dropdown */
  display: inline-flex; /* make it sit inline with other links */
  align-items: center;  /* vertical alignment */
}

.nav-links .dropbtn {
  cursor: pointer;
  margin: 0;
  padding: 8px 0;
  font-size: 15px;
  letter-spacing: normal;
  font-size: 15px;
  text-decoration: none;
  color: var(--brand-primary);
  transition: color 0.25s ease;
  position: relative;
  z-index: 1100;
}

.nav-links .dropdown:hover .dropbtn {
  color: var(--brand-secondary);
}

/* Remove triangle under Technologies */
.nav-links .dropbtn::after {
  content: "";
}

/* Dropdown menu now positioned relative to navbar */
.nav-links .dropdown-content {
  display: none;
  position: absolute;

  top: 100%;                /* anchor below link */
  transform: translateY(12px); /* 👈 ADJUST THIS VALUE */

  left: 0;
  min-width: 180px;

  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  min-width: 180px;
  z-index: 1100;
}

.nav-links .dropdown-content::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
  pointer-events: auto;
}

/* Dropdown links */
.nav-links .dropdown-content a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links .dropdown-content a:hover {
  color: var(--brand-secondary);
  background: none;
  text-decoration: none;
}

/* Show dropdown on hover */
.nav-links .dropdown:hover .dropdown-content {
  display: block;
}


/* -------------------------
Dropdown for Mobile
------------------------- */

/* Mobile menu container */
.mobile-menu {
  display: none;
  flex-direction: column;
  width: 90%;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-top: 1px solid #eee;
  z-index: 1000;
  padding: 0;
}

/* Common style for all mobile links */
.mobile-menu a,
.mobile-dropdown-content a {
  display: block;
  padding: 16px 12px;      /* consistent spacing */
  font-size: 16px;          /* same size for all links */
  color: var(--brand-primary);             /* same color */
  text-decoration: none;    /* remove underline */
  transition: background 0.2s ease, color 0.2s ease;
}

/* Hover effect for all links */
.mobile-menu a:hover,
.mobile-dropdown-content a:hover {
  background: #f5f5f5;      /* light highlight on hover */
  color: var(--brand-secondary);        /* optional hover color */
}

/* Optional: make CTA slightly bolder */
.mobile-cta {
  font-weight: 600;
}

/* Show menu when active */
.mobile-menu.active {
  display: flex;
}

/* Dropdown container */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
}

/* Header row: link + arrow */
.mobile-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Link */
.mobile-dropbtn {
  padding: 16px 12px;
  font-size: 16px;
  text-decoration: none;
  color: #111;
  flex: 1; /* fill available space */
}

/* Arrow button */
.mobile-submenu-toggle {
  background: none;
  border: none;
  font-size: 16px;
  padding: 16px 12px;
  cursor: pointer;
  transition: transform 0.25s ease;
  color: var(--brand-primary); 
}

.mobile-dropdown.active .mobile-submenu-toggle svg {
  transform: rotate(180deg);
  transition: transform 0.25s ease;
}

/* Dropdown content (submenu) */
.mobile-dropdown-content {
  display: none;
  flex-direction: column;
  padding-left: 16px;
}

.mobile-dropdown.active .mobile-dropdown-content {
  display: flex;
}

/* Links inside submenu */
.mobile-dropdown-content a {
  padding: 12px 12px;
  font-size: 14px;
  text-decoration: none;
  color: #111;
}


/* ==============================
 BUTTONS
================================ */
.white-btn, .blue-btn {
  display: inline-flex; align-items:center; gap:12px;
  padding:10px 18px; border-radius:999px; border:none;
  font-size:14px; font-weight:500; cursor:pointer; width:fit-content;
  transition: all 0.25s ease;
}
.white-btn { background:#fff; color: var(--brand-primary); }
.white-btn .arrow-icon { width:30px;height:30px;padding:7px;border-radius:50%;background:var(--brand-primary);color:#fff; transition: transform 0.25s ease; }
.white-btn:hover { transform: translateY(-1px); }
.white-btn:hover .arrow-icon { transform: translateX(4px); }

.white-btn,
.white-btn:visited,
.white-btn:hover,
.white-btn:active {
  text-decoration: none;
}

.blue-btn { background: var(--brand-primary); color:#fff; }
.blue-btn .arrow-icon { width:30px;height:30px;padding:7px;border-radius:50%;background:#fff;color: var(--brand-primary); transition: transform 0.25s ease; }
.blue-btn:hover { transform: translateY(-1px); }
.blue-btn:hover .arrow-icon { transform: translateX(4px); }

.blue-btn,
.blue-btn:visited,
.blue-btn:hover,
.blue-btn:active {
  text-decoration: none;
}



/* ==============================
   CTA SECTION
================================ */ 

/* CTA SECTION */
.cta-section {
  display: flex;
  justify-content: center;
  padding: 60px 24px;
  margin-bottom: 50px;
}

/* Rounded content wrapper */
.cta-wrapper {
  display: flex;              /* enable side-by-side layout */
  align-items: center;        /* vertically center title & button */
  justify-content: space-between; /* title left, button right */
  background-color: #fff;
  border-radius: 20px;
  padding: 20px 50px;         
  width: 100%;
  max-width: 1200px; /* 👈 match your other sections */
  box-sizing: border-box;     /* include padding in width */
}

/* Title */
.cta-title {
  color: #111;
}

.cta-subtitle {
  color: #111;
  max-width: 550px;
  font-weight: 500;
}

/* Subtitle / supporting text */
.cta-text {
  color: #555;
  margin-bottom: 32px;
}
  

/* ==============================
 FOOTER
================================ */
.footer { background:#111; border-top:1px solid #eee; padding:60px 24px; color:#fff; }
.footer-inner { max-width:1200px; margin:0 auto; display:grid; grid-template-columns:1.3fr 2fr; gap:60px; }

.footer-brand img { 
  height: 48px; 
  width: auto; 
  display: block; 
}
.footer-brand h3 { font-size:22px; font-weight:600; margin-top: 6px; margin-bottom:10px; }
.footer-brand p { font-size:14px; line-height:1.6; color:#bbb; max-width:300px; }

.social-icons { margin-top:18px; display:flex; gap:14px; }
.social-icons img { width:24px; height:24px; }
.social-icons a:hover { transform:translateY(-1px); }

.footer-links { display:grid; grid-template-columns:repeat(3,1fr); gap:40px; }
.footer-links h4 { font-weight:600; margin-bottom:12px; color:#bbb; }
.footer-links a { display:block; font-size:14px; color:#bbb; text-decoration:none; margin-bottom:8px; transition: all 0.2s ease; }
.footer-links a:hover { color:#fff; }

.footer-newsletter p { font-size:13px; color:#777; margin-bottom:12px; line-height:1.5; }
.footer-newsletter form { display:flex; align-items:center; border:1px solid #e5e7eb; border-radius:8px; overflow:hidden; margin-bottom:10px; }
.footer-newsletter input { flex:1; border:none; padding:10px 12px; font-size:14px; outline:none; }
.footer-newsletter button { border:none; background:transparent; color:#fff; padding:0 14px; cursor:pointer; font-size:18px; transition: background 0.2s ease; }
.footer-legal a { color:#777; text-decoration:none; margin-left:8px; }
.footer-legal a:hover { color:#fff; }

.footer-bottom { max-width:1200px; margin:50px auto 0; padding-top:20px; border-top:1px solid #777; display:flex; justify-content:space-between; align-items:center; font-size:13px; color:#777; }
.footer-bottom p { margin-bottom:12px; line-height:1.5; }

/* ==============================
 COOKIES
================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111;
  color: #fff;
  padding: 16px 0;
  z-index: 9999;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.3);
  display: none;
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  max-width: 700px;
}

.cookie-banner h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 600;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner a {
  color: #7db7ff;
  text-decoration: underline;
}

/* Buttons (pill style – from earlier) */
.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-buttons button {
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

#cookie-accept {
  background: #4CAF50;
  color: white;
}

#cookie-decline {
  background: #444;
  color: white;
}


/* ==============================
 MEDIA QUERIES (NAV/FOOTER)
================================ */
@media(max-width:900px){ .nav-links{display:none;} .footer-inner{grid-template-columns:1fr;} .footer-links{grid-template-columns:1fr 1fr;} .footer-newsletter{grid-column:span 2;} .footer-bottom{flex-direction:column; gap:10px; text-align:center;} }
@media(max-width:768px){ .nav-toggle{display:flex;} .mobile-menu.active{display:flex;} .nav-btn{display:none;} .nav-logo img{height:32px;} .logo-text {font-size:1rem;}}
@media (max-width: 768px) {

  .cta-wrapper {
    flex-direction: column;      /* stack title + button */
    align-items: center;
    text-align: center;
    gap: 16px;                   /* spacing between text & button */
  }

  .blue-btn {               /* optional but recommended */
    justify-content: center;     /* centers text + arrow inside button */
  }

  .cta-title {
    font-size: 24px;
  }

  .section {
    padding: 30px 24px;
  }
}

/* ==============================
   SCROLL REVEAL ANIMATIONS
================================ */

/* Base reveal state */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  will-change: transform, opacity;
}

/* Active state */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Softer reveal (for large sections) */
.reveal-soft {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}

.reveal-soft.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Left / Right directional reveals */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger support */
[data-delay] { 
  transition-delay: var(--delay, 0s); 
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-soft,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

#comingSoonToast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a; /* dark navy – professional */
  color: #fff;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

#comingSoonToast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}
