/* JEE International LLC — Global Design System */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=DM+Sans:wght@300;400;500;700&display=swap');

:root {
  /* Core Brand Colors (oklch versions for modern browser rendering) */
  --navy: oklch(0.25 0.10 240);
  --navy-deep: oklch(0.12 0.05 240);
  --navy-mid: oklch(0.32 0.12 245);
  --blue: oklch(0.78 0.15 220);
  --teal: oklch(0.82 0.18 160);
  --teal-mid: oklch(0.62 0.16 160);
  --white: oklch(1.0 0.0 0);
  --offwhite: oklch(0.96 0.01 70);
  --muted: oklch(0.86 0.08 160);
  --subtle: oklch(0.78 0.12 160);
  --gray: oklch(0.75 0.01 70);

  /* Fallback Hex Colors for old compatibility */
  --hex-navy: #042C53;
  --hex-navy-deep: #020F1E;
  --hex-navy-mid: #0C3B6E;
  --hex-blue: #60BDFF;
  --hex-teal: #3DDBA8;

  /* Typography */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', sans-serif;

  /* Layout Constants */
  --nav-height: 80px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--navy-deep);
}

body {
  font-family: var(--sans);
  background: var(--navy-deep);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--white);
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Page transitions */
@view-transition {
  navigation: auto;
}

/* ── LAYOUTS & CONTAINERS ───────────────────────────────── */

.page {
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Glow Blobs & Lighting Elements */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
  animation: pulse-glow 8s infinite alternate ease-in-out;
}

.glow-blue {
  background: var(--blue);
  width: 500px;
  height: 500px;
}

.glow-teal {
  background: var(--teal);
  width: 400px;
  height: 400px;
}

@keyframes pulse-glow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
  100% { transform: scale(1.15) translate(30px, -20px); opacity: 0.18; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(96, 189, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 189, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}

/* ── NAVIGATION (Glassmorphism) ─────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: rgba(2, 15, 30, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(96, 189, 255, 0.1);
  transition: background 0.3s ease, border-color 0.3s ease;
}

nav:hover {
  background: rgba(2, 15, 30, 0.8);
  border-color: rgba(96, 189, 255, 0.18);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo svg {
  width: 36px;
  height: 36px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-logo:hover svg {
  transform: rotate(10deg) scale(1.05);
}

.nav-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-wordmark span:first-child {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--white);
  line-height: 1;
}

.nav-wordmark span:last-child {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 3.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item > a:hover,
.nav-item > a.active {
  color: var(--white);
}

/* Hover Underline Animation */
.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-item > a:hover::after,
.nav-item > a.active::after {
  width: 100%;
}

.nav-item.has-dropdown > a::after {
  display: none; /* No underlines on drop downs */
}

/* Dropdown Arrow Icon */
.nav-item.has-dropdown > a::before {
  content: '';
  order: 2;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-item.has-dropdown:hover > a::before {
  transform: rotate(-135deg) translateY(2px);
}

/* Dropdown Menu Glass */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 170px;
  background: rgba(2, 15, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(96, 189, 255, 0.15);
  border-radius: 4px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1010;
  list-style: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(2, 15, 30, 0.95);
  border-left: 1px solid rgba(96, 189, 255, 0.15);
  border-top: 1px solid rgba(96, 189, 255, 0.15);
}

.nav-item.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 8px 20px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-dropdown li a:hover {
  color: var(--white);
  background: rgba(96, 189, 255, 0.08);
}

.nav-dropdown li a.teal {
  color: var(--teal);
}

.nav-dropdown .dd-divider {
  height: 1px;
  background: rgba(96, 189, 255, 0.1);
  margin: 6px 0;
}

/* Call To Action Buttons */
.nav-cta {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy-deep) !important;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  padding: 9px 24px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(96, 189, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(61, 219, 168, 0.35);
  opacity: 0.95;
}

/* ── BUTTON COMPONENTS ──────────────────────────────────── */

.btn-primary {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  padding: 14px 32px;
  border-radius: 4px;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(96, 189, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(61, 219, 168, 0.3);
  opacity: 0.95;
}

.btn-ghost {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 32px;
  border-radius: 4px;
  display: inline-block;
  background: transparent;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border: none;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--navy-deep);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(96, 189, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 219, 168, 0.3);
  opacity: 0.95;
}

/* ── PREMIUM CARDS (Glassmorphism) ──────────────────────── */

.service-card, .case-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(96, 189, 255, 0.06);
  border-radius: 6px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.service-card:hover, .case-card:hover {
  transform: translateY(-5px);
  background: rgba(96, 189, 255, 0.04);
  border-color: rgba(96, 189, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.service-card::before, .case-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before, .case-card:hover::before {
  transform: scaleX(1);
}

/* ── INTERACTIVE FORM DESIGN ────────────────────────────── */

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(96, 189, 255, 0.15);
  border-radius: 4px;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.form-group select {
  cursor: pointer;
  background-color: var(--navy-mid);
}

/* Focused glow effect */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: rgba(96, 189, 255, 0.06);
  box-shadow: 0 0 10px rgba(96, 189, 255, 0.2);
}

/* Beautiful user-invalid focus state */
.form-group input:focus:user-invalid,
.form-group select:focus:user-invalid,
.form-group textarea:focus:user-invalid {
  border-color: oklch(0.65 0.2 20); /* Premium Soft Red */
  box-shadow: 0 0 10px rgba(255, 100, 100, 0.25);
  background: rgba(255, 100, 100, 0.03);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* ── FAQ ACCORDIONS ─────────────────────────────────────── */

.faq-accordion {
  border-bottom: 1px solid rgba(96, 189, 255, 0.1);
  padding: 16px 0;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 12px 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  cursor: pointer;
  text-align: left;
  transition: color 0.25s ease;
}

.faq-trigger:hover {
  color: var(--blue);
}

.faq-icon {
  font-size: 14px;
  color: var(--teal);
  transition: transform 0.3s ease;
}

.faq-accordion.open .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 8px;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
}

.faq-accordion.open .faq-panel {
  max-height: 1000px;
  padding: 12px 8px 24px;
  transition: max-height 0.35s cubic-bezier(0.85, 0, 0.15, 1);
}

.faq-panel p {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--gray);
}

/* ── FOOTER ─────────────────────────────────────────────── */

footer {
  padding: 48px 60px;
  border-top: 1px solid rgba(96, 189, 255, 0.1);
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 32px;
  background: rgba(2, 15, 30, 0.4);
  z-index: 10;
}

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo span {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--white);
}

.footer-copy {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--gray);
}

.footer-copy a {
  color: var(--gray);
  opacity: 0.65;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-copy a:hover {
  color: var(--teal);
  opacity: 1;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.footer-links a {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--teal);
}

/* ── ANIMATIONS ─────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.4s; }

/* ── RESPONSIVE DESIGN ──────────────────────────────────── */

@media (max-width: 992px) {
  nav {
    padding: 0 32px;
  }
  footer {
    padding: 40px 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }
  nav {
    padding: 0 24px;
  }
  /* Mobile Menu Hamburger logic falls back to list styling or is handled via local pages */
  .nav-links {
    display: none; /* Can be toggled or displayed in a responsive layout overlay */
  }
  footer {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
    padding: 40px 24px;
  }
  .footer-links {
    justify-content: center;
    gap: 16px;
  }
}
