:root {
  --color-light: #f2f2f2;
  --color-dark: #0a0a0a;
  --accent-green: #27AE60;
  --accent-blue: #007CBC;
  --accent-purple: #5200a4;
  --accent-orange: #f4731c;
  --font-inter: 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-inter);
  font-weight: 300;
  background-color: var(--color-light);
  color: var(--color-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

a:focus-visible {
  outline: 2px solid var(--color-dark);
  outline-offset: 2px;
}

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

.container-narrow {
  max-width: 1152px;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-dark {
  background-color: var(--color-dark);
  color: var(--color-light);
  border: 1px solid var(--color-dark);
}

.btn-dark:hover {
  background-color: transparent;
  color: var(--color-dark);
  transform: scale(1.05);
}

.btn-light {
  background-color: var(--color-light);
  color: var(--color-dark);
  border: 1px solid var(--color-light);
}

.btn-light:hover {
  background-color: transparent;
  color: var(--color-light);
  transform: scale(1.05);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-dark);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  max-height: 60px;
  width: auto;
  transition: opacity 0.3s ease;
}

.logo:hover img {
  opacity: 0.7;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-list a {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(242, 242, 242, 0.8);
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #f2f2f2;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 1px;
  background-color: #f2f2f2;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

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

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  background-color: rgba(242, 242, 242, 0.95);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(10, 10, 10, 0.1);
  padding: 1.5rem;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a {
  display: block;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(10, 10, 10, 0.8);
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: #0a0a0a;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--color-light);
  background-image: url('../images/erice-areal-hero-eryxgroup.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.5));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease forwards;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 200;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  color: #f2f2f2;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(242, 242, 242, 0.9);
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.hero .btn {
  border-color: #f2f2f2;
}

.hero .btn:hover {
  background-color: #f2f2f2;
  color: #0a0a0a;
}

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

/* Companies Section */
.companies {
  background-color: var(--color-light);
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .companies {
    padding: 8rem 0;
  }
}

.companies h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 200;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 4rem;
}

.companies-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

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

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

.company-card {
  position: relative;
  background-color: #fff;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-left: 3px solid;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.company-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: scale(1.03);
}

.company-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

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

.company-card h3 {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.company-card p {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.625;
  color: rgba(10, 10, 10, 0.7);
}

.company-link {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.company-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  transition: width 0.3s ease;
}

.company-card:hover .company-bar {
  width: 100%;
}

/* Services Section */
.services {
  background-color: #fff;
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .services {
    padding: 8rem 0;
  }
}

.services h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 200;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

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

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

.service-card {
  background-color: #fff;
  border: 1px solid rgba(10, 10, 10, 0.1);
  padding: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: scale(1.03);
}

.service-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 1.5rem;
  color: rgba(10, 10, 10, 0.7);
  transition: color 0.3s ease;
}

.service-card:hover .service-icon {
  color: #0a0a0a;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.625;
  color: rgba(10, 10, 10, 0.6);
}

/* Case Studies Section */
.case-studies {
  background-color: var(--color-light);
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .case-studies {
    padding: 8rem 0;
  }
}

.case-studies h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 200;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  text-align: center;
  color: rgba(10, 10, 10, 0.7);
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.case-studies-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .case-studies-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-card {
  background-color: #fff;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border-top: 4px solid;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.case-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.case-client {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.case-card h3 {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.case-card > p {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.625;
  color: rgba(10, 10, 10, 0.7);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.case-result {
  border-top: 1px solid var(--color-light);
  padding-top: 1rem;
}

.case-result p {
  font-size: 1.125rem;
  font-weight: 500;
}

/* CTA Section */
.cta {
  background-color: var(--color-dark);
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .cta {
    padding: 8rem 0;
  }
}

.cta-inner {
  max-width: 56rem;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 200;
  letter-spacing: 0.15em;
  color: var(--color-light);
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(242, 242, 242, 0.7);
  max-width: 36rem;
  margin: 0 auto 3rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(10, 10, 10, 0.1);
  padding: 4rem 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 2.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(10, 10, 10, 0.7);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #0a0a0a;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.social-links a {
  color: rgba(10, 10, 10, 0.5);
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1);
  color: #0a0a0a;
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.copyright {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(10, 10, 10, 0.5);
  text-align: center;
}

/* Page Content Styles */
.page-content {
  min-height: 100vh;
  padding-top: 8rem;
  background-color: var(--color-light);
}

.page-header {
  text-align: center;
  padding: 0 1.5rem 4rem;
}

.page-header h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 200;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.page-header p {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.05em;
  color: rgba(10, 10, 10, 0.7);
  max-width: 42rem;
  margin: 0 auto;
}

/* About Page */
.about-values {
  background-color: var(--color-light);
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .about-values {
    padding: 8rem 0;
  }
}

.about-values h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 200;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 4rem;
}

.values-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

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

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

.value-card {
  background-color: #fff;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
}

.value-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1.5rem;
  color: rgba(10, 10, 10, 0.7);
}

.value-card h3 {
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.625;
  color: rgba(10, 10, 10, 0.6);
}

.about-history {
  background-color: #fff;
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .about-history {
    padding: 8rem 0;
  }
}

.about-history .container {
  max-width: 56rem;
}

.about-history h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 200;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 2rem;
}

.about-history > .container > p {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.75;
  text-align: center;
  color: rgba(10, 10, 10, 0.7);
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(10, 10, 10, 0.1);
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
  }
}

.timeline-list {
  list-style: none;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .timeline-item {
    display: flex;
    align-items: center;
  }
  
  .timeline-item:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.timeline-content {
  background-color: var(--color-light);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .timeline-content {
    width: 50%;
    padding: 2rem;
  }
  
  .timeline-item:nth-child(odd) .timeline-content {
    margin-right: 3rem;
    text-align: right;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 3rem;
  }
}

.timeline-dot {
  position: absolute;
  left: 2rem;
  top: 2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 4px solid #fff;
  background-color: var(--color-dark);
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .timeline-dot {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 200;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.625;
  color: rgba(10, 10, 10, 0.7);
}

.timeline-desc a {
  text-decoration: underline;
}

.timeline-desc a:hover {
  color: var(--accent-blue);
}

/* Form Styles */
.form-section {
  padding: 0 1.5rem 4rem;
}

.form-container {
  max-width: 42rem;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  gap: 4rem;
}

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

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(10, 10, 10, 0.7);
  margin-bottom: 0.5rem;
}

.form-group label .required {
  color: var(--accent-orange);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 300;
  color: #0a0a0a;
  background-color: transparent;
  border: 1px solid rgba(10, 10, 10, 0.2);
  transition: border-color 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #0a0a0a;
}

.form-group textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230a0a0a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group select option {
  background-color: #fff;
  color: #0a0a0a;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-submit {
  width: 100%;
  padding: 1rem 2rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-light);
  background-color: var(--color-dark);
  border: 1px solid var(--color-dark);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.form-submit:hover {
  background-color: transparent;
  color: var(--color-dark);
}

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

.form-success {
  background-color: rgba(39, 174, 96, 0.1);
  padding: 2rem;
  text-align: center;
}

.form-success p {
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.form-error {
  background-color: #fef2f2;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #dc2626;
}

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

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-icon {
  width: 20px;
  height: 20px;
  margin-top: 0.25rem;
  color: rgba(10, 10, 10, 0.5);
  flex-shrink: 0;
}

.contact-item h3 {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item p {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(10, 10, 10, 0.7);
  line-height: 1.5;
}

.contact-item a:hover {
  color: #0a0a0a;
}

.hidden {
  display: none !important;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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