/* Premium Contact Page Styles - Auroral Labs */
:root {
  /* Primary Brand Colors */
  --primary-color: #0a8c7a;
  --primary-dark: #08705e;
  --primary-light: #1fc8db;
  --secondary-color: #2ed8a7;
  --accent-color: #36d1dc;
  
  /* Neutral Colors */
  --light-color: #f8f9fa;
  --dark-color: #222222;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  --gradient-hero: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  --gradient-premium: linear-gradient(145deg, #ffffff 0%, #f8fdff 100%);
  
  /* Shadows */
  --shadow-soft: 0 10px 30px rgba(10, 140, 122, 0.08);
  --shadow-medium: 0 15px 40px rgba(10, 140, 122, 0.12);
  --shadow-large: 0 25px 50px rgba(10, 140, 122, 0.15);
  --shadow-premium: 0 20px 60px rgba(10, 140, 122, 0.12), 0 8px 30px rgba(10, 140, 122, 0.08);
  
  /* Fonts */
  --font-main: 'Poppins', Arial, sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--dark-color);
  line-height: 1.6;
  background: var(--light-color);
  overflow-x: hidden;
  perspective: 1000px;
}

/* Premium Contact Section with Enhanced Background */
.contact {
  padding: 10rem 5% 6rem;
  background: 
    /* Base gradient */
    linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 25%, #f8fdff 50%, #f0f8ff 75%, #e6f7ff 100%),
    /* Subtle noise texture */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.005' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E"),
    /* Aurora effect layers */
    radial-gradient(ellipse at 20% 20%, rgba(10, 140, 122, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(31, 200, 219, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 60%, rgba(46, 216, 167, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 30%, rgba(54, 209, 220, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(8, 112, 94, 0.03) 0%, transparent 50%);
  background-size: 300% 300%, 200px 200px, 800px 800px, 700px 700px, 900px 900px, 600px 600px, 1000px 1000px;
  background-blend-mode: overlay, overlay, overlay, overlay, overlay, overlay;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  transform: scale(0.98);
  animation: backgroundShift 20s ease infinite;
}

/* Animated background elements */
.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    /* Floating particles */
    radial-gradient(circle at 15% 25%, rgba(10, 140, 122, 0.1) 2%, transparent 4%),
    radial-gradient(circle at 85% 75%, rgba(31, 200, 219, 0.08) 2%, transparent 4%),
    radial-gradient(circle at 45% 55%, rgba(46, 216, 167, 0.06) 1%, transparent 3%),
    radial-gradient(circle at 75% 35%, rgba(54, 209, 220, 0.07) 1%, transparent 3%),
    radial-gradient(circle at 25% 65%, rgba(8, 112, 94, 0.05) 1%, transparent 3%);
  background-size: 400px 400px, 350px 350px, 300px 300px, 450px 450px, 500px 500px;
  animation: particleFloat 25s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.contact::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    /* Wave patterns */
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(10, 140, 122, 0.02) 10px, rgba(10, 140, 122, 0.02) 20px),
    repeating-linear-gradient(-45deg, transparent, transparent 15px, rgba(31, 200, 219, 0.015) 15px, rgba(31, 200, 219, 0.015) 30px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

/* Section Title with Zoomed Effect */
.section-title {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  z-index: 2;
  transform: scale(0.95);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-title.visible {
  transform: scale(1);
}

.section-title h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  text-shadow: 0 10px 30px rgba(10, 140, 122, 0.2);
  transform: translateZ(50px);
}

.section-title p {
  font-size: 1.3rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  transform: translateZ(30px);
}

/* Contact Container with Zoomed Perspective */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
  position: relative;
  z-index: 2;
  transform: scale(0.95) translateZ(0);
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-container.visible {
  transform: scale(1) translateZ(0);
}

/* Premium Contact Info Card with Enhanced Depth */
.contact-info {
  background: var(--gradient-premium);
  padding: 4rem 3.5rem;
  border-radius: 30px;
  box-shadow: 
    var(--shadow-premium), 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  transform: translateY(0) scale(0.98) rotateX(2deg);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
}

.contact-info.visible {
  transform: translateY(0) scale(1) rotateX(0deg);
}

.contact-info:hover {
  transform: translateY(-15px) scale(1.02) translateZ(20px);
  box-shadow: 
    0 40px 100px rgba(10, 140, 122, 0.25),
    0 20px 60px rgba(10, 140, 122, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.5);
}

.contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--accent-color));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  z-index: 3;
}

.contact-info::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 8s ease-in-out infinite;
  z-index: 1;
}

