/* ============================================================
   SHARP BAHARAM – Global Stylesheet
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy:        #003366;
  --blue:        #00509e;
  --accent:      #ffcc00;
  --accent-dark: #e6b800;
  --orange:      #ffa500;
  --text:        #333333;
  --text-light:  #555555;
  --bg-light:    #f8f9fa;
  --bg-mid:      #f0f2f5;
  --white:       #ffffff;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.18);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --transition:  0.3s ease;
  --font:        'Poppins', sans-serif;
  --nav-h:       72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Container ---------- */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Navigation ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-header .logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,.15);
}

.nav-links .btn-support {
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}

.nav-links .btn-support:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero Shared ---------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,30,70,.55) 0%, rgba(0,30,70,.35) 60%, rgba(0,30,70,.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 20px;
}

.hero-content h1,
.hero-content h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 28px;
  opacity: .92;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  padding: 13px 30px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .4px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  display: inline-block;
  padding: 13px 30px;
  background: var(--accent);
  color: var(--navy);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  transition: background var(--transition), transform var(--transition);
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  padding: 11px 28px;
  border: 2px solid var(--white);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* ---------- Section Headings ---------- */
.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-title.light { color: var(--white); }

.section-divider {
  width: 50px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(135deg, #001f40 0%, var(--navy) 100%);
  color: rgba(255,255,255,.85);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.footer-col p, .footer-col li {
  font-size: .88rem;
  line-height: 1.8;
}

.footer-col ul { padding: 0; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a {
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-social-links { display: flex; gap: 14px; margin-top: 8px; }
.footer-social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: background var(--transition), transform var(--transition);
}
.footer-social-links a:hover {
  background: var(--accent);
  color: var(--navy);
  transform: translateY(-3px);
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.footer-newsletter-form input {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .88rem;
}

.footer-newsletter-form button {
  padding: 10px 18px;
  background: var(--accent);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: background var(--transition);
}

.footer-newsletter-form button:hover { background: var(--accent-dark); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.from-left  { transform: translateX(-36px); }
.reveal.from-right { transform: translateX(36px); }
.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delays for children */
.stagger > *:nth-child(1) { transition-delay: .05s; }
.stagger > *:nth-child(2) { transition-delay: .12s; }
.stagger > *:nth-child(3) { transition-delay: .19s; }
.stagger > *:nth-child(4) { transition-delay: .26s; }
.stagger > *:nth-child(5) { transition-delay: .33s; }

/* ---------- Loading Screen ---------- */
#loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #001f40 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .8s ease;
}

#loading-screen.fade-out { opacity: 0; pointer-events: none; }

.loader-ring {
  width: 72px; height: 72px;
  border: 5px solid rgba(255,255,255,.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

.loader-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: .9;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .hero-section { min-height: 480px; }
  .footer-grid { gap: 28px; }
}
