/* ═══════════════════════════════════════════════════════════════
   MARSOJOR — style.css
   Dark institutional design system
   Palette: #080f17 · #0d2f3a · #174a5c · #c9a84c · #ffffff
═══════════════════════════════════════════════════════════════ */

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

html { scroll-behavior: smooth; }

body {
  background-color: #080f17;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout helper ────────────────────────────────────────── */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
═══════════════════════════════════════════════════════════════ */

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.25), 0 0 40px rgba(23,74,92,0.2); }
  50%       { box-shadow: 0 0 35px rgba(201,168,76,0.5),  0 0 70px rgba(23,74,92,0.4); }
}

@keyframes ring-spin-cw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes ring-spin-ccw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

@keyframes ring-glow-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.85; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-entrance {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8,15,23,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(8,15,23,0.97);
  border-bottom-color: rgba(23,74,92,0.35);
  box-shadow: 0 2px 24px rgba(0,0,0,0.45);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(201,168,76,0.25);
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-brand-name {
  color: #ffffff;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Desktop Nav Links */
.nav-links-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links-desktop { display: flex; }
}

.nav-link {
  color: rgba(255,255,255,0.75);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover { color: #c9a84c; }

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  line-height: 1;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 4px;
  transition: color 0.2s ease;
}

.lang-btn:hover { color: rgba(255,255,255,0.8); }
.lang-btn.active { color: #c9a84c; }

/* Mobile Controls */
.nav-mobile-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .nav-mobile-controls { display: none; }
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.hamburger-btn:hover { color: #c9a84c; }

/* Mobile Menu */
.mobile-menu {
  border-top: 1px solid rgba(23,74,92,0.3);
  background: rgba(8,15,23,0.98);
  padding: 1rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.hidden { display: none; }

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0.5rem;
  color: rgba(255,255,255,0.75);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(23,74,92,0.2);
  transition: color 0.2s ease;
}

.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: #c9a84c; }


/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */

#hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  background-color: #080f17;
}

/* Circuit SVG background */
.circuit-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.circuit-bg svg {
  width: 100%;
  height: 100%;
}

/* Vignette: darker at edges to focus center */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 75% 75% at 50% 50%,
    transparent 0%,
    rgba(8,15,23,0.35) 55%,
    rgba(8,15,23,0.75) 100%
  );
  pointer-events: none;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 1.5rem 4rem;
  max-width: 800px;
  margin: 0 auto;
  animation: hero-entrance 1s ease both;
}

/* Hero Logo */
.hero-logo-wrap {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto 2rem;
  border: 1px solid rgba(201,168,76,0.3);
  animation: pulse-glow 3s ease-in-out infinite;
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Location tag */
.hero-location {
  color: #c9a84c;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* H1 */
.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

/* Subtitle */
.hero-subtitle {
  color: rgba(255,255,255,0.65);
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  border: 1.5px solid #c9a84c;
  color: #c9a84c;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.cta-btn:hover {
  background: #c9a84c;
  color: #080f17;
  box-shadow: 0 0 20px rgba(201,168,76,0.4);
}

/* Bottom gradient fade */
.hero-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #080f17, transparent);
  z-index: 3;
  pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════════
   SHARED SECTION TYPOGRAPHY
═══════════════════════════════════════════════════════════════ */

.section-label {
  display: inline-block;
  color: #c9a84c;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  margin-top: 0.5rem;
}

.body-text {
  color: rgba(255,255,255,0.72);
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}


/* ═══════════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════════ */

#about {
  background-color: #0d2f3a;
  padding: 6rem 0;
}

@media (min-width: 1024px) { #about { padding: 8rem 0; } }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 1rem;
  border-left: 2px solid rgba(201,168,76,0.35);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #c9a84c;
  line-height: 1;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* About Logo with rings */
.about-logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo-shell {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .about-logo-shell { width: 300px; height: 300px; }
}

/* Rings */
.ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ring-outer {
  inset: 0;
  border: 1.5px dashed rgba(201,168,76,0.35);
  animation: ring-spin-cw 18s linear infinite, ring-glow-pulse 4s ease-in-out infinite;
}

.ring-inner {
  inset: 18px;
  border: 1.5px solid rgba(23,74,92,0.7);
  animation: ring-spin-ccw 12s linear infinite, ring-glow-pulse 4s ease-in-out infinite 1s;
}

.about-logo-img {
  position: relative;
  z-index: 1;
  width: 180px;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(201,168,76,0.25);
  box-shadow: 0 0 30px rgba(23,74,92,0.5), 0 0 60px rgba(8,15,23,0.6);
}


/* ═══════════════════════════════════════════════════════════════
   AREAS
═══════════════════════════════════════════════════════════════ */

#areas {
  background-color: #080f17;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) { #areas { padding: 8rem 0; } }

/* Subtle dot grid */
.areas-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(23,74,92,0.25) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px)  { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

/* Individual Card */
.area-card {
  background: rgba(23,74,92,0.22);
  border: 1px solid rgba(201,168,76,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.area-card:hover {
  border-color: rgba(201,168,76,0.55);
  box-shadow: 0 0 24px rgba(201,168,76,0.12), 0 8px 32px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}

/* Card Icon */
.card-icon-wrap {
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.08);
  border-radius: 10px;
  border: 1px solid rgba(201,168,76,0.15);
}

.card-icon {
  width: 30px;
  height: 30px;
}

/* Card Title — always white */
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

/* Card Text — always visible off-white */
.card-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════════ */

#contact {
  background-color: #0d2f3a;
  padding: 6rem 0;
}

@media (min-width: 1024px) { #contact { padding: 8rem 0; } }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

/* Contact Info */
.contact-info-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-wrap {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-text {
  color: rgba(255,255,255,0.8);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-email-link {
  color: #c9a84c;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-email-link:hover { color: #ffffff; }

.contact-note {
  margin-top: 2rem;
  color: rgba(255,255,255,0.4);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-style: italic;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input {
  width: 100%;
  background: rgba(8,15,23,0.5);
  border: 1px solid rgba(23,74,92,0.6);
  border-radius: 6px;
  padding: 0.875rem 1rem;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
  resize: none;
}

.form-input::placeholder {
  color: rgba(255,255,255,0.35);
}

.form-input:focus {
  border-color: rgba(201,168,76,0.6);
  background: rgba(23,74,92,0.25);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 0.9rem 2rem;
  background: transparent;
  border: 1.5px solid #c9a84c;
  color: #c9a84c;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  margin-top: 0.25rem;
}

.submit-btn:hover {
  background: #c9a84c;
  color: #080f17;
  box-shadow: 0 0 20px rgba(201,168,76,0.35);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Success message */
.success-msg {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  background: rgba(23,74,92,0.35);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 6px;
  color: #c9a84c;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
}

.success-msg.hidden { display: none; }


/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */

#footer {
  background-color: #050c12;
  border-top: 1px solid rgba(23,74,92,0.35);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Brand */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(201,168,76,0.2);
}

.footer-brand-name {
  color: rgba(255,255,255,0.8);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.4;
}

.footer-nif {
  color: rgba(255,255,255,0.35);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  line-height: 1.4;
}

/* Copyright */
.footer-copy {
  color: rgba(255,255,255,0.4);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Links */
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-link {
  color: rgba(255,255,255,0.4);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover { color: #c9a84c; }

.footer-linkedin {
  color: rgba(255,255,255,0.4);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.footer-linkedin:hover { color: #c9a84c; }


/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL (used by script.js)
═══════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════════════════════════ */

.hidden { display: none !important; }

/* Ensure no dark text on dark backgrounds anywhere */
h1, h2, h3, h4, h5, h6 { color: #ffffff; }
p { color: inherit; }
a { color: inherit; }
