/* Contact page theme: red (#DC143C), black, white */
:root { 
  --red: #DC143C; 
  --black: #0f0f10; 
  --dark: #1a1a1a; 
  --text: #222;
  --white: #ffffff;
  --gray: #f8f9fa;
}

/* Hero Section */
.contact-hero { 
  position: relative; 
  height: clamp(320px, 46vh, 450px); 
  display: flex; 
  align-items: center; 
  color: #fff; 
  background: #000;
  overflow: hidden;
}

.contact-hero::before { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background-image: url('../images/engineering-architecture-devices-construction-building-equipment-generative-ai_116317-28789.jpg'); 
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat; 
  filter: saturate(0.9) contrast(1.1) brightness(0.7);
  z-index: 0;
  animation: zoomIn 20s ease infinite alternate;
}

@keyframes zoomIn {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.animated-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: float 15s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--red);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: #DC143C;
  bottom: -150px;
  right: -150px;
  animation-delay: 3s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: #fff;
  top: 50%;
  left: 50%;
  animation-delay: 6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(50px, 50px) rotate(90deg); }
  50% { transform: translate(0, 100px) rotate(180deg); }
  75% { transform: translate(-50px, 50px) rotate(270deg); }
}

.contact-hero .overlay { 
  position: absolute; 
  inset: 0; 
  z-index: 2; 
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.4), rgba(0, 0, 0, 0.7));
}

.contact-hero .container { 
  position: relative; 
  z-index: 3; 
}

.contact-hero .topline { 
  margin: 0 0 15px; 
  font-weight: 600; 
  font-size: clamp(14px, 2.2vw, 18px);
  color: #fff; 
  opacity: 0.95;
  letter-spacing: 0.5px;
}

.contact-hero .topline span { 
  color: var(--red); 
  font-weight: 700;
  text-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
}

.contact-hero .hero-title { 
  font-size: clamp(28px, 6.5vw, 72px); 
  font-weight: 900; 
  margin: 0 0 15px; 
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
  letter-spacing: -1px;
}

.contact-hero .hero-subtitle {
  font-size: clamp(14px, 2.2vw, 20px);
  font-weight: 400;
  opacity: 0.9;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Fade In Animations */
.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

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

/* Contact Body Section */
.contact-body { 
  background: var(--gray); 
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

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

.float-1 {
  width: 200px;
  height: 200px;
  background: var(--red);
  top: 10%;
  left: 5%;
  animation: floatAround 20s ease-in-out infinite;
}

.float-2 {
  width: 150px;
  height: 150px;
  background: var(--black);
  bottom: 15%;
  right: 10%;
  animation: floatAround 25s ease-in-out infinite reverse;
}

.float-3 {
  width: 100px;
  height: 100px;
  background: var(--red);
  top: 60%;
  left: 50%;
  animation: floatAround 30s ease-in-out infinite;
}

@keyframes floatAround {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -30px); }
  50% { transform: translate(-20px, 40px); }
  75% { transform: translate(40px, 20px); }
}

.container {
  position: relative;
  z-index: 1;
}

.section-title { 
  font-weight: 900; 
  font-size: 42px;
  color: var(--black); 
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--red), transparent);
  margin: 0 auto 40px;
  border-radius: 2px;
  animation: expandWidth 1s ease forwards;
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: 80px; }
}

/* Slide In Animations */
.slide-in {
  animation: slideIn 0.8s ease forwards;
  opacity: 0;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 1s ease forwards;
  opacity: 0;
}

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

.slide-in-right {
  animation: slideInRight 1s ease forwards;
  opacity: 0;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Contact Panel */
.contact-panel { 
  background: var(--white); 
  border: 2px solid var(--black); 
  border-radius: 12px; 
  padding: 40px; 
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--black));
  transition: left 0.5s ease;
}

.contact-panel:hover::before {
  left: 0;
}

.contact-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.form-group-animated {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.form-group-animated:nth-child(1) { animation-delay: 0.2s; }
.form-group-animated:nth-child(2) { animation-delay: 0.3s; }
.form-group-animated:nth-child(3) { animation-delay: 0.4s; }

.contact-panel .form-label { 
  font-weight: 700; 
  color: var(--black); 
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-panel .form-label i {
  color: var(--red);
  font-size: 16px;
}

.contact-panel .form-control { 
  border: 2px solid #e0e0e0; 
  border-radius: 8px; 
  height: 52px;
  padding: 12px 18px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #fafafa;
}

.contact-panel .form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
  background: var(--white);
  outline: none;
  transform: translateY(-2px);
}

.contact-panel textarea.form-control { 
  height: auto; 
  resize: vertical;
}

/* Submit Button */
.btn-submit { 
  background: linear-gradient(135deg, var(--black), #2a2a2a);
  color: var(--white); 
  font-weight: 800; 
  letter-spacing: 1px; 
  border: none; 
  height: 56px;
  border-radius: 8px;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red), #ff1744);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-submit:hover::before {
  opacity: 1;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
}

.btn-submit:active {
  transform: translateY(-1px);
}

.btn-text,
.btn-icon {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
  transform: translateX(5px);
}

/* Info Card */
.info-card { 
  background: linear-gradient(135deg, var(--dark), #000);
  color: var(--white); 
  border-radius: 12px; 
  padding: 40px; 
  border: 2px solid var(--black);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.info-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.1;
  transform: translate(50%, -50%);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(220, 20, 60, 0.3);
}

.info-icon-wrapper {
  width: 70px;
  height: 70px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(220, 20, 60, 0); }
}

.info-icon-wrapper i {
  font-size: 32px;
  color: var(--white);
}

.info-card h3 { 
  font-weight: 800; 
  margin-bottom: 15px;
  font-size: 24px;
  position: relative;
  z-index: 1;
}

.info-card p {
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.contact-details {
  position: relative;
  z-index: 1;
}

.detail-item {
  display: flex;
  align-items: start;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.detail-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--red);
  transform: translateX(5px);
}

.detail-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-icon i {
  color: var(--white);
  font-size: 18px;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-content strong { 
  color: var(--white); 
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.detail-content span,
.detail-content a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  text-decoration: none;
}

.detail-content a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .contact-hero .hero-title {
    font-size: 48px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .contact-panel,
  .info-card {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    height: 350px;
  }
  
  .contact-hero .hero-title {
    font-size: 36px;
  }
  
  .contact-hero .hero-subtitle {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .contact-body {
    padding: 60px 0 80px;
  }
}
