/* ============================================
   ROBO-TEK WEBSITE - HOMAG STYLE
   ============================================ */

:root {
  /* Brand Colors */
  --homag-blue: #0077C8;
  --homag-blue-dark: #005fa3;
  --homag-blue-light: #0088DD;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-long: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --touch-target-min: 44px;

  /* Background Colors */
  --bg-primary: #0C1A2A;
  --bg-secondary: #162838;
  --bg-tertiary: #1F3447;
  --bg-overlay: rgba(12, 26, 42, 0.95);
  --bg-card: rgba(12, 26, 42, 0.85);
  --bg-card-hover: rgba(12, 26, 42, 0.7);

  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #CCCCCC;
  --text-tertiary: #999999;
  --text-muted: #666666;

  /* Border Colors */
  --border-primary: rgba(0, 119, 200, 0.2);
  --border-secondary: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(0, 119, 200, 0.5);

  /* Shadow Colors */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);

  /* Component Specific */
  --nav-bg: rgba(12, 26, 42, 0.95);
  --nav-border: rgba(0, 0, 0, 0.3);
  --card-gradient-start: rgba(12, 26, 42, 0.85);
  --card-gradient-end: rgba(12, 26, 42, 0.7);
  --overlay-bg: rgba(0, 0, 0, 0.75);

  /* Interactive States */
  --hover-bg: rgba(0, 119, 200, 0.15);
  --active-bg: rgba(0, 119, 200, 0.25);
  --focus-ring: rgba(0, 119, 200, 0.5);
}

/* Global Reveal Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for children if needed */
.reveal-on-scroll:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal-on-scroll:nth-child(2) {
  transition-delay: 0.2s;
}

.reveal-on-scroll:nth-child(3) {
  transition-delay: 0.3s;
}

.reveal-on-scroll:nth-child(4) {
  transition-delay: 0.4s;
}

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

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: rgba(14, 28, 44, 1);
  overflow: visible;
  /* Allow vertical scrolling */
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
  /* Prevent text selection issues on mobile */
  -webkit-tap-highlight-color: rgba(0, 119, 200, 0.2);
  -webkit-touch-callout: none;
  letter-spacing: 1.1px;
}

body.light {
  background-color: rgba(0, 7, 15, 1);
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(12, 26, 42, 0);
  background-image: none;
  backdrop-filter: none;
  border-radius: 0px;
  opacity: 1;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: none;
  transition: var(--transition);
  min-height: 70px;
  border-bottom: 1px solid var(--border-secondary);
}

nav.scrolled {
  padding: 0.75rem 2rem;
  box-shadow: var(--shadow-md);
}

.nav-logo {
  height: 50px;
  transition: var(--transition);
}

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

/* Ensure nav-links are visible on mobile */
@media (max-width: 768px) {
  .nav-links {
    display: flex !important;
    visibility: visible !important;
  }
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--homag-blue);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--homag-blue);
}

/* Navigation Email Icon */
.nav-email-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(0, 119, 200, 0.3);
  border-radius: 4px;
  transition: var(--transition);
  margin-right: 1rem;
}

.nav-email-icon:hover {
  background: rgba(0, 119, 200, 0.1);
  border-color: var(--homag-blue);
  color: var(--homag-blue);
  transform: translateY(-2px);
}

.nav-email-icon svg {
  width: 20px;
  height: 20px;
}

.nav-facebook-icon:hover {
  background: rgba(24, 119, 242, 0.1);
  border-color: #1877f2;
  color: #1877f2;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  margin-left: 0;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--homag-blue);
  color: var(--white);
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  gap: 0.5rem;
}

.lang-btn:hover {
  background: var(--homag-blue);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--navy);
  border: 1px solid var(--homag-blue);
  border-radius: 4px;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1001;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.lang-dropdown a:hover {
  background: var(--homag-blue);
}


