/*
 * ORTAS Technology Website Stylesheet
 *
 * This stylesheet provides a modern, responsive design for the ORTAS
 * Technology website.  The look and feel emphasise the company's
 * green brand colours while introducing premium touches like
 * translucent headers, subtle depth on cards and a 3D hero element.
 * All pages (English, German and Arabic) share this file to
 * ensure consistency across languages.
 */

/*------------------------------------------------------------
  Base settings
------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  /* Use body font defined on the HTML element via inline CSS. */
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-light);
  background-color: var(--color-dark);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*------------------------------------------------------------
  Colour palette and typography
------------------------------------------------------------*/
:root {
  /* Brand colours */
  --color-primary: #1e8449;
  --color-secondary: #123c2f;
  --color-accent: #0a3525;
  --color-light: #f5f5f5;
  --color-dark: #0c1f17;
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
  /* Arabic specific font is set per page via inline style. */
}

/*------------------------------------------------------------
  Layout helpers
------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/*------------------------------------------------------------
  Header
------------------------------------------------------------*/
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Glassmorphism header with subtle blur */
  background: rgba(12, 31, 23, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

header .logo-wrapper img {
  width: 50px;
  height: 50px;
  margin-right: 0.75rem;
}

header .logo-wrapper h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-light);
  white-space: nowrap;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: var(--color-light);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--color-primary);
}

nav a:hover::after {
  width: 100%;
}

/* Language selector */
.lang-select {
  appearance: none;
  background: transparent;
  border: 1px solid var(--color-light);
  color: var(--color-light);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}

.lang-select option {
  color: var(--color-dark);
}

/*------------------------------------------------------------
  Hero section
------------------------------------------------------------*/
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--color-light);
}

#hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/hero_bg.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
  /* dark overlay using pseudo-element */
}

/* overlay after pseudo-element for hero */
#hero .hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(12, 31, 23, 0.7) 0%, rgba(12, 31, 23, 0.9) 100%);
  z-index: 2;
}

#hero canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

#hero .hero-content {
  position: relative;
  z-index: 4;
  max-width: 800px;
  padding: 1rem;
}

#hero .hero-content h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

#hero .hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.85;
}

.cta-button {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-light);
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  background: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/*------------------------------------------------------------
  Generic section styling
------------------------------------------------------------*/
section {
  padding: 6rem 0;
  position: relative;
  /* When linking to anchors, offset the fixed header height */
  scroll-margin-top: 80px;
}

section h2.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--color-primary);
  position: relative;
}

section h2.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
}

/*------------------------------------------------------------
  Services
------------------------------------------------------------*/
#services {
  background: var(--color-dark);
}

#services .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-item {
  background: var(--color-secondary);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  perspective: 1000px;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.service-item h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.service-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-light);
}

/*------------------------------------------------------------
  About
------------------------------------------------------------*/
#about {
  background: var(--color-secondary);
  color: var(--color-light);
}

#about .about-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

#about .about-wrapper p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
}

/*------------------------------------------------------------
  Contact
------------------------------------------------------------*/
#contact {
  background: var(--color-dark);
}

#contact .contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

#contact address {
  margin-top: 2rem;
  line-height: 2;
  font-style: normal;
}

#contact address a {
  color: var(--color-primary);
  text-decoration: underline;
}

/*------------------------------------------------------------
  Footer
------------------------------------------------------------*/
footer {
  background: var(--color-accent);
  color: var(--color-light);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

/*------------------------------------------------------------
  Responsive adjustments
------------------------------------------------------------*/
@media (max-width: 992px) {
  #hero .hero-content h2 {
    font-size: 2rem;
  }
  #hero .hero-content p {
    font-size: 1rem;
  }
  nav {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0.75rem 1.5rem;
  }
  header .logo-wrapper h1 {
    font-size: 1.25rem;
  }
  nav a {
    font-size: 0.85rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  #hero .hero-content h2 {
    font-size: 1.6rem;
  }
  #hero .hero-content p {
    font-size: 0.9rem;
  }
  .cta-button {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  nav {
    gap: 1rem;
  }
  .lang-select {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
}