/* Contact Hero Section */
.contact-hero {
  text-align: center;
  padding: 60px 20px 50px;
  background: linear-gradient(135deg, #003366 0%, #0056b3 50%, #0066cc 100%);
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.contact-title-animate {
  font-size: 3em;
  color: #ffffff;
  margin: 0 0 15px 0;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: bounceInTitle 1.2s ease-out;
  position: relative;
  z-index: 1;
}

@keyframes bounceInTitle {
  0% { opacity: 0; transform: scale(0.5) translateY(-50px); }
  60% { transform: scale(1.1) translateY(0); }
  100% { opacity: 1; transform: scale(1); }
}

.contact-subtitle {
  font-size: 1.3em;
  color: #ffd700;
  margin: 10px 0 20px 0;
  animation: fadeInSubtitle 1.5s;
  position: relative;
  z-index: 1;
}

@keyframes fadeInSubtitle {
  from { opacity: 0; }
  to { opacity: 1; }
}

.title-underline {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
  margin: 0 auto;
  border-radius: 2px;
  animation: expandLine 1.5s ease-out;
  position: relative;
  z-index: 1;
}

@keyframes expandLine {
  from { width: 0; opacity: 0; }
  to { width: 100px; opacity: 1; }
}

/* Contact Layout */
.contact-layout {
  display: flex;
  gap: 40px;
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Contact Info Section */
.contact-info-section {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: linear-gradient(135deg, #ffffff, #f0f8ff);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0,86,179,0.15);
  text-align: center;
  transition: all 0.4s;
  border: 2px solid rgba(0,86,179,0.1);
}

.info-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 35px rgba(0,86,179,0.25);
  border-color: #0056b3;
}

.info-icon {
  font-size: 3em;
  margin-bottom: 15px;
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.info-card h3 {
  margin: 10px 0 8px 0;
  color: #003366;
  font-size: 1.3em;
}

.info-card p {
  margin: 0;
  color: #666;
  font-size: 1em;
}

/* Social Links */
.social-links {
  background: linear-gradient(135deg, #003366, #0056b3);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0,86,179,0.3);
  text-align: center;
}

.social-links h3 {
  color: #ffffff;
  margin: 0 0 20px 0;
  font-size: 1.2em;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: bold;
}

.social-icon.linkedin {
  background: linear-gradient(135deg, #0077b5, #005582);
}

.social-icon.twitter {
  background: linear-gradient(135deg, #1DA1F2, #0c85d0);
}

.social-icon.instagram {
  background: linear-gradient(135deg, #E1306C, #C13584);
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Contact Form Section */
.contact-form-section {
  flex: 1;
  min-width: 0;
}

.form-container {
  background: linear-gradient(135deg, #ffffff, #fafcff);
  padding: 45px;
  border-radius: 20px;
  box-shadow: 0 8px 35px rgba(0,86,179,0.2);
  border: 2px solid rgba(0,86,179,0.1);
}

.form-container h2 {
  margin: 0 0 10px 0;
  color: #003366;
  font-size: 2.2em;
  position: relative;
  padding-bottom: 15px;
}

.form-container h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0056b3, #ffd700);
  border-radius: 2px;
}

.form-intro {
  margin: 0 0 35px 0;
  color: #666;
  font-size: 1.05em;
  line-height: 1.6;
}

/* Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  width: 100%;
}

.form-group label {
  margin-bottom: 8px;
  color: #003366;
  font-weight: 600;
  font-size: 1.05em;
}

.required {
  color: #e74c3c;
}

.form-input,
.form-textarea {
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1em;
  font-family: 'Segoe UI', Arial, sans-serif;
  transition: all 0.3s;
  background: white;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 0 4px rgba(0,86,179,0.1);
  transform: translateY(-2px);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #aaa;
}

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

/* Submit Button */
.submit-btn {
  padding: 16px 40px;
  background: linear-gradient(135deg, #0056b3, #003366);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.4s;
  box-shadow: 0 6px 20px rgba(0,86,179,0.3);
  position: relative;
  overflow: hidden;
  align-self: flex-start;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #0066cc, #0056b3);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,86,179,0.5);
}

.submit-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,86,179,0.4);
}

.btn-icon {
  font-size: 1.3em;
  transition: transform 0.3s;
}

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

/* Success and Error Messages */
.success-message,
.error-message {
  display: none;
  margin-top: 25px;
  padding: 20px;
  border-radius: 12px;
  align-items: center;
  gap: 15px;
  animation: slideInMessage 0.5s;
}

.success-message.show,
.error-message.show {
  display: flex;
}

@keyframes slideInMessage {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-message {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border: 2px solid #28a745;
  color: #155724;
}

.error-message {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  border: 2px solid #e74c3c;
  color: #721c24;
}

.success-icon,
.error-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  flex-shrink: 0;
}

.success-icon {
  background: #28a745;
  color: white;
}

.error-icon {
  background: #e74c3c;
  color: white;
}

.success-message p,
.error-message p {
  margin: 0;
  font-size: 1.05em;
  font-weight: 600;
}

/* Reveal Animations */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s, transform 0.8s;
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s, transform 0.8s;
}

.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-left.delay-1 {
  transition-delay: 0.1s;
}

.reveal-left.delay-2 {
  transition-delay: 0.2s;
}

.reveal-left.delay-3 {
  transition-delay: 0.3s;
}

.reveal-left.delay-4 {
  transition-delay: 0.4s;
}

/* Floating Decorative Shapes */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,86,179,0.1), transparent);
  animation: floatShape 20s infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  animation-duration: 25s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 10%;
  animation-duration: 30s;
  animation-delay: 2s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  bottom: 15%;
  left: 50%;
  animation-duration: 28s;
  animation-delay: 4s;
}

@keyframes floatShape {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
    opacity: 0.4;
  }
  75% {
    transform: translate(20px, 30px) scale(1.05);
    opacity: 0.35;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-layout {
    flex-direction: column;
  }
  
  .contact-info-section {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .social-links {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .contact-title-animate {
    font-size: 2.2em;
  }
  
  .contact-layout {
    padding: 40px 15px;
  }
  
  .contact-info-section {
    grid-template-columns: 1fr;
  }
  
  .social-links {
    grid-column: span 1;
  }
  
  .form-container {
    padding: 30px 25px;
  }
  
  .form-container h2 {
    font-size: 1.8em;
  }
  
  .form-row {
    flex-direction: column;
    gap: 20px;
  }
  
  .submit-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 40px 15px 35px;
  }
  
  .contact-title-animate {
    font-size: 1.8em;
  }
  
  .contact-subtitle {
    font-size: 1.1em;
  }
  
  .form-container {
    padding: 25px 20px;
  }
}