.mobile-menu-toggle {
  display: none;
  /* Hidden by default, shown on mobile via media query */
  background: rgba(0, 119, 200, 0.2);
  border: 2px solid var(--homag-blue);
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  transition: var(--transition);
  border-radius: 6px;
  z-index: 1002;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  flex-shrink: 0;
  margin-left: auto;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle.active {
  color: var(--homag-blue);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  opacity: 0.32;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  min-width: 100%;
  min-height: 100%;
  display: block;
  background: #0C1A2A;
}

@media (max-width: 768px) {
  .hero-video {
    object-position: center;
  }
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 26, 42, 0.05);
  z-index: 1;
}

.tech-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url('../images/machines/wall-production-line/main.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  border-radius: 0px;
  box-sizing: content-box;
  z-index: 2;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 44px;
  background: unset;
  background-color: rgba(20, 33, 48, 0.2);
  background-image: none;
  opacity: 0.2;
  color: rgba(22, 35, 50, 1);
  font-size: 0px;
  font-weight: 100;
  z-index: 1;
  pointer-events: none;
}

@keyframes moveLines {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

.circuit-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url('../images/machines/wall-production-line/main.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: pulse 4s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.95;
  }

  50% {
    opacity: 1;
  }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.15);
  background: none;
  background-color: rgba(20, 33, 48, 0);
  background-image: none;
}

.hero-logo {
  max-width: 300px;
  width: 100%;
  max-width: min(300px, 80vw);
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 0 20px rgba(0, 119, 200, 0.5));
  box-sizing: border-box;
}

.hero-tagline {
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 3px;
  line-height: 70px;
  color: rgba(255, 255, 255, 1);
  background-clip: unset;
  -webkit-background-clip: unset;
  background-color: unset;
  background: unset;
  padding-top: 20px;
  padding-bottom: 20px;
}

.hero-subtitle {
  font-size: 28px;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 0px;
  font-weight: 800;
  box-sizing: content-box;
  display: flex;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
  background-clip: unset;
  -webkit-background-clip: unset;
  background-color: rgba(20, 33, 48, 0);
  background-image: none;
  box-shadow: none;
  transform: translateY(0px) rotate(360deg);
  opacity: 1;
  overflow: hidden;
  line-height: 45px;
}

.hero-subtitle .country-name {
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  padding: 0 0.2rem;
  position: relative;
  display: inline-block;
}

.hero-subtitle .country-name::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--homag-blue), transparent);
  opacity: 0.6;
}

.hero-description {
  font-size: 18px;
  color: rgba(179, 179, 179, 1);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  padding-top: 10px;
  padding-bottom: 10px;
}

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

.btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--homag-blue);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 119, 200, 0.4);
}

.btn-primary:hover {
  background: #005fa3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 200, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--homag-blue);
}

.btn-secondary:hover {
  background: var(--homag-blue);
  transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 6rem 2rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

#about {
  color: rgba(238, 240, 242, 1);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--white);
}

.section-subtitle {
  font-size: 1.3rem;
  color: var(--homag-blue);
  text-align: center;
  margin-bottom: 4rem;
  font-weight: 500;
}

/* Partnership Image */
.partnership-image {
  margin: 3rem auto;
  max-width: 1000px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .partnership-image {
    margin: 2rem auto;
    border-radius: 4px;
  }
}

.homag-facility-img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.partnership-image:hover .homag-facility-img {
  transform: scale(1.05);
}

/* ============================================
   TEAM SECTION
   ============================================ */

.team-section {
  padding: 6rem 2rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.team-card {
  background: linear-gradient(135deg, rgba(12, 26, 42, 0.85) 0%, rgba(12, 26, 42, 0.7) 100%);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(0, 119, 200, 0.15);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-10px);
  border-color: var(--homag-blue);
  box-shadow: 0 20px 40px rgba(0, 119, 200, 0.3), 0 0 0 1px rgba(0, 119, 200, 0.3);
}

.team-card-image {
  width: 100%;
  height: 363px;
  overflow: hidden;
  position: static;
  background: linear-gradient(135deg, var(--navy) 0%, var(--homag-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0px;
  margin-bottom: 0px;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team-card:hover .team-img {
  transform: scale(1.1);
}

.team-card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 26, 42, 0.3) 100%);
  opacity: 0;
  transition: var(--transition);
}

