@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #0b6632;
  --secondary-color: #063;
  --accent-color: #00ff88;
  --dark-bg: #0a0a0a;
  --light-bg: #f8f9fa;
  --text-dark: #333;
  --text-light: #666;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 4px 30px rgba(0, 0, 0, 0.3);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

/* Global link styles */
a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--accent-color);
}


/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}

.loading-screen.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader {
  position: relative;
}

.loader-circle {
  width: 80px;
  height: 80px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.2rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}


/* Remove custom cursor for more professional look */
.cursor,
.cursor-follower {
  display: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}


.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.nav-brand .logo {
  height: 45px;
  width: auto;
  transition: var(--transition);
}

.nav-brand .logo:hover {
  transform: scale(1.05);
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  padding-bottom: 2px;
}

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

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: var(--transition);
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  margin-top: 0;
  background: linear-gradient(
      135deg,
      rgba(248, 249, 250, 0.9) 0%,
      rgba(255, 255, 255, 0.9) 100%
    ),
    url("img/home_bg.webp") center/cover no-repeat;
}


.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  animation: fadeInLeft 1s ease;
  margin-top: 5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  overflow: hidden;
}

.reveal-text {
  display: inline-block;
  animation: reveal 1s ease 0.5s both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  opacity: 0;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up.delay-1 {
  animation-delay: 0.2s;
}

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

/* Button Styles */
.btn-primary {
  display: inline-block;
  padding: 14px 35px;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-fill {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--secondary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover .btn-fill {
  width: 300px;
  height: 300px;
}

.btn-text {
  position: relative;
  z-index: 1;
}

/* Hero Image */
.hero-image {
  position: relative;
  animation: fadeInRight 1s ease 0.3s both;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.tilt-effect:hover .hero-img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(11, 102, 50, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.image-wrapper:hover .image-overlay {
  opacity: 1;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  opacity: 0.7;
}

.scroll-line {
  width: 2px;
  height: 10px;
  background: var(--primary-color);
  margin: 10px auto 0;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

/* Philosophy Section */
.philosophy {
  background: linear-gradient(
      rgba(255,255, 255, 0.6),
      rgba(255, 255 ,255, 0.75)
    ),
    url("img/philosophie_bg.webp") center/cover no-repeat;
}


/* Section Titles */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #eee;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2rem;
}

/* Philosophy and Company Content */
.philosophy-content h3,
.company-content h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.text-reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: textReveal 0.8s ease forwards;
}

.text-reveal.delay-1 {
  animation-delay: 0.2s;
}

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

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}


.hover-3d {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hover-3d:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.feature-card h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
}

/* Highlight Text */
.highlight-text {
  background: linear-gradient(
    135deg,
    rgba(11, 102, 50, 0.1),
    rgba(0, 255, 136, 0.1)
  );
  padding: 2rem;
  border-left: 4px solid var(--primary-color);
  border-radius: 10px;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}



/* Service Section */
.service-section {
  color: var(--white);
  position: relative;
  background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.5)),
    url("img/service_bg.webp") center/cover no-repeat;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.35);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stagger-in {
  opacity: 0;
  transform: translateY(50px);
  animation: staggerIn 0.6s ease forwards;
}

.stagger-in:nth-child(1) {
  animation-delay: 0.1s;
}
.stagger-in:nth-child(2) {
  animation-delay: 0.2s;
}
.stagger-in:nth-child(3) {
  animation-delay: 0.3s;
}
.stagger-in:nth-child(4) {
  animation-delay: 0.4s;
}

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

.service-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 2rem;
  position: relative;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--accent-color);
  filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5));
}

.service-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.service-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.service-hover-bg,
.reference-hover-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.1), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
  pointer-events: none;
}

.service-card:hover .service-hover-bg,
.reference-card:hover .reference-hover-bg {
  width: 600px;
  height: 600px;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 50px rgba(0, 255, 136, 0.2);
}

.service-decoration {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  pointer-events: none;
}

.deco-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,transparent,var(--accent-color),transparent);
  opacity: 0.5;
}

.deco-circle {
  width: 200px;
  height: 200px;
  border: 2px solid rgba(0, 255, 136, 0.2);
  border-radius: 50%;
  margin: 50px auto;
}

/* References Section */
.references-section {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)),
    url("img/referenzen_bg.webp") center/cover no-repeat;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.reference-card {
  background: rgba(255, 255, 255, 0.35);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.reference-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.reference-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.reference-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 50px rgba(0, 255, 136, 0.2);
}

/* Unternehmen Section */
.unternehmen-section {
  position: relative;
  background: linear-gradient(
      rgba(0 ,0 ,0 , 0.25),
      rgba(0 ,0 ,0 , 0.45)
    ),
    url("img/unternehmen_bg.webp") center/cover no-repeat;

  p { color: #eee;}
}

.company-content,
.philosophy-content {
  margin: 3rem auto 0;
  padding: 4rem;
  max-width: 1200px;
}

.company-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
}


.value-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.value-card p {
  color: var(--text-light);
}

/* Contact Section */
.section-contact {
  background: linear-gradient(
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.5)
    ),
    url("img/kontakt_bg.webp") center/cover no-repeat;
  position: relative;
}


.contact-grid {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  padding: 3rem;
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
}


.contact-item {
  display: flex;
  gap: 1.5rem;
  opacity: 0;
  &:not(:last-child) {
    margin-bottom: 1.5rem;
  }
}

.contact-item p {
  color: var(--text-dark);
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.slide-in {
  animation: slideIn 0.6s ease forwards;
}

.slide-in.delay-1 {
  animation-delay: 0.2s;
}
.slide-in.delay-2 {
  animation-delay: 0.4s;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-icon {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.hover-link {
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.hover-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

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


/* Contact Decoration */
.contact-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
}

.shape-1 {
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  top: 10%;
  left: 5%;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: var(--accent-color);
  top: 60%;
  right: 10%;
}

.shape-3 {
  width: 80px;
  height: 80px;
  background: var(--secondary-color);
  bottom: 20%;
  left: 50%;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 4rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(0, 255, 136, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(11, 102, 50, 0.1) 0%,
      transparent 40%
    );
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.footer-section h4 {
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

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

.footer-section li {
  margin-bottom: 0.8rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.footer-link:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  position: relative;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 3rem;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

  p {
    margin-bottom: 2rem;
  }
}


.modal-animate {
  animation: modalIn 0.5s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close {
  color: var(--text-light);
  float: right;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  line-height: 20px;
}

.close:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }


}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem 0;
    backdrop-filter: blur(20px);
  }

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

  .hamburger {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}


/* Smooth scroll for animations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
