/* ==========================================================================
   Brand Fonts
   ========================================================================== */
@font-face {
  font-family: 'Exposure-40-Regular';
  font-style: normal;
  font-weight: 400;
  src: url('https://static.wixstatic.com/ufonts/82ac9e_4513bf151ff54b0598d43e7b865a8601/woff2/file.woff2') format('woff2'),
       url('https://static.wixstatic.com/ufonts/82ac9e_4513bf151ff54b0598d43e7b865a8601/woff/file.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Monument-Grotesk-Regular';
  font-style: normal;
  font-weight: 400;
  src: url('https://static.wixstatic.com/ufonts/b641dd_4ba35b2d38364ae5b6d2ede5754aa748/woff2/file.woff2') format('woff2'),
       url('https://static.wixstatic.com/ufonts/b641dd_4ba35b2d38364ae5b6d2ede5754aa748/woff/file.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Avenir-LT-Light';
  font-style: normal;
  font-weight: 300;
  src: url('https://static.parastorage.com/fonts/v2/af36905f-3c92-4ef9-b0c1-f91432f16ac1/v1/avenir-lt-w05_35-light.woff2') format('woff2'),
       url('https://static.parastorage.com/fonts/v2/af36905f-3c92-4ef9-b0c1-f91432f16ac1/v1/avenir-lt-w01_35-light1475496.woff2') format('woff2');
  font-display: swap;
}

/* ==========================================================================
   Design System Variables & Base Settings
   ========================================================================== */
:root {
  --bg-primary: #151516;      /* Near-black charcoal */
  --accent: #D84923;          /* Terracotta / Rust Orange */
  --text-primary: #FCFCFC;    /* Off-white */
  --text-dark: #151516;       /* Near-black charcoal */
  --text-secondary: #A0A0A0;  /* Muted grey */
  --card-bg: rgba(252, 252, 252, 0.85);
  --card-bg-hover: rgba(252, 252, 252, 0.95);
  --header-height: 80px;
  
  --font-serif: 'Exposure-40-Regular', Georgia, serif;
  --font-sans: 'Monument-Grotesk-Regular', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-avenir: 'Avenir-LT-Light', 'Space Grotesk', sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #333334;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Typography & Headers
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background-color: rgba(21, 21, 22, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(252, 252, 252, 0.05);
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-fast);
}

.logo-link:hover .logo-img {
  opacity: 0.85;
  transform: scale(1.02);
}

.header-mark,
.footer-mark {
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.emblem-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.header-mark:hover .emblem-img,
.footer-mark:hover .emblem-img {
  transform: rotate(90deg) scale(1.15);
  opacity: 0.85;
}

/* ==========================================================================
   Hero Slideshow Section
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.5s ease-in-out, transform 8s ease-out;
  filter: grayscale(100%); /* Make images black and white as requested */
}

.slide.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1.0);
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(21, 21, 22, 0.4) 0%, rgba(21, 21, 22, 0.85) 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(20px);
}

.animate-text-reveal {
  animation: textReveal 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes textReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slideshow-controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(21, 21, 22, 0.6);
  backdrop-filter: blur(8px);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  border: 1px solid rgba(252, 252, 252, 0.1);
}

.slide-nav-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0 0.5rem;
}

.slide-nav-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.slide-counter {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.1rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Definition & About Section (Glassmorphism)
   ========================================================================== */
.about-section {
  padding: 8rem 2rem;
  background-color: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.definition-card {
  max-width: 850px;
  margin: 0 auto;
  background: rgba(252, 252, 252, 0.03);
  border: 1px solid rgba(252, 252, 252, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 4px;
  padding: 4rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.definition-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(252, 252, 252, 0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.def-word {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
}

.def-etymology {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.05rem;
}

.definition-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.def-meaning {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--text-primary);
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}

.def-description {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-primary);
}

.def-about {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-primary);
}

.def-mission {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ==========================================================================
   Services Section (Light Cards / Strong Contrast)
   ========================================================================== */
.services-section {
  padding: 6rem 2rem;
  background-color: #0d0d0e; /* Slightly darker than main body background */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: var(--card-bg);
  color: var(--text-dark);
  border-radius: 4px;
  padding: 3.5rem 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid rgba(21, 21, 22, 0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  background-color: var(--card-bg-hover);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.card-num {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  position: relative;
  width: fit-content;
}

.card-num::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}

.service-title {
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-dark);
}

.service-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: #333334;
}

/* ==========================================================================
   Contact Form Split Section (Terracotta Contrast)
   ========================================================================== */
.contact-section {
  background-color: var(--bg-primary);
  width: 100%;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 700px;
}

.contact-image-container {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 400px;
  filter: grayscale(100%); /* Make images black and white as requested */
}

/* Subtle overlay on the contact image */
.contact-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(21, 21, 22, 0) 60%, rgba(21, 21, 22, 0.3) 100%);
}