.team-card:hover .team-card-image::after {
  opacity: 1;
}

.team-card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.team-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--homag-blue);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.team-card:hover .team-card-name {
  color: var(--white);
}

.team-card-email,
.team-card-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--grey-medium);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
  word-break: break-word;
}

.team-card-email:hover,
.team-card-phone:hover {
  color: var(--homag-blue);
  transform: translateX(5px);
}

.team-card-email::before {
  content: '✉';
  font-size: 1rem;
  opacity: 0.7;
}

.team-card-phone::before {
  content: '📞';
  font-size: 1rem;
  opacity: 0.7;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.about-card {
  background: linear-gradient(135deg, rgba(12, 26, 42, 0.85) 0%, rgba(12, 26, 42, 0.7) 100%);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 119, 200, 0.15);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  /* Removed initial animation properties to use global reveal-on-scroll instead */
}

/* Background Image Pseudo-element */
.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
  /* The actual image will be set via inline style on the element itself, 
     but we need to target this pseudo-element. 
     Actually, inline styles can't set pseudo-element backgrounds easily.
     Better approach: Add a child div for the background.
  */
}

/* Correction: We will add a .card-bg element in HTML instead of using ::before for the image 
   so we can set it inline. But for now, let's keep the gradient overlay here. */
.about-card-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 1);
  z-index: 0;
  opacity: 0.4;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  left: 0px;
  top: 0px;
}

.about-card:hover .about-card-bg {
  transform: scale(1.15);
  opacity: 0.2;
}

.about-card:hover {
  transform: translateY(-10px);
  border-color: var(--homag-blue);
  box-shadow: 0 20px 40px rgba(0, 119, 200, 0.3), 0 0 0 1px rgba(0, 119, 200, 0.3);
}

.about-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.8;
  transition: var(--transition);
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(0, 119, 200, 0.3));
  position: relative;
  z-index: 1;
}

.about-card:hover .about-card-icon {
  transform: scale(1.2) rotate(5deg);
  opacity: 1;
  filter: drop-shadow(0 0 20px rgba(0, 119, 200, 0.6));
}

.about-card h3 {
  font-size: 1.8rem;
  color: var(--homag-blue-light);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  border-radius: 0px;
}

.about-card h3::before {
  content: '';
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--homag-blue) 0%, transparent 100%);
  border-radius: 2px;
  transition: var(--transition);
}

.about-card:hover h3::before {
  height: 100%;
  background: linear-gradient(180deg, var(--homag-blue) 0%, rgba(0, 119, 200, 0.5) 100%);
}

.about-card:hover h3 {
  color: var(--white);
  transform: translateX(5px);
}

.about-card p {
  color: var(--grey-medium);
  line-height: 1.9;
  position: relative;
  z-index: 1;
  transition: var(--transition);
  font-size: 1.05rem;
}

.about-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

.timeline {
  margin-top: 4rem;
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--homag-blue);
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--homag-blue);
  box-shadow: 0 0 10px var(--homag-blue);
}

.timeline-item h4 {
  color: var(--homag-blue);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.timeline-item p {
  color: var(--grey-medium);
}

/* ============================================
   NEWS SECTION
   ============================================ */

.news-section {
  padding: 6rem 2rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.news-card {
  background: linear-gradient(135deg, rgba(12, 26, 42, 0.85) 0%, rgba(12, 26, 42, 0.7) 100%);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(0, 119, 200, 0.15);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-10px);
  border-color: var(--homag-blue);
  box-shadow: 0 20px 40px rgba(0, 119, 200, 0.3), 0 0 0 1px rgba(0, 119, 200, 0.3);
}

.news-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(12, 26, 42, 1) 0%, rgba(0, 119, 200, 1) 100%);
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-img {
  transform: scale(1.1);
}