.contact-info h3 {
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  line-height: 1.3;
  z-index: 2;
}

.contact-info > p {
  color: var(--text-light);
  margin-bottom: 3rem;
  line-height: 1.7;
  font-size: 1.15rem;
  position: relative;
  z-index: 2;
}

/* Contact Details with Enhanced Depth */
.contact-details {
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #f8fdff 0%, #ffffff 100%);
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(10, 140, 122, 0.1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform: translateZ(0);
  box-shadow: 0 5px 20px rgba(10, 140, 122, 0.08);
}

.contact-details p::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.8s ease;
}

.contact-details p:hover::before {
  left: 100%;
}

.contact-details p:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  transform: translateY(-12px) scale(1.03) translateZ(10px);
  box-shadow: 0 25px 60px rgba(10, 140, 122, 0.35);
  border-color: transparent;
}

.contact-details p:hover i {
  color: white;
  transform: scale(1.3) rotate(5deg);
}

.contact-details i {
  color: var(--primary-color);
  font-size: 1.5rem;
  width: 28px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.contact-details a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
  font-size: 1.05rem;
}

.contact-details p:hover a {
  color: white;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

/* Premium Contact Form with Enhanced 3D Effect */
.contact-form {
  background: var(--gradient-premium);
  padding: 4rem 3.5rem;
  border-radius: 30px;
  box-shadow: 
    var(--shadow-premium), 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  transform: translateY(0) scale(0.98) rotateX(-2deg);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
}

.contact-form.visible {
  transform: translateY(0) scale(1) rotateX(0deg);
}

.contact-form:hover {
  transform: translateY(-15px) scale(1.02) translateZ(20px);
  box-shadow: 
    0 40px 100px rgba(10, 140, 122, 0.25),
    0 20px 60px rgba(10, 140, 122, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.5);
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-light), var(--primary-color));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  z-index: 3;
}

.contact-form h3 {
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 700;
  position: relative;
  line-height: 1.3;
  z-index: 2;
}

/* Form Elements with Enhanced Depth */
.form-group {
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
  transform: translateZ(0);
}

