/* =========================
   MODERN CONTACT PAGE - FINAL MOBILE FIX
========================= */

/* ------------------------------
   RESET & BASE FIXES
------------------------------- */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ------------------------------
   ENHANCED HERO SECTION
------------------------------- */
.hero-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: 
    radial-gradient(ellipse at center, rgba(255,255,255,0.02) 0%, transparent 70%),
    linear-gradient(135deg, #0d0d0d 0%, rgba(0,0,0,0.9) 100%);
  position: relative;
  overflow: hidden;
  padding: 2rem 1rem;
}

/* Animated background particles */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 2px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 80px 80px;
  animation: particleFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes particleFloat {
  0%, 100% { 
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  50% { 
    transform: translate(20px, -15px) scale(1.05);
    opacity: 0.7;
  }
}

.hero-3d-logo {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  perspective: 1200px;
  z-index: 10;
  flex-shrink: 0;
}

/* Enhanced glow effect */
.hero-3d-logo::before {
  content: "";
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  background: 
    radial-gradient(circle at center,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0.3) 30%,
      rgba(255, 255, 255, 0.1) 60%,
      transparent 100%);
  z-index: -1;
  animation: enhancedGlow 8s ease-in-out infinite;
}

@keyframes enhancedGlow {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.8;
    filter: blur(30px);
  }
  25% { 
    transform: scale(1.1);
    opacity: 1;
    filter: blur(35px);
  }
  50% { 
    transform: scale(1.2);
    opacity: 0.6;
    filter: blur(40px);
  }
  75% { 
    transform: scale(1.1);
    opacity: 0.9;
    filter: blur(35px);
  }
}

/* Outer ring effect */
.hero-3d-logo::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  animation: ringPulse 6s ease-in-out infinite;
  z-index: -2;
}

@keyframes ringPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.3;
  }
  50% { 
    transform: scale(1.1);
    opacity: 0.6;
  }
}

.hero-3d-logo img {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: enhanced3DRotation 8s linear infinite;
  filter: 
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.8))
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.5))
    drop-shadow(0 0 40px rgba(255, 255, 255, 0.3));
  border-radius: 25px;
  transition: filter 0.3s ease;
}

@keyframes enhanced3DRotation {
  0%   { transform: rotateY(0deg) rotateX(0deg) scale(1); }
  20%  { transform: rotateY(72deg) rotateX(10deg) scale(1.02); }
  40%  { transform: rotateY(144deg) rotateX(-5deg) scale(1.05); }
  60%  { transform: rotateY(216deg) rotateX(15deg) scale(1.02); }
  80%  { transform: rotateY(288deg) rotateX(-10deg) scale(1.03); }
  100% { transform: rotateY(360deg) rotateX(0deg) scale(1); }
}

.hero-3d-logo:hover img {
  filter: 
    drop-shadow(0 0 12px rgba(255, 255, 255, 1))
    drop-shadow(0 0 30px rgba(255, 255, 255, 0.7))
    drop-shadow(0 0 60px rgba(255, 255, 255, 0.4));
}

/* ------------------------------
   MODERN CONTACT INFO SECTION - COMPREHENSIVE FIX
------------------------------- */

.contact-section {
  width: 100%;
  max-width: 100vw;
  padding: 4rem 0;
  background: 
    linear-gradient(135deg, var(--color-background) 0%, rgba(0,0,0,0.05) 100%);
  color: var(--color-text);
  position: relative;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Floating background elements */
.contact-section::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 5%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
  border-radius: 50%;
  animation: contactFloat 12s ease-in-out infinite;
  z-index: 0;
}

.contact-section::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 5%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: contactFloat 15s ease-in-out infinite reverse;
  z-index: 0;
}

@keyframes contactFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10px, 8px) scale(1.05); }
}

/* CONTAINER WRAPPER - CRITICAL FIX */
.contact-section .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.contact-section .section__header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.contact-section .section__header h2 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(
    135deg, 
    var(--color-text) 0%,
    rgba(255,255,255,0.9) 50%,
    var(--color-text) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 4s ease-in-out infinite;
  margin-bottom: 1rem;
  position: relative;
  word-wrap: break-word;
}

@keyframes titleShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.contact-section .section__header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--color-text), 
    transparent);
  border-radius: 2px;
  animation: underlineGlow 3s ease-in-out infinite;
}

@keyframes underlineGlow {
  0%, 100% { 
    opacity: 0.6;
    transform: translateX(-50%) scaleX(1);
  }
  50% { 
    opacity: 1;
    transform: translateX(-50%) scaleX(1.2);
  }
}

.contact-section .section__header p {
  font-size: 1.2rem;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  word-wrap: break-word;
}

