/**
 * DevHane Website - Contact Page Styles
 */

/* Hero Section Styles */
.hero-image-bg {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #2d1b69 0%, #6b46c1 50%, #9f7aea 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.interactive-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
}

.mouse-follower {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at center, rgba(159, 122, 234, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.floating-codes {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.code-box {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  backdrop-filter: blur(5px);
  animation: float 6s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.code-box-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.code-box-2 {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-squares {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-square {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  animation: floatSquare 8s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-square.s1 { left: 12vw; top: 12vh; width: 70px; height: 50px; animation-delay: 0s; }
.floating-square.s2 { left: 60vw; top: 8vh; width: 110px; height: 80px; animation-delay: 2s; }
.floating-square.s3 { left: 80vw; top: 18vh; width: 80px; height: 60px; animation-delay: 4s; }
.floating-square.s4 { left: 70vw; top: 60vh; width: 60px; height: 45px; animation-delay: 6s; }
.floating-square.s5 { left: 30vw; top: 70vh; width: 100px; height: 70px; animation-delay: 8s; }

.hero-content-box {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 0;
}

.hero-text {
  max-width: 600px;
  color: white;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-btn {
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #6b46c1 0%, #9f7aea 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-image {
  position: relative;
  width: 45%;
}

.floating-shapes {
  position: relative;
  width: 100%;
  height: 400px;
}

.shape {
  position: absolute;
  background: linear-gradient(135deg, rgba(159, 122, 234, 0.15) 0%, rgba(107, 70, 193, 0.15) 100%);
  border-radius: 20px;
  animation: float 6s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 100px;
  right: 0;
  animation-delay: 2s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 4s;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-scroll a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

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

@keyframes floatSquare {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(10px, -10px) rotate(5deg);
  }
}

/* Responsive Styles for Hero */
@media (max-width: 1024px) {
  .hero-content-box {
    flex-direction: column;
    text-align: center;
    padding: 80px 0;
  }

  .hero-text {
    max-width: 100%;
    margin-bottom: 50px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .floating-shapes {
    height: 300px;
  }
}

/* Page Banner */
#page-banner {
  background-color: var(--primary-color);
  color: white;
  padding: 100px 0 60px;
  text-align: center;
}

.page-title {
  color: white;
  font-size: 3rem;
  margin-bottom: 15px;
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Info */
#contact-info {
  padding: 80px 0;
  background-color: var(--background-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px var(--shadow-color);
  text-align: center;
  transition: all var(--transition-speed) ease;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-color);
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.contact-text {
  color: var(--text-light);
}

/* Contact Form */
#contact-form-section {
  padding: 80px 0;
  background-color: var(--background-alt);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.form-container {
  background-color: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.form-container .section-title {
  text-align: left;
  margin-bottom: 10px;
}

.form-container .section-title:after {
  margin-left: 0;
}

.form-container .section-subtitle {
  text-align: left;
  margin-bottom: 30px;
}

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

.form-group {
  width: calc(50% - 10px);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group button {
  margin-top: 10px;
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  display: flex;
  align-items: center;
}

.form-message.hidden {
  display: none;
}

.form-message i {
  font-size: 1.5rem;
  margin-right: 10px;
}

.form-message.success {
  background-color: rgba(46, 204, 113, 0.1);
  color: #27ae60;
  border: 1px solid #27ae60;
}

.form-message.error {
  background-color: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

.map-container {
  height: 100%;
  min-height: 400px;
}

.map-wrapper {
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }

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

@media (max-width: 576px) {
  .page-title {
    font-size: 2rem;
  }

  .form-container {
    padding: 30px 20px;
  }
}