.news-card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.news-card-date {
  font-size: 0.85rem;
  color: var(--homag-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.news-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.3;
  transition: var(--transition);
}

.news-card:hover .news-card-title {
  color: var(--homag-blue);
}

.news-card-text {
  color: var(--grey-medium);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
  transition: var(--transition);
}

.news-card:hover .news-card-text {
  color: rgba(255, 255, 255, 0.9);
}

.news-card-link {
  color: var(--homag-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  align-self: flex-start;
}

.news-card-link:hover {
  color: var(--white);
  gap: 1rem;
  transform: translateX(5px);
}

/* ============================================
   MACHINERY PAGE - HOMAG STYLE
   ============================================ */

/* Machine Finder Hero Section */
.machine-finder-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0 5rem;
  align-items: center;
  position: relative;
}

.machine-finder-close {
  display: none;
  /* Hidden on desktop */
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: rgba(0, 119, 200, 0.9);
  border: 2px solid var(--white);
  border-radius: 4px;
  color: var(--white);
  cursor: pointer;
  z-index: 10;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.machine-finder-close:hover,
.machine-finder-close:active {
  background: var(--homag-blue);
  transform: scale(1.1);
}

.machine-finder-close svg {
  width: 20px;
  height: 20px;
}

.machine-finder-trigger {
  display: none;
  /* Hidden on desktop */
}

/* Mobile-only class for showing elements only on mobile */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }

  .machine-finder-trigger.mobile-only {
    display: block !important;
  }
}

.machine-finder-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.machine-finder-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.machine-finder-subtitle {
  font-size: 1.2rem;
  color: var(--grey-medium);
  margin: 0;
  line-height: 1.6;
}

.machine-finder-btn {
  align-self: flex-start;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.machine-finder-hero-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.machine-finder-hero-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 119, 200, 0.4);
}

.machine-finder-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Theme Worlds Section */
.theme-worlds-section {
  margin: 4rem 0 5rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 119, 200, 0.2);
  border-bottom: 1px solid rgba(0, 119, 200, 0.2);
}

.theme-worlds-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.theme-worlds-subtitle {
  font-size: 1rem;
  color: var(--grey-medium);
  margin-bottom: 2rem;
}

.theme-worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.theme-world-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 119, 200, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.theme-world-card:hover {
  background: rgba(0, 119, 200, 0.1);
  border-color: var(--homag-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 119, 200, 0.3);
  color: var(--homag-blue);
}

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

@media (max-width: 1024px) {
  .machinery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .machinery-grid {
    grid-template-columns: 1fr;
  }
}

.machinery-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 119, 200, 0.2);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.machinery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 119, 200, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.machinery-card:hover {
  transform: translateY(-10px);
  border-color: var(--homag-blue);
  box-shadow: 0 20px 50px rgba(0, 119, 200, 0.3);
}

.machinery-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--homag-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.machinery-card-image::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(0, 119, 200, 0.3) 0%, transparent 70%);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.machinery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.machinery-card:hover .machinery-img {
  transform: scale(1.1);
}

.machinery-icon {
  font-size: 4rem;
  color: var(--white);
  z-index: 2;
  position: relative;
}

.machinery-card-content {
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.machinery-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.machinery-card-description {
  color: var(--grey-medium);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.machinery-card-cta {
  color: var(--homag-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
}

.machinery-card-cta:hover {
  gap: 1rem;
  color: var(--white);
}

.machinery-card-cta::after {
  content: '→';
  transition: var(--transition);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 119, 200, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 119, 200, 0.3);
  border-radius: 4px;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--homag-blue);
  background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 119, 200, 0.2);
}

.contact-info h3 {
  color: var(--homag-blue);
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.office {
  margin-bottom: 2rem;
}

.office h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.office p {
  color: var(--grey-medium);
  margin-bottom: 0.5rem;
}

.map-container {
  margin-top: 3rem;
  border-radius: 8px;
  overflow: hidden;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: rgba(0, 0, 0, 0.5);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(0, 119, 200, 0.2);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  footer {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 2rem 1rem;
    font-size: 0.9rem;
  }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  color: var(--grey-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 119, 200, 0.3);
  color: var(--grey-medium);
  transition: var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  background: rgba(0, 119, 200, 0.2);
  border-color: var(--homag-blue);
  color: var(--homag-blue);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 119, 200, 0.3);
}