/* CONTACT WRAPPER - MAJOR REWRITE */
.contact-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.contact-wrapper h3 {
  text-align: center;
  width: 100%;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  word-wrap: break-word;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* CONTACT FORM - COMPLETE REWRITE */
.contact-form {
  flex: 1 1 300px;
  width: 100%;
  max-width: 500px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: 
    linear-gradient(145deg, 
      rgba(255,255,255,0.08) 0%,
      var(--color-background) 20%,
      var(--color-background) 80%,
      rgba(255,255,255,0.05) 100%);
  padding: 2rem;
  margin: 0;
  border-radius: 1.5rem;
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Light sweep effect */
.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255,255,255,0.1), 
    transparent);
  transition: left 0.6s ease;
}

.contact-form:hover::before {
  left: 100%;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: var(--color-text);
  font-size: 1rem;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.contact-form input,
.contact-form textarea {
  margin-top: 0.8rem;
  padding: 1rem;
  border-radius: 0.8rem;
  border: 2px solid rgba(255,255,255,0.1);
  background: 
    linear-gradient(135deg, 
      var(--color-dark), 
      rgba(255,255,255,0.05));
  color: var(--color-text);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  resize: none;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 
    0 0 0 3px rgba(99,102,241,0.2),
    inset 0 2px 4px rgba(0,0,0,0.1);
  outline: none;
}

.contact-form textarea {
  min-height: 120px;
  max-height: 200px;
  resize: vertical;
}

.contact-form button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--color-primary), rgba(0,0,0,0.2));
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  outline: none;
}

.contact-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255,255,255,0.2), 
    transparent);
  transition: left 0.5s ease;
}

.contact-form button:hover::before {
  left: 100%;
}

.contact-form button:hover {
  background: linear-gradient(135deg, #5f61f0, rgba(255,255,255,0.1));
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

/* CONTACT INFO - COMPLETE REWRITE */
.contact-info {
  flex: 1 1 300px;
  width: 100%;
  max-width: 500px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: 
    linear-gradient(145deg, 
      rgba(255,255,255,0.05) 0%,
      var(--color-background) 20%,
      var(--color-background) 80%,
      rgba(255,255,255,0.08) 100%);
  padding: 2rem;
  margin: 0;
  border-radius: 1.5rem;
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255,255,255,0.08), 
    transparent);
  transition: left 0.6s ease;
}

.contact-info:hover::before {
  left: 100%;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  width: 100%;
  box-sizing: border-box;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 0.8rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.contact-details li:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(3px);
}

.contact-details li i {
  font-size: 1.5rem;
  color: var(--color-text);
  width: 24px;
  min-width: 24px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  flex-shrink: 0;
}

.contact-details li a {
  color: var(--color-text);
  text-decoration: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  flex: 1;
  min-width: 0;
}

.contact-details li a:hover {
  color: var(--color-primary);
}

/* SOCIAL LINKS - REWRITE */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  background: 
    linear-gradient(135deg, 
      var(--color-dark), 
      rgba(255,255,255,0.05));
  border-radius: 50%;
  color: var(--color-text);
  font-size: 1.4rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 15px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.1), 
    rgba(255,255,255,0.05));
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-links a:hover::before {
  opacity: 1;
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 
    0 10px 25px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
  color: #fff;
  background: 
    linear-gradient(135deg, 
      var(--color-background), 
      rgba(255,255,255,0.1));
}

/* MAP SECTION - REWRITE */
.map-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 4rem auto 2rem auto;
  background: linear-gradient(
    135deg, 
    var(--color-text) 0%,
    rgba(255,255,255,0.9) 50%,
    var(--color-text) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 4s ease-in-out infinite;
  position: relative;
  padding: 0 1rem;
  box-sizing: border-box;
  word-wrap: break-word;
}

.map-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--color-text), 
    transparent);
  border-radius: 2px;
  animation: underlineGlow 3s ease-in-out infinite;
}

.map-wrapper {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 9;
  border-radius: 1.5rem;
  overflow: hidden;
  margin: 0 auto 3rem auto;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.map-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 
    0 20px 45px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

.map-wrapper::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(255,255,255,0.2),
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.2)
  );
  border-radius: 1.5rem;
  z-index: -1;
  animation: mapBorderGlow 4s ease-in-out infinite;
}

@keyframes mapBorderGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: contrast(1.1) brightness(0.95);
  transition: filter 0.3s ease;
}

.map-wrapper:hover iframe {
  filter: contrast(1.2) brightness(1);
}

/* ------------------------------
   COMPREHENSIVE RESPONSIVE DESIGN
------------------------------- */

