/* Dark Mode Contact Page Styles */

.contact-container {
  padding: 2rem 0;
}

.contact-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-hero h1 {
  margin-bottom: 1rem;
}

.contact-hero p {
  font-size: 1.1rem;
  opacity: 0.8;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

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

.contact-info h3,
.modern-form h3 {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.08);
}

.contact-method i {
  font-size: 1.5rem;
  margin-left: 1rem;
  color: #667eea;
  min-width: 2rem;
}

.contact-method-info h5 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.contact-method-info span {
  opacity: 0.8;
}

.modern-form .form-group {
  margin-bottom: 1rem;
}

.modern-form .form-control {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  width: 100%;
  transition: all 0.3s ease;
}

.modern-form .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

.modern-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

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

.modern-form .btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.modern-form .btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.modern-form .btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.modern-form .btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.modern-form .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.modern-form .btn:hover:not(:disabled)::before {
  left: 100%;
}

.tech-skills {
  margin: 3rem 0;
  text-align: center;
}

.tech-skills h3 {
  margin-bottom: 0.5rem;
}

.tech-skills p {
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

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

.skill-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.skill-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.map-container {
  position: relative;
  height: 400px;
  margin: 2rem 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.map-container:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.map-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.85);
  padding: 1rem;
  border-radius: 10px;
  z-index: 10;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.map-overlay:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.02);
}

.map-overlay h4 {
  margin: 0 0 0.5rem 0;
  color: #667eea;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-overlay p {
  margin: 0;
  opacity: 0.9;
}

.map-controls button {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-controls button:hover {
  background: rgba(102, 126, 234, 0.8);
  transform: scale(1.1);
}

.map-actions a {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.map-actions a:hover {
  background: rgba(102, 126, 234, 0.8);
  transform: scale(1.05);
  text-decoration: none;
  color: white;
}

.custom-marker {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}

/* Interactive map styles */
.interactive-map {
  width: 100%;
  height: 100%;
  position: relative;
}

#fallback-map {
  border: 0;
  border-radius: 15px;
  filter: sepia(20%) hue-rotate(220deg) saturate(1.2);
  transition: filter 0.3s ease;
}

#fallback-map:hover {
  filter: sepia(10%) hue-rotate(220deg) saturate(1.4);
}

/* Map loading animation */
#map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  color: #667eea;
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

#map-loading i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

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

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

@media (max-width: 576px) {
  .contact-container {
    padding: 1rem 0;
  }

  .contact-hero {
    margin-bottom: 2rem;
  }

  .contact-method {
    padding: 0.8rem;
  }

  .contact-method i {
    font-size: 1.2rem;
  }

  .modern-form .btn {
    padding: 0.8rem 1.5rem;
    width: 100%;
    justify-content: center;
  }

  .map-overlay {
    position: static;
    margin-bottom: 1rem;
  }

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

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  font-weight: 500;
  max-width: 350px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
}

.notification-success {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
}

.notification-error {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
}

/* Form validation styles */
.form-control.error {
  border-color: #f44336 !important;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1) !important;
}

.form-control.success {
  border-color: #4caf50 !important;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1) !important;
}

/* Loading spinner animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

/* Button ripple effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.btn-ripple:active::after {
  width: 200px;
  height: 200px;
}