.facebook-icon:hover {
  background: rgba(24, 119, 242, 0.2);
  border-color: #1877f2;
  color: #1877f2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

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

.footer-partnership {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.homag-logo-footer {
  height: 40px;
  width: auto;
  opacity: 0.8;
  transition: var(--transition);
}

.homag-logo-footer:hover {
  opacity: 1;
}

.footer-content p {
  margin-bottom: 0.5rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .section-container {
    padding: 0 1.5rem;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-tagline {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  /* Tablet: 2 columns for grids */
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .machinery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  section {
    padding: 5rem 2rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .section-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {

  /* Safe area insets for iOS */
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* Prevent horizontal scrolling */
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  * {
    max-width: 100%;
  }

  nav {
    padding: 0.75rem 1rem;
    min-height: 60px;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
  }

  .nav-logo-link {
    flex-shrink: 0;
    z-index: 1003;
    display: flex;
    align-items: center;
    max-width: calc(100% - 60px);
  }

  .nav-logo {
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .mobile-menu-toggle {
    display: flex !important;
    position: relative;
    z-index: 1003 !important;
    background: linear-gradient(135deg,
        rgba(0, 119, 200, 0.25) 0%,
        rgba(0, 119, 200, 0.15) 100%);
    border: 2px solid var(--homag-blue);
    box-shadow: 0 4px 12px rgba(0, 119, 200, 0.3),
      0 0 0 0 rgba(0, 119, 200, 0.4);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-menu-toggle:active {
    background: linear-gradient(135deg,
        rgba(0, 119, 200, 0.4) 0%,
        rgba(0, 119, 200, 0.3) 100%);
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 119, 200, 0.4);
  }

  .mobile-menu-toggle.active {
    background: linear-gradient(135deg,
        rgba(0, 119, 200, 0.5) 0%,
        rgba(0, 119, 200, 0.4) 100%);
    border-color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 119, 200, 0.5),
      0 0 20px rgba(0, 119, 200, 0.3);
  }

  .mobile-menu-overlay {
    z-index: 1001 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: block !important;
    pointer-events: none !important;
    transition: opacity 0.4s ease, backdrop-filter 0.4s ease !important;
  }

  .mobile-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .machine-finder-hero {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--navy);
    z-index: 2000;
    display: none;
    /* Hidden by default on mobile */
    flex-direction: column;
    grid-template-columns: none;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .machine-finder-hero.mobile-open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }

  .machine-finder-close {
    display: flex !important;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2001;
    background: rgba(0, 119, 200, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  }

  .machine-finder-hero-content {
    padding: 4rem 1.5rem 2rem;
    order: 2;
    text-align: center;
    position: relative;
    z-index: 10;
    pointer-events: auto;
  }

  .machine-finder-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .machine-finder-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .machine-finder-btn {
    width: 100%;
    align-self: stretch;
    text-align: center;
    min-height: 48px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(0, 119, 200, 0.3);
  }

  .machine-finder-hero-image {
    order: 1;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .machine-finder-hero-img {
    width: 100%;
    height: auto;
    max-height: 40vh;
    object-fit: cover;
  }

  .machine-finder-trigger {
    display: block !important;
    /* Show on mobile */
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--homag-blue) 0%, #005fa3 100%);
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    margin: 2rem 0;
    transition: var(--transition);
    min-height: 60px;
    -webkit-tap-highlight-color: rgba(0, 119, 200, 0.3);
    touch-action: manipulation;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 119, 200, 0.3);
    text-decoration: none;
    box-sizing: border-box;
  }

  .machine-finder-trigger:hover,
  .machine-finder-trigger:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 119, 200, 0.5);
    color: var(--white);
    text-decoration: none;
  }

  .theme-worlds-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .nav-links {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    right: auto !important;
    height: 100vh !important;
    max-height: 100vh !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* Modern glassmorphism background */
    background: linear-gradient(135deg,
        rgba(12, 26, 42, 0.98) 0%,
        rgba(12, 26, 42, 0.95) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    flex-direction: column !important;
    padding: 5rem 1.5rem 2rem !important;
    transform: translateX(-100%) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.4s ease !important;
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.8),
      inset -1px 0 0 rgba(0, 119, 200, 0.1) !important;
    z-index: 1002 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    max-width: 300px !important;
    width: 85% !important;
    min-width: 280px !important;
    list-style: none !important;
    margin: 0 !important;
    will-change: transform;
    justify-content: flex-start;
    align-items: stretch;
    box-sizing: border-box;
    /* Add subtle gradient border on the right edge */
    border-right: 1px solid rgba(0, 119, 200, 0.2);
  }

  /* Add decorative accent line at top */
  .nav-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--homag-blue) 0%,
        rgba(0, 119, 200, 0.5) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .nav-links.active::before {
    opacity: 1;
  }

  .nav-links.active {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Ensure nav links are clickable when menu is open */
  .nav-links.active a,
  .nav-links.active .nav-email-icon,
  .nav-links.active .nav-facebook-icon,
  .nav-links.active .lang-switcher {
    pointer-events: auto;
  }

  /* Staggered animation for menu items */
  .nav-links.active li {
    animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
  }

  .nav-links.active li:nth-child(1) {
    animation-delay: 0.05s;
  }

  .nav-links.active li:nth-child(2) {
    animation-delay: 0.1s;
  }

  .nav-links.active li:nth-child(3) {
    animation-delay: 0.15s;
  }

  .nav-links.active li:nth-child(4) {
    animation-delay: 0.2s;
  }

  .nav-links.active li:nth-child(5) {
    animation-delay: 0.25s;
  }

  .nav-links.active li:nth-child(6) {
    animation-delay: 0.3s;
  }

  .nav-links.active li:nth-child(7) {
    animation-delay: 0.35s;
  }

  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }

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

  .nav-links li {
    width: 100%;
    margin: 0.25rem 0;
    flex-shrink: 0;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    min-height: 48px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: normal;
    width: 100%;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 119, 200, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
  }

  /* Subtle gradient overlay on hover */
  .nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(0, 119, 200, 0.15) 0%,
        rgba(0, 119, 200, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
  }

  .nav-links a:active::before,
  .nav-links a:hover::before {
    opacity: 1;
  }

  /* Active state indicator */
  .nav-links a.active {
    background: linear-gradient(135deg,
        rgba(0, 119, 200, 0.25) 0%,
        rgba(0, 119, 200, 0.15) 100%);
    border-left: 3px solid var(--homag-blue);
    padding-left: calc(1.25rem - 3px);
    box-shadow: 0 4px 12px rgba(0, 119, 200, 0.2);
  }

  .nav-links a:active,
  .nav-links a:hover {
    background: rgba(0, 119, 200, 0.15);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 119, 200, 0.15);
  }

  /* Icon containers */
  .nav-email-icon,
  .nav-facebook-icon {
    width: 100%;
    margin: 0.25rem 0;
    min-height: 48px;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 500;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 119, 200, 0.2);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .nav-email-icon::before,
  .nav-facebook-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(0, 119, 200, 0.15) 0%,
        rgba(0, 119, 200, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
  }

  .nav-email-icon:active::before,
  .nav-facebook-icon:active::before,
  .nav-email-icon:hover::before,
  .nav-facebook-icon:hover::before {
    opacity: 1;
  }

  .nav-email-icon:active,
  .nav-facebook-icon:active,
  .nav-email-icon:hover,
  .nav-facebook-icon:hover {
    background: rgba(0, 119, 200, 0.15);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 119, 200, 0.15);
  }

  .nav-facebook-icon:hover {
    background: rgba(24, 119, 242, 0.15);
  }

  .nav-email-icon svg,
  .nav-facebook-icon svg {
    width: 22px;
    height: 22px;
    margin-right: 1rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 119, 200, 0.3));
    transition: transform 0.3s ease;
  }

  .nav-email-icon:hover svg,
  .nav-facebook-icon:hover svg {
    transform: scale(1.1);
  }

  .lang-switcher {
    width: 100%;
    margin: 0.5rem 0 0.25rem;
  }

  .lang-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1rem 1.25rem;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 119, 200, 0.2);
    border-radius: 12px;
    background: linear-gradient(135deg,
        rgba(0, 119, 200, 0.2) 0%,
        rgba(0, 119, 200, 0.1) 100%);
    border: 1px solid rgba(0, 119, 200, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
  }

  .lang-btn:active,
  .lang-btn:hover {
    background: linear-gradient(135deg,
        rgba(0, 119, 200, 0.3) 0%,
        rgba(0, 119, 200, 0.2) 100%);
    border-color: var(--homag-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 200, 0.3);
  }

  .lang-dropdown {
    position: static !important;
    min-width: 100%;
    margin-top: 0.5rem;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(12, 26, 42, 0.6) !important;
    border: 1px solid rgba(0, 119, 200, 0.2);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
  }

  .lang-dropdown a {
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
  }

  .lang-dropdown a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--homag-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .lang-dropdown a:hover::before,
  .lang-dropdown a:active::before {
    opacity: 1;
  }

  .lang-dropdown a:hover,
  .lang-dropdown a:active {
    background: rgba(0, 119, 200, 0.2) !important;
    padding-left: 1.5rem;
  }

  .hero {
    padding: 7rem 1rem 3rem;
    min-height: 100vh;
  }

  .hero-tagline {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .hero-subtitle .country-name {
    font-size: 1.15rem;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .section {
    padding: 4rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .section-container {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    padding: 0;
  }

  .section-subtitle {
    font-size: 1rem;
    word-wrap: break-word;
    padding: 0;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
  }

  .contact-form,
  .contact-info {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .machinery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
  }

  .machinery-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
  }
  
  .about-card {
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
  }

  .news-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .news-card-image {
    height: 220px;
  }

  .news-card-content {
    padding: 1.5rem;
  }

  .news-card-title {
    font-size: 1.3rem;
  }

  .news-card-text {
    font-size: 0.9rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
  }

  .team-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .team-card-image {
    height: 250px;
  }

  .team-card-content {
    padding: 1.5rem;
  }

  .team-card-name {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .team-card-email,
  .team-card-phone {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .hero-content {
    padding: 0 0.5rem;
    width: 100%;
  }

  .hero-logo {
    max-width: min(250px, 70vw) !important;
  }

  .hero-tagline {
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: 2px;
    padding: 0 0.5rem;
    word-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.4;
    padding: 0 0.5rem;
    word-wrap: break-word;
    justify-content: center;
  }

  .hero-description {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .about-card-icon {
    font-size: 3rem;
  }

  .about-card h3 {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
    min-height: 48px;
    font-size: 1rem;
    padding: 1rem 2rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    /* Prevents zoom on iOS */
    min-height: 48px;
    padding: 0.875rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .contact-form textarea {
    min-height: 120px;
    resize: vertical;
  }

  .office {
    margin-bottom: 1.5rem;
  }

  .map-container {
    height: 280px;
    margin-top: 2rem;
    width: 100%;
  }

  .contact-info {
    padding: 2rem 1.5rem;
  }

  .contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .footer-social {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .social-icon {
    min-width: 44px;
    min-height: 44px;
  }

  .machinery-card {
    min-height: auto;
  }

  .machinery-card-image {
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0.75rem 1rem;
  }

  .nav-logo {
    max-height: 35px;
  }

  .hero {
    padding: 6rem 1rem 2rem;
    min-height: 100vh;
    padding-top: calc(70px + 2rem);
  }

  .hero-tagline {
    font-size: 1.5rem;
    line-height: 1.3;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-subtitle .country-name {
    font-size: 1.05rem;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  section {
    padding: 3rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .section-container {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
  }

  .section-title {
    font-size: 1.75rem;
    word-wrap: break-word;
    padding: 0;
  }

  .section-subtitle {
    font-size: 0.95rem;
    word-wrap: break-word;
    padding: 0;
  }

  .about-grid {
    width: 100%;
    max-width: 100%;
  }
  
  .about-card {
    padding: 1.5rem 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .news-grid {
    width: 100%;
    max-width: 100%;
    gap: 1.5rem;
  }

  .news-card-image {
    height: 200px;
  }

  .news-card-content {
    padding: 1.25rem;
  }

  .news-card-title {
    font-size: 1.2rem;
  }

  .news-card-text {
    font-size: 0.85rem;
  }

  .team-grid {
    width: 100%;
    max-width: 100%;
    gap: 1.5rem;
  }

  .team-card-image {
    height: 220px;
  }

  .team-card-content {
    padding: 1.25rem;
  }

  .team-card-name {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .team-card-email,
  .team-card-phone {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .hero-content {
    padding: 0 0.5rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-logo {
    max-width: min(200px, 60vw) !important;
    margin-bottom: 1.5rem;
  }

  .hero-tagline {
    font-size: 1.5rem;
    line-height: 1.3;
    letter-spacing: 1px;
    padding: 0;
    word-wrap: break-word;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
    padding: 0;
    word-wrap: break-word;
    justify-content: center;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0;
    margin-bottom: 2rem;
  }

  .contact-container {
    width: 100%;
    max-width: 100%;
    gap: 2rem;
  }

  .contact-form,
  .contact-info {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 2rem 1.5rem;
  }

  .map-container {
    height: 250px;
    margin-top: 2rem;
    width: 100%;
  }

  .machinery-grid {
    width: 100%;
    max-width: 100%;
  }

  .machinery-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .about-card-icon {
    font-size: 2.5rem;
  }

  .about-card h3 {
    font-size: 1.3rem;
  }

  .about-card p {
    font-size: 0.9rem;
  }

  .machinery-card-title {
    font-size: 1.3rem;
  }

  .machinery-card-description {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.95rem;
    padding: 0.875rem 1.5rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 16px; /* Prevents zoom on iOS */
    width: 100%;
    box-sizing: border-box;
  }

  .map-container {
    height: 250px;
    margin-top: 2rem;
  }

  .contact-info {
    padding: 2rem 1.5rem;
  }

  .contact-info h3 {
    font-size: 1.5rem;
  }

  .office h4 {
    font-size: 1.1rem;
  }

  .office p {
    font-size: 0.9rem;
  }

  .nav-links {
    width: 100%;
    max-width: 100%;
    padding: 2.5rem 0.75rem 1rem;
    height: 100vh !important;
    max-height: 100vh !important;
    max-width: 260px !important;
    min-width: 240px !important;
  }

  .mobile-menu-toggle {
    min-width: 40px;
    min-height: 40px;
    font-size: 1.6rem;
    padding: 0.4rem;
    z-index: 1003 !important;
  }

  nav {
    padding: 0.5rem 0.75rem;
    min-height: 55px;
    flex-wrap: nowrap;
  }

  .nav-logo-link {
    max-width: calc(100% - 55px);
  }

  .nav-logo {
    max-height: 32px;
    width: auto;
  }

  .machine-finder-header {
    padding: 1.5rem 1rem;
  }

  .machine-finder-header h1 {
    font-size: 1.8rem;
  }

  .machine-finder-header p {
    font-size: 1rem;
  }
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.success-message {
  background: rgba(0, 200, 0, 0.2);
  border: 1px solid rgba(0, 200, 0, 0.5);
  color: #4ade80;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  display: none;
}

.success-message.active {
  display: block;
}

.error-message {
  background: rgba(200, 0, 0, 0.2);
  border: 1px solid rgba(200, 0, 0, 0.5);
  color: #f87171;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  display: none;
}

.error-message.active {
  display: block;
}