/* ===== GT AMERICA FONT FACES - DISABLED (Trial version has limited glyphs) ===== */
/* Using system fonts instead for better Unicode support */
/*
@font-face {
  font-family: 'GT America';
  src: url('/fonts/GT-America-Standard-Regular-Trial.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'GT America';
  src: url('/fonts/GT-America-Standard-Medium-Trial.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'GT America';
  src: url('/fonts/GT-America-Standard-Bold-Trial.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
*/

/* ===== CSS VARIABLES ===== */
:root {
  --bg-darker: #ffffff;
  --bg-dark: #fafafa;
  --bg-light: #f5f5f5;
  --text-primary: #000000;
  --text-secondary: #666666;
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
}

/* ===== BASE RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #000000;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

/* ===== HEADER (GLASS EFFECT) ===== */
.header {
  position: fixed;
  top: 1.5rem;
  left: 2.5%;
  right: 2.5%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(60px) saturate(250%) brightness(1.1);
  -webkit-backdrop-filter: blur(60px) saturate(250%) brightness(1.1);
  z-index: 1000;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.header .container {
  max-width: 100%;
  padding-left: 2.5%;
  padding-right: 2.5%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.6;
}

.logo-icon {
  background: #000000;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #000000;
  font-style: normal;
}

.logo-bold {
  font-weight: 700;
}

.nav-menu {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
  font-family: inherit;
  line-height: 1;
}

.nav-menu a:hover {
  color: #666666;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #000000;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* ===== MEGA MENU ===== */
.has-megamenu {
  position: static;
}

.mega-menu-container {
  position: relative;
}

.mega-menu {
  position: fixed;
  top: calc(1.5rem + 52px);
  right: 2.5%;
  width: 1000px;
  max-width: calc(100vw - 5%);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(40px) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(1.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  padding: 2rem;
  animation: slideDown 0.3s ease;
  z-index: 998;
  margin-top: 0.5rem;
  box-sizing: border-box;
}

.mega-menu::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
  height: 1rem;
  background: transparent;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-menu-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

.mega-menu-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 350px;
}

.mega-menu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega-menu-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
  padding: 2rem;
  color: #ffffff;
}

.mega-menu-overlay h3 {
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.mega-menu-overlay p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #ffffff;
  opacity: 0.95;
}

.mega-menu-main-link {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.mega-menu-main-link:hover {
  transform: translateX(5px);
}

.mega-menu-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  align-content: start;
  align-items: stretch;
}

.mega-menu-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  min-height: 48px;
  box-sizing: border-box;
  width: 100%;
  gap: 0.5rem;
}

.mega-menu-link span:first-child {
  flex: 1;
}

.mega-menu-link .arrow {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mega-menu-link:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.mega-menu-link:hover .arrow {
  opacity: 1;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #000000;
  transition: all 0.3s ease;
  display: block;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== MAIN CONTENT ===== */
main {
  padding-top: calc(1.5rem + 52px + 2rem);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: #000000;
  color: #ffffff;
}

.btn-primary:hover {
  background: #333333;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
}

.btn-secondary:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #000000;
  border: 2px solid #000000;
}

.btn-outline:hover {
  background: #000000;
  color: #ffffff;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--text-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ===== FOOTER ===== */
.footer {
  background: #000000;
  color: #ffffff;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  background: #ffffff;
  color: #000000;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.footer-logo-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-style: normal;
}

.footer-logo-bold {
  font-weight: 700;
}

.footer-tagline {
  color: #cccccc;
  margin-top: 0.5rem;
}

.footer-section h3,
.footer-section h4 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
  color: #cccccc;
}

.footer-section ul li a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #999999;
  font-size: 0.9rem;
}

@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ===== HERO SECTION ===== */
.hero-minimal {
  padding: calc(1.5rem + 52px + 4rem) 5% 4rem;
  text-align: center;
  background: var(--bg-darker);
}

.hero-minimal h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-minimal p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CONTACT SECTION & FORMS ===== */
.contact-section {
  padding: 5rem 5%;
  background: var(--bg-dark);
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.contact-section > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Form Row for multi-column layouts */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ===== CONTENT SECTIONS ===== */
.content-section,
.industry-section,
.service-section {
  padding: 5rem 5%;
}

.content-section:nth-child(odd),
.industry-section:nth-child(odd),
.service-section:nth-child(odd) {
  background: var(--bg-darker);
}

.content-section:nth-child(even),
.industry-section:nth-child(even),
.service-section:nth-child(even) {
  background: var(--bg-dark);
}

.content-container,
.industry-container,
.service-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.content-section:nth-child(even) .content-container,
.industry-section:nth-child(even) .industry-container,
.service-section:nth-child(even) .service-container {
  direction: rtl;
}

.content-section:nth-child(even) .content-container > *,
.industry-section:nth-child(even) .industry-container > *,
.service-section:nth-child(even) .service-container > * {
  direction: ltr;
}

.content-section h2,
.industry-content h2,
.service-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.content-section > p,
.industry-content > p,
.service-content > p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ===== FEATURE ITEMS ===== */
.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.feature-icon svg {
  width: 16px;
  height: 16px;
  color: var(--text-primary);
}

.feature-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-list,
.industry-features,
.service-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ===== IMAGE CONTAINERS ===== */
.image-container,
.industry-image,
.service-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.image-container img,
.industry-image img,
.service-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.image-container::after,
.industry-image::after,
.service-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .content-container,
  .industry-container,
  .service-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-section:nth-child(even) .content-container,
  .industry-section:nth-child(even) .industry-container,
  .service-section:nth-child(even) .service-container {
    direction: ltr;
  }

  .image-container,
  .industry-image,
  .service-image {
    order: -1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    top: 0.5rem;
    left: 2%;
    right: 2%;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: calc(0.5rem + 52px);
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    width: calc(100% - 4%);
    margin: 0 2%;
    text-align: center;
    transition: left 0.3s ease;
    padding: 2rem 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  main {
    padding-top: calc(0.5rem + 52px + 2rem);
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-minimal h1 {
    font-size: 2.5rem;
  }

  .hero-minimal p {
    font-size: 1rem;
  }

  .content-section h2,
  .industry-content h2,
  .service-content h2 {
    font-size: 2rem;
  }

  .image-container img,
  .industry-image img,
  .service-image img {
    height: 300px;
  }

  .contact-form {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
