/* Contact Page Styles */
.contact-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

.contact-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.97), rgba(17, 34, 64, 0.97));
  z-index: 2;
}

.ai-waves-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  animation: wave 20s infinite linear;
  filter: blur(3px);
}

@keyframes wave {
  0% { transform: scale(1.05) rotate(0deg); }
  50% { transform: scale(1) rotate(1deg); }
  100% { transform: scale(1.05) rotate(0deg); }
}

.contact-container {
  position: relative;
  z-index: 2;
  background: rgba(19, 28, 43, 0.75);
  padding: 3.5rem;
  border-radius: 24px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(100, 255, 218, 0.1);
  max-width: 1200px;
  width: 90%;
  margin: 2rem auto;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3), 
              0 4px 20px rgba(0, 183, 255, 0.1);
  transition: all 0.5s ease;
}

.contact-container:hover {
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.35), 
              0 8px 30px rgba(0, 183, 255, 0.15);
  transform: translateY(-5px);
}

.contact-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.contact-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #64ffda, #00B7FF);
  border-radius: 2px;
}

.contact-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #64ffda 0%, #00B7FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(100, 255, 218, 0.15);
}

.contact-subtitle {
  color: #a8b2d1;
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.contact-card {
  background: rgba(23, 42, 69, 0.5);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-height: 300px;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #64ffda, #00B7FF);
  opacity: 0;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-10px);
  background: rgba(23, 42, 69, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(100, 255, 218, 0.2);
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-icon-container {
  position: relative;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 85px;
  height: 85px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(0, 183, 255, 0.05), rgba(100, 255, 218, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(100, 255, 218, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-card:hover .contact-icon {
  background: linear-gradient(135deg, rgba(0, 183, 255, 0.2), rgba(100, 255, 218, 0.2));
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(100, 255, 218, 0.3);
}

.contact-icon i {
  font-size: 2.2rem;
  color: #64ffda;
  transition: all 0.4s ease;
}

.contact-card:hover .contact-icon i {
  color: #00B7FF;
  transform: scale(1.1);
}

.contact-card h3 {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

.contact-card p {
  color: #a8b2d1;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.7;
  flex-grow: 1;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  background: rgba(100, 255, 218, 0.05);
  color: #64ffda;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(100, 255, 218, 0.1);
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  margin-top: auto;
}

.contact-link:hover {
  background: linear-gradient(90deg, rgba(100, 255, 218, 0.1), rgba(0, 183, 255, 0.1));
  color: #00B7FF;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 183, 255, 0.3);
}

.contact-link i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.contact-link:hover i {
  transform: translateX(5px);
}

/* Animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-card:nth-child(1) {
  animation: fadeInUp 0.6s 0.1s both;
}

.contact-card:nth-child(2) {
  animation: fadeInUp 0.6s 0.3s both;
}

.contact-card:nth-child(3) {
  animation: fadeInUp 0.6s 0.5s both;
}

/* Map section removed as requested */

/* Map section removed as requested */

/* Contact form section */
.contact-form-section {
  margin-top: 5rem;
  text-align: center;
  width: 100%;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 90%;
  margin: 2rem auto 0;
}

.contact-form .form-group:nth-child(3),
.contact-form .form-group:nth-child(4) {
  grid-column: span 2;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: #e0e0ff;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(100, 255, 218, 0.2);
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #64ffda;
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

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

.form-submit {
  grid-column: span 2;
  padding: 1rem 2rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #00B7FF 0%, #006ee6 100%);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: auto;
  justify-self: center;
}

@media (max-width: 768px) {
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form .form-group:nth-child(3),
  .contact-form .form-group:nth-child(4),
  .form-submit {
    grid-column: span 1;
  }
}

.contact-form-title {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #64ffda 0%, #00B7FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-form-subtitle {
  color: #a8b2d1;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  background: rgba(23, 42, 69, 0.5);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 1.8rem;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ccd6f6;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 25, 47, 0.5);
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #64ffda;
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
  background: rgba(10, 25, 47, 0.7);
}

.form-control::placeholder {
  color: #8892b0;
}

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

/* Form submit button removed */

/* Responsive styles */
@media (max-width: 768px) {
  .contact-container {
    padding: 1.5rem;
    margin: 1rem;
    width: calc(100% - 2rem);
  }

  .contact-header h1 {
    font-size: 2.5rem;
  }

  .contact-subtitle {
    font-size: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-page {
    padding-top: 80px;
  }

  .contact-container {
    padding: 1.2rem;
    margin: 0.5rem;
    width: calc(100% - 1rem);
  }

  .tech-frame-header {
    height: auto;
    min-height: 180px;
    padding: 1rem 0;
  }

  .section-title-container {
    padding: 1rem;
  }

  .section-title-container h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .contact-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .contact-card {
    padding: 1.2rem;
  }

  .contact-card h3 {
    font-size: 1.2rem;
  }

  .contact-card p {
    font-size: 0.9rem;
  }

  .contact-link {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}
/* Contact Page Styling */
.contact-page {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.97), rgba(17, 34, 64, 0.97));
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 60px; /* Space for navbar */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
}

/* Technology Frame Header Design */
.tech-frame-header {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.tech-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px, 30px 30px;
    background-position: 0 0, 15px 15px;
    z-index: 1;
    animation: patternMove 30s linear infinite;
}

.tech-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 80, 255, 0.6) 0%, 
        rgba(0, 120, 255, 0.4) 40%, 
        rgba(0, 30, 60, 0.7) 100%);
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.section-title-container {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
}

.section-title-container h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0cfff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.contact-subtitle {
    color: #e0e0ff;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Contact Container Styling */
.contact-container {
    position: relative;
    z-index: 2;
    background: rgba(30, 35, 41, 0.75);
    padding: 3rem;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    max-width: 1200px;
    width: 90%;
    margin: 0 auto 4rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Contact Content */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

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

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 183, 255, 0.2);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(0, 183, 255, 0.1), rgba(33, 150, 243, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: linear-gradient(135deg, #00B7FF 0%, #2196f3 100%);
    transform: scale(1.1) rotate(10deg);
}

.contact-icon i {
    font-size: 2rem;
    color: #00B7FF;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon i {
    color: var(--text-primary);
}

.contact-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(21, 101, 192, 0.1));
    color: #00B7FF;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 183, 255, 0.2);
}

.contact-link:hover {
    background: linear-gradient(135deg, #00B7FF 0%, #2196f3 100%);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(33, 150, 243, 0.3);
}

.contact-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.contact-link:hover i {
    transform: translateX(5px);
}

/* Contact Form Section removed */

.form-submit {
    grid-column: 1 / -1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00B7FF 0%, #2196f3 100%);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 1rem;
}

.form-submit:hover {
    background: linear-gradient(135deg, #2196f3 0%, #00B7FF 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Success and error message styles */
.success-message {
  background-color: rgba(39, 174, 96, 0.15);
  color: #2ecc71;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(46, 204, 113, 0.3);
  animation: fadeIn 0.5s ease;
  transition: opacity 0.5s ease;
}

.error-message {
  background-color: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(231, 76, 60, 0.3);
  animation: fadeIn 0.5s ease;
  transition: opacity 0.5s ease;
}

.success-message i, .error-message i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.success-message i {
    color: #4CAF50;
}

.error-message i {
    color: #f44336;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes patternMove {
    0% {
        background-position: 0 0, 15px 15px;
    }
    100% {
        background-position: 1000px 1000px, 1015px 1015px;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .tech-frame-header {
        height: 280px;
    }

    .section-title-container h1 {
        font-size: 2.5rem;
    }

    .contact-subtitle {
        font-size: 1rem;
    }

    .contact-container {
        padding: 2rem;
        width: 95%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }
}

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