/* Large Desktop */
@media (max-width: 1200px) {
  .contact-wrapper {
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
}

/* Desktop */
@media (max-width: 1024px) {
  .hero-3d-logo {
    width: 180px;
    height: 180px;
  }
  
  .contact-section .container {
    padding: 0 0.5rem;
  }
  
  .contact-wrapper {
    gap: 1.5rem;
  }
  
  .contact-form,
  .contact-info {
    max-width: 450px;
    padding: 2rem 1.5rem;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    padding: 1rem 0.5rem;
  }
  
  .hero-3d-logo {
    width: 160px;
    height: 160px;
  }
  
  .contact-section {
    padding: 3rem 0;
  }
  
  .contact-section .container {
    padding: 0 0.5rem;
  }
  
  .contact-section .section__header {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }
  
  .contact-section .section__header h2 {
    font-size: 2.5rem;
  }
  
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  
  .contact-form, 
  .contact-info {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: auto;
    padding: 2rem 1.5rem;
  }
  
  .map-title {
    font-size: 1.8rem;
    margin: 3rem auto 1.5rem auto;
    padding: 0 0.5rem;
  }
  
  .map-wrapper {
    margin: 0 0.5rem 2rem 0.5rem;
  }
  
  /* Disable hover effects on tablet */
  .contact-form:hover,
  .contact-info:hover {
    transform: none;
  }
}

/* Mobile Landscape */
@media (max-width: 640px) {
  .contact-section .section__header h2 {
    font-size: 2.2rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 1.5rem 1rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.9rem;
    font-size: 0.95rem;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    font-size: 1.2rem;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .hero-section {
    min-height: 60vh;
    padding: 1rem 0.25rem;
  }
  
  .hero-3d-logo {
    width: 140px;
    height: 140px;
  }
  
  .contact-section {
    padding: 2rem 0;
  }
  
  .contact-section .container {
    padding: 0 0.25rem;
  }
  
  .contact-section .section__header {
    padding: 0 0.25rem;
  }
  
  .contact-section .section__header h2 {
    font-size: 2rem;
  }
  
  .contact-section .section__header p {
    font-size: 1rem;
  }
  
  .contact-wrapper {
    gap: 1rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    min-width: 0;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .contact-form button {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
  
  .contact-details li {
    padding: 0.8rem;
    font-size: 0.9rem;
    gap: 0.8rem;
  }
  
  .contact-details li i {
    font-size: 1.3rem;
    width: 20px;
    min-width: 20px;
  }
  
  .map-title {
    font-size: 1.5rem;
    margin: 2rem auto 1rem auto;
  }
  
  .map-wrapper {
    margin: 0 0.25rem 1.5rem 0.25rem;
    border-radius: 1rem;
  }
  
  .social-links {
    gap: 0.8rem;
  }
  
  .social-links a {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    font-size: 1.1rem;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .hero-section {
    padding: 0.5rem 0.125rem;
  }
  
  .hero-3d-logo {
    width: 120px;
    height: 120px;
  }
  
  .contact-section {
    padding: 1.5rem 0;
  }
  
  .contact-section .container {
    padding: 0 0.125rem;
  }
  
  .contact-section .section__header {
    padding: 0 0.125rem;
  }
  
  .contact-section .section__header h2 {
    font-size: 1.8rem;
  }
  
  .contact-section .section__header p {
    font-size: 0.9rem;
  }
  
  .contact-wrapper {
    gap: 0.8rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 1rem 0.8rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.7rem;
    font-size: 0.85rem;
  }
  
  .contact-form button {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }
  
  .map-wrapper {
    margin: 0 0.125rem 1rem 0.125rem;
  }
  
  .social-links a {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    font-size: 1rem;
  }
}

/* ------------------------------
   LOADING ANIMATIONS
------------------------------- */

.contact-form {
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info {
  animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-wrapper {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------
   PERFORMANCE OPTIMIZATIONS
------------------------------- */

.hero-3d-logo,
.contact-form,
.contact-info,
.map-wrapper {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Mobile performance optimization */
@media (max-width: 768px) {
  .hero-section::before,
  .contact-section::before,
  .contact-section::after {
    animation-duration: 30s;
  }
  
  .hero-3d-logo img {
    animation-duration: 12s;
  }
  
  /* Disable all hover transforms on mobile */
  .contact-form:hover,
  .contact-info:hover,
  .map-wrapper:hover {
    transform: none;
  }
  
  .contact-details li:hover {
    transform: none;
  }
  
  .social-links a:hover {
    transform: none;
  }
}

/* Force no horizontal scroll */
@media (max-width: 480px) {
  .hero-section,
  .contact-section,
  .contact-wrapper,
  .contact-form,
  .contact-info {
    overflow-x: hidden;
  }
}