/* Contact Page Modern Design */
:root {
  --primary-bg: #1a1a2e;
  --secondary-bg: #16213e;
  --accent-color: #00eaff;
  --text-primary: #ffffff;
  --text-secondary: #b8c5d3;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.15);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #00eaff 0%, #0072ff 100%);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
  --border-radius: 20px;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--primary-bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.contact-container {
  min-height: 100vh;
  padding: 120px 2rem 4rem;
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f1419 100%);
}

/* Background Elements */
.contact-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

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

.shape {
  position: absolute;
  background: var(--gradient-accent);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
  filter: blur(1px);
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 20%;
  animation-delay: 4s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 40%;
  right: 40%;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(20px) rotate(240deg);
  }
}

/* Animated Bubbles */
.bubbles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.bubble {
  position: absolute;
  bottom: -100px;
  border-radius: 50%;
  opacity: 0.3;
  animation: bubbleUp linear infinite;
  background: linear-gradient(135deg, 
    rgba(0, 234, 255, 0.2) 0%, 
    rgba(0, 114, 255, 0.1) 50%, 
    rgba(102, 126, 234, 0.2) 100%);
  backdrop-filter: blur(4px);
}

.bubble-1 {
  width: 20px;
  height: 20px;
  left: 10%;
  animation-duration: 8s;
  animation-delay: 0s;
}

.bubble-2 {
  width: 30px;
  height: 30px;
  left: 20%;
  animation-duration: 12s;
  animation-delay: 2s;
}

.bubble-3 {
  width: 15px;
  height: 15px;
  left: 35%;
  animation-duration: 10s;
  animation-delay: 1s;
}

.bubble-4 {
  width: 25px;
  height: 25px;
  left: 50%;
  animation-duration: 14s;
  animation-delay: 3s;
}

.bubble-5 {
  width: 35px;
  height: 35px;
  left: 65%;
  animation-duration: 9s;
  animation-delay: 4s;
}

.bubble-6 {
  width: 18px;
  height: 18px;
  left: 75%;
  animation-duration: 11s;
  animation-delay: 1.5s;
}

.bubble-7 {
  width: 22px;
  height: 22px;
  left: 85%;
  animation-duration: 13s;
  animation-delay: 5s;
}

.bubble-8 {
  width: 28px;
  height: 28px;
  left: 5%;
  animation-duration: 15s;
  animation-delay: 6s;
}

.bubble-9 {
  width: 16px;
  height: 16px;
  left: 90%;
  animation-duration: 7s;
  animation-delay: 2.5s;
}

.bubble-10 {
  width: 32px;
  height: 32px;
  left: 40%;
  animation-duration: 16s;
  animation-delay: 7s;
}

@keyframes bubbleUp {
  0% {
    bottom: -100px;
    transform: translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    bottom: 100vh;
    transform: translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* Contact Header */
.contact-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 1s ease-out;
}

.contact-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-title .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.contact-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Layout */
.contact-layout {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* Contact Information */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-card, .map-card {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.info-card:hover, .map-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 234, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.info-card::before, .map-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.info-card:hover::before, .map-card:hover::before {
  opacity: 1;
}

.info-header, .map-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-icon, .map-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 234, 255, 0.3);
}

.info-header h2, .map-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(0, 234, 255, 0.15);
}

.item-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.item-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.item-value {
  font-size: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.item-value:hover {
  color: var(--accent-color);
}

/* Social Links */
.social-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-title i {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: var(--transition-smooth);
}

.social-link:hover::before {
  left: 100%;
}

.social-link.github:hover {
  background: rgba(88, 96, 105, 0.2);
  color: #ffffff;
}

.social-link.linkedin:hover {
  background: rgba(0, 119, 181, 0.2);
  color: #0077b5;
}

.social-link.twitter:hover {
  background: rgba(29, 161, 242, 0.2);
  color: #1da1f2;
}

/* Map */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  height: 250px;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: brightness(0.8) contrast(1.2);
  transition: var(--transition-smooth);
}

.map-container:hover iframe {
  filter: brightness(1) contrast(1);
}

/* Form Section */
.form-card {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}

.form-card:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px rgba(0, 234, 255, 0.2);
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin: 0 auto 1rem;
  box-shadow: 0 10px 25px rgba(0, 234, 255, 0.3);
}

.form-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-label i {
  color: var(--accent-color);
  font-size: 1rem;
}

.form-input, .form-textarea {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition-smooth);
  outline: none;
  backdrop-filter: blur(10px);
}

.form-input:focus, .form-textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 234, 255, 0.15);
  transform: translateY(-2px);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-secondary);
}

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

.submit-btn {
  background: var(--gradient-accent);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: 0 10px 25px rgba(0, 234, 255, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 234, 255, 0.4);
}

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

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.btn-loader i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.submit-btn.loading .btn-content {
  opacity: 0;
}

.submit-btn.loading .btn-loader {
  opacity: 1;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  animation: slideInUp 0.5s ease-out;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert i {
  font-size: 1.1rem;
}

/* Response Info */
.response-info {
  margin-top: 4rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.response-card {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
  max-width: 900px;
  margin: 0 auto;
  transition: var(--transition-smooth);
}

.response-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 234, 255, 0.2);
}

.response-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 234, 255, 0.15);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

/* Responsive Design */
@media (max-width: 1200px) {
  .contact-container {
    padding: 100px 1.5rem 3rem;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .contact-container {
    padding: 90px 1rem 2rem;
  }
  
  .contact-title {
    font-size: 2.5rem;
  }
  
  .contact-subtitle {
    font-size: 1.1rem;
  }
  
  .info-card, .map-card, .form-card {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .social-links {
    flex-direction: column;
  }
  
  .response-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .floating-shapes .shape,
  .bubbles-container .bubble {
    display: none;
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 80px 1rem 2rem;
  }
  
  .contact-title {
    font-size: 2rem;
  }
  
  .info-card, .map-card, .form-card {
    padding: 1.25rem;
  }
  
  .form-header h2 {
    font-size: 1.5rem;
  }
  
  .contact-item {
    padding: 0.75rem;
  }
  
  .item-icon, .stat-icon {
    width: 35px;
    height: 35px;
    font-size: 0.875rem;
  }
  
  .info-icon, .form-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}