.form-group label {
  display: block;
  margin-bottom: 1rem;
  color: var(--dark-color);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  transform: translateZ(10px);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1.4rem 2rem;
  border: 2px solid #e8f4f2;
  border-radius: 16px;
  font-family: var(--font-main);
  font-size: 1.05rem;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: linear-gradient(135deg, #f8fdff 0%, #ffffff 100%);
  box-shadow: 
    inset 0 3px 6px rgba(10, 140, 122, 0.05),
    0 2px 4px rgba(10, 140, 122, 0.05);
  color: var(--text-dark);
  transform: translateZ(0);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0aec0;
  font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 
    0 0 0 4px rgba(10, 140, 122, 0.2),
    inset 0 3px 6px rgba(10, 140, 122, 0.05),
    0 8px 20px rgba(10, 140, 122, 0.15);
  transform: translateY(-5px) translateZ(10px);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
  font-family: var(--font-main);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a8c7a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 2rem center;
  background-size: 1.3em;
  cursor: pointer;
}

/* Enhanced Background Animations */
@keyframes backgroundShift {
  0%, 100% {
    background-position: 0% 0%, 0 0, 0% 0%, 100% 100%, 50% 50%, 100% 0%, 0% 100%;
  }
  25% {
    background-position: 50% 25%, 50px 50px, 25% 25%, 75% 75%, 75% 25%, 75% 25%, 25% 75%;
  }
  50% {
    background-position: 100% 50%, 100px 100px, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%;
  }
  75% {
    background-position: 50% 75%, 150px 150px, 75% 75%, 25% 25%, 25% 75%, 25% 75%, 75% 25%;
  }
}

@keyframes particleFloat {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 400px 400px, 350px 350px, 300px 300px, 450px 450px, 500px 500px;
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes shine {
  0% { transform: rotate(45deg) translateX(-100%); }
  100% { transform: rotate(45deg) translateX(100%); }
}

@keyframes slideUp {
  0% { 
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  100% { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bounceIn {
  0% { 
    opacity: 0;
    transform: scale(0.3) rotate(-180deg);
  }
  50% { 
    opacity: 1;
    transform: scale(1.15) rotate(10deg);
  }
  70% {
    transform: scale(0.95) rotate(-5deg);
  }
  100% { 
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0) rotate(0deg) scale(1);
  }
  33% { 
    transform: translateY(-30px) rotate(120deg) scale(1.1);
  }
  66% { 
    transform: translateY(15px) rotate(240deg) scale(0.9);
  }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Enhanced Floating Elements */
.contact-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  transform: scale(0.9);
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  opacity: 0.04;
  animation: floatEnhanced 15s ease-in-out infinite;
  filter: blur(1px);
  transform-style: preserve-3d;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 8%;
  animation-delay: 3s;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
}

.shape-3 {
  width: 250px;
  height: 250px;
  bottom: 20%;
  left: 12%;
  animation-delay: 6s;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.shape-4 {
  width: 180px;
  height: 180px;
  top: 30%;
  right: 15%;
  animation-delay: 9s;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-light));
}

.shape-5 {
  width: 120px;
  height: 120px;
  bottom: 40%;
  left: 80%;
  animation-delay: 12s;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

@keyframes floatEnhanced {
  0%, 100% { 
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  20% { 
    transform: translate3d(-20px, -40px, 50px) rotate(72deg) scale(1.1);
  }
  40% { 
    transform: translate3d(30px, -20px, 30px) rotate(144deg) scale(0.95);
  }
  60% { 
    transform: translate3d(-15px, 30px, 70px) rotate(216deg) scale(1.05);
  }
  80% { 
    transform: translate3d(25px, 15px, 40px) rotate(288deg) scale(0.98);
  }
}

/* Enhanced Investor Section */
.contact-page .investor {
  background: linear-gradient(135deg, #ffffff 0%, #f8fdff 100%);
  border-radius: 30px;
  margin: 8rem auto;
  max-width: 1200px;
  box-shadow: var(--shadow-premium);
  padding: 5rem 4rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  transform: scale(0.95);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-page .investor.visible {
  transform: scale(1);
}

.contact-page .investor::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-light));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.contact-page .investor .section-title h2 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
}

.contact-page .investor .section-title p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Enhanced Map Section */
.map {
  padding: 0;
  margin-top: 8rem;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 
    0 25px 80px rgba(10, 140, 122, 0.2),
    0 15px 40px rgba(10, 140, 122, 0.15);
  position: relative;
  transform: scale(0.95);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.map.visible {
  transform: scale(1);
}

.map:hover {
  transform: scale(1.02);
  box-shadow: 
    0 35px 100px rgba(10, 140, 122, 0.25),
    0 20px 50px rgba(10, 140, 122, 0.2);
}

.map::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  z-index: 2;
}

.map iframe {
  display: block;
  filter: grayscale(0.2) contrast(1.1) saturate(1.1);
  transition: all 0.4s ease;
  border-radius: 0 0 30px 30px;
}

.map:hover iframe {
  filter: grayscale(0) contrast(1.05) saturate(1.2);
}

/* Responsive Design for Zoomed Layout */
@media screen and (max-width: 1200px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 800px;
    transform: scale(0.92);
  }
  
  .contact-container.visible {
    transform: scale(0.95);
  }
  
  .contact-info,
  .contact-form {
    padding: 3.5rem 3rem;
    transform: scale(0.98);
  }
  
  .section-title h2 {
    font-size: 3rem;
  }
}

@media screen and (max-width: 968px) {
  .contact {
    padding: 8rem 5% 4rem;
    transform: scale(0.96);
  }
  
  .contact-info,
  .contact-form {
    padding: 3rem 2.5rem;
  }
  
  .contact-info h3,
  .contact-form h3 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 2.5rem;
  }
  
  .section-title p {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 768px) {
  .contact {
    transform: scale(0.98);
  }
  
  .contact-container {
    transform: scale(0.95);
  }
  
  .contact-container.visible {
    transform: scale(0.98);
  }
  
  .contact-info,
  .contact-form {
    transform: scale(0.99);
  }
  
  .contact-info.visible,
  .contact-form.visible {
    transform: scale(1);
  }
}

@media screen and (max-width: 480px) {
  .contact {
    padding: 7rem 5% 3rem;
    transform: scale(0.99);
  }
  
  .contact-info,
  .contact-form {
    padding: 2rem 1.5rem;
    border-radius: 20px;
    transform: scale(0.98);
  }
  
  .contact-container {
    transform: scale(0.96);
  }
  
  .contact-container.visible {
    transform: scale(0.98);
  }
}

/* Scroll-triggered animations */
.contact-section {
  opacity: 0;
  transform: scale(0.9) translateY(50px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-section.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}