.contact-form-container {
  background-color: var(--accent);
  color: var(--text-dark);
  padding: 5rem 4rem;
  display: flex;
  align-items: center;
}

.form-wrapper {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.form-title {
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.form-subtitle {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(21, 21, 22, 0.85);
  margin-bottom: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-label {
  font-family: var(--font-avenir);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--text-dark);
}

.form-input {
  background-color: #fdfdfd;
  border: 1px solid rgba(21, 21, 22, 0.15);
  color: var(--text-dark);
  font-family: var(--font-avenir);
  font-size: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 2px;
  outline: none;
  transition: var(--transition-fast);
  width: 100%;
}

.form-input:focus {
  border-color: var(--text-dark);
  box-shadow: 0 0 0 3px rgba(21, 21, 22, 0.1);
}

/* Modern Validation States using :user-valid and :user-invalid */
.form-input:user-invalid {
  border-color: #8B0000; /* Deep red error border */
  background-color: #fff8f8;
}

.form-input:user-invalid ~ .error-msg {
  display: block;
}

.form-input:user-valid {
  border-color: #1b5e20; /* Deep green success border */
}

.error-msg {
  display: none;
  font-family: var(--font-avenir);
  font-size: 0.75rem;
  font-weight: 500;
  color: #8B0000;
  margin-top: 0.25rem;
  animation: fadeIn 0.3s ease;
}

.submit-btn {
  background-color: var(--text-dark);
  color: var(--text-primary);
  border: 1px solid var(--text-dark);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  padding: 1.1rem 2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-top: 1rem;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #333334;
  transition: var(--transition-smooth);
  z-index: -1;
}

.submit-btn:hover::before {
  left: 0;
}

.submit-btn:hover {
  border-color: #333334;
}

.submit-btn:active {
  transform: scale(0.98);
}

/* Success State Message */
.form-success-msg {
  display: none;
  margin-top: 2rem;
  background-color: rgba(252, 252, 252, 0.15);
  border: 1px solid rgba(21, 21, 22, 0.2);
  padding: 1.5rem;
  border-radius: 2px;
  text-align: center;
  animation: slideUpFade 0.5s ease forwards;
}

.form-success-msg p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-dark);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.footer {
  background-color: #09090a;
  padding: 5rem 2rem;
  border-top: 1px solid rgba(252, 252, 252, 0.03);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 3rem;
}

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

.footer-logo .logo-img {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}

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

.footer-email {
  font-size: 1.2rem;
}

.footer-link {
  font-family: var(--font-sans);
  position: relative;
  padding-bottom: 2px;
  color: var(--text-primary);
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.footer-link:hover {
  color: var(--accent);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  letter-spacing: 0.05rem;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
}

.footer-right .footer-mark {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   Animations & Scroll Reveals
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 968px) {
  html {
    font-size: 15px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-image-container {
    height: 350px;
    min-height: auto;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-right {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .definition-card {
    padding: 2.5rem 1.5rem;
  }
  
  .contact-form-container {
    padding: 4rem 2rem;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
  
  .slideshow-controls {
    bottom: 1.5rem;
    right: 1.5rem;
    gap: 1rem;
    padding: 0.6rem 1.2rem;
  }
}

/* ==========================================================================
   Scroll Indicator Styling
   ========================================================================== */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--text-primary);
  font-size: 2.2rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(21, 21, 22, 0.4);
  border: 1px solid rgba(252, 252, 252, 0.15);
  backdrop-filter: blur(8px);
  animation: bounce 2s infinite;
  transition: var(--transition-smooth);
}

.scroll-indicator:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(21, 21, 22, 0.7);
}

.scroll-arrow {
  line-height: 1;
  margin-top: -2px; /* Slight optical adjustment */
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}
