/* ============================================================
   TUWI TECHNOLOGIES — Global Stylesheet
   Fonts: Playfair Display (headings) + Inter (body)
   Theme: Navy Blue & White
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&display=swap');

/* ---- Variables ---- */
:root {
  --navy:        #1B2D5E;
  --navy-dark:   #0E1B3A;
  --navy-mid:    #233A75;
  --blue:        #2563EB;
  --blue-light:  #3B82F6;
  --blue-pale:   #EFF6FF;
  --white:       #FFFFFF;
  --off-white:   #F8FAFC;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-500:    #64748B;
  --gray-600:    #475569;
  --gray-800:    #1E293B;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:   0 2px 8px rgba(27,45,94,0.08);
  --shadow-md:   0 8px 30px rgba(27,45,94,0.12);
  --shadow-lg:   0 20px 60px rgba(27,45,94,0.15);
  --shadow-blue: 0 8px 25px rgba(37,99,235,0.30);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem);   font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem);   font-weight: 700; }
h3 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 600; }
h4 { font-size: 1.2rem;  font-weight: 600; }
p  { color: var(--gray-600); font-size: 1rem; line-height: 1.8; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(27,45,94,0.12);
  padding: 0.8rem 0;
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 48px; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-link {
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-light);
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover { color: white; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.navbar.scrolled .nav-link { color: var(--navy); }
.navbar.scrolled .nav-link:hover { color: var(--blue); }

.nav-cta-btn {
  background: var(--blue);
  color: white !important;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--shadow-blue);
  transition: var(--transition);
}
.nav-cta-btn::after { display: none !important; }
.nav-cta-btn:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,99,235,0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--navy); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(37,99,235,0.4);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
  transform: translateY(-3px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: white;
  transform: translateY(-3px);
}
.btn-white {
  background: white;
  color: var(--navy);
}
.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* ================================================================
   LAYOUT UTILITIES
   ================================================================ */
.section    { padding: 6rem 2.5rem; }
.section-sm { padding: 4rem 2.5rem; }
.container  { max-width: 1280px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.875rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-heading);
  color: var(--navy);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 620px;
  line-height: 1.8;
}

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  padding: 10rem 2.5rem 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.055) 1px, transparent 0);
  background-size: 42px 42px;
}
.page-hero-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.25) 0%, transparent 70%);
  animation: orbFloat 8s ease-in-out infinite;
}
.page-hero-orb.orb-1 { width: 320px; height: 320px; top: -60px; left: -80px; animation-delay: 0s; }
.page-hero-orb.orb-2 { width: 200px; height: 200px; bottom: -40px; right: 5%; animation-delay: 3s; }
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: white; margin-bottom: 1rem; }
.page-hero p  { color: rgba(255,255,255,0.72); font-size: 1.175rem; max-width: 580px; margin: 0 auto; }
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--blue-light); transition: color 0.2s; }
.breadcrumb a:hover { color: white; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--navy-dark);
  padding: 5rem 2.5rem 2rem;
}
.footer-container { max-width: 1280px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
.footer-brand img {
  height: 44px; width: auto;
  filter: brightness(0) invert(1) opacity(0.9);
  margin-bottom: 1.25rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.5rem;
}
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: var(--transition);
}
.social-link:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
  background: rgba(59,130,246,0.1);
  transform: translateY(-2px);
}
.footer-col h5 {
  color: white;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--blue-light); }

/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-blue);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 900;
}
.back-top.visible { opacity: 1; pointer-events: all; }
.back-top:hover { background: var(--blue-light); transform: translateY(-3px); }

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-24px) scale(1.05); }
}
@keyframes particleDrift {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-120vh) translateX(60px) rotate(360deg); opacity: 0; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(1.6);  opacity: 0; }
}
@keyframes typewriter-blink {
  0%, 100% { border-color: transparent; }
  50%       { border-color: var(--blue-light); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ================================================================
   RESPONSIVE — MOBILE
   ================================================================ */
@media (max-width: 960px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: min(320px, 88vw);
    background: var(--navy-dark);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 5rem 2.5rem;
    gap: 1.75rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 60px rgba(0,0,0,0.35);
  }
  .nav-links.open { right: 0; }
  .nav-link { font-size: 1.125rem !important; color: white !important; }
  .nav-link::after { background: var(--blue-light); }
  .nav-cta-btn { width: 100%; text-align: center; justify-content: center; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section    { padding: 4rem 1.5rem; }
  .section-sm { padding: 3rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
