/* ========== GLOBAL RESET & VARIABLES ========== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --color-bg-dark: #020818;
  --color-bg-darker: #01040c;
  --color-primary: #00b4ff;
  /* Bright Cyan */
  --color-primary-dim: #0078aa;
  /* Dimmer Blue */
  --color-accent: #00f2ff;
  /* Electric Cyan */
  --color-text-main: #ffffff;
  --color-text-muted: #b0c4de;
  --color-glass-border: rgba(255, 255, 255, 0.1);
  --color-glass-bg: rgba(10, 20, 40, 0.6);

  --font-main: "Montserrat", sans-serif;
  --font-display: "Outfit", sans-serif;

  --shadow-glow: 0 0 20px rgba(0, 180, 255, 0.3);
  --gradient-main: linear-gradient(135deg, #00b4ff 0%, #00f2ff 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  margin-top: 0;
  color: var(--color-text-main);
}

/* ========== BACKGROUNDS & UTILITIES ========== */

.page-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 70, 120, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 180, 255, 0.08) 0%, transparent 40%),
    var(--color-bg-dark);
}

/* Grid overlay pattern */
.page-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Glass Card Style */
.glass-card {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  /* Prevents flicker/FOUC */
  animation: fadeIn 0.6s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

/* ========== HEADER & NAV ========== */

header {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(2, 8, 24, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ========== HERO SECTION (HOME) ========== */

.hero-section {
  padding: 8vh 0 6vh;
  text-align: center;
}

.hero-logo {
  max-width: 500px;
  width: 80vw;
  filter: drop-shadow(0 0 40px rgba(0, 180, 255, 0.2));
  margin-bottom: 1.5rem;
}

.tagline {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--color-text-muted);
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto 4rem;
  letter-spacing: 0.02em;
}

/* ========== SERVICE CARDS ========== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  min-height: 200px;
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 180, 255, 0.15);
  border-color: rgba(0, 180, 255, 0.4);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: none;
  /* Hidden on simpler view, can enable if descriptions needed */
}

/* ========== PARTNERS SECTION ========== */

.partners-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.partners-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.partners-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  align-items: center;
}

.partner-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s;
}

.partner-name:hover {
  color: var(--color-text-main);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* ========== SUBPAGES ========== */

.page-header {
  padding: 4rem 0;
  background: radial-gradient(circle at 60% 50%, rgba(0, 60, 100, 0.2), transparent 70%);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient-main);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 800px;
}

.content-section {
  padding: 4rem 0;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.feature-block.reversed {
  direction: rtl;
  /* Simple way to swap columns */
}

.feature-block.reversed .feature-text {
  direction: ltr;
  /* Reset text direction */
}

.feature-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.feature-text p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* ========== FOOTER ========== */

footer {
  margin-top: auto;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

footer a {
  color: var(--color-text-muted);
}

footer a:hover {
  color: var(--color-primary);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .feature-block,
  .feature-block.reversed {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .page-title {
    font-size: 2rem;
  }
}

/* ========== PLACEHOLDERS ========== */

.placeholder-img {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, rgba(10, 20, 40, 0.8) 0%, rgba(2, 8, 24, 0.9) 100%);
  border: 1px dashed rgba(0, 180, 255, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.placeholder-img:hover {
  border-color: rgba(0, 180, 255, 0.5);
  background: linear-gradient(135deg, rgba(10, 24, 48, 0.9) 0%, rgba(2, 12, 32, 1) 100%);
}

.placeholder-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--color-primary-dim);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.placeholder-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
  max-width: 80%;
}

/* ========== SPLIT HERO LAYOUT ========== */
.split-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: start;
}

@media (min-width: 900px) {
  .split-hero {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

.hero-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Limit max height/width for large images */
  max-height: 350px;
  /* Smaller on mobile */
  display: flex;
  justify-content: center;
  background: var(--color-glass-bg);
}

@media (min-width: 768px) {
  .hero-visual {
    max-height: 600px;
  }
}

.hero-visual img {
  width: 100%;
  height: auto;
  max-height: 350px;
  /* Match container mobile height */
  object-fit: contain;
  /* Ensure image fits without cropping */
  display: block;
  transition: transform 0.5s ease;
}

@media (min-width: 768px) {
  .hero-visual img {
    max-height: 600px;
  }
}

.hero-visual:hover img {
  transform: scale(1.02);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.feature-item h2 {
  color: var(--color-primary);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.feature-item p {
  color: var(--color-text-muted);
  line-height: 1.6;
}