/* contact.css */

:root {
  --primary-color: #4A6CF7;
  --secondary-color: #1E293B;
  --accent-color: #FF6B6B;
  --neutral-color: #F8FAFC;
  --text-color: #334155;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Julius Sans One', sans-serif;
}

body {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  background-size: 400% 400%;
  animation: gradientBackground 15s ease infinite;
  color: var(--neutral-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

@keyframes gradientBackground {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animated background elements */
.background-circles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 8s ease-in-out infinite;
}

.circle:nth-child(1) {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.circle:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 70%;
  left: 80%;
  animation-delay: 2s;
}

.circle:nth-child(3) {
  width: 100px;
  height: 100px;
  top: 40%;
  left: 40%;
  animation-delay: 4s;
}

.circle:nth-child(4) {
  width: 250px;
  height: 250px;
  top: 80%;
  left: 20%;
  animation-delay: 6s;
}

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

/* Navigation */
nav {
  width: 100%;
  margin-bottom: 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 10px;
}

nav ul li a {
  color: var(--neutral-color);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: var(--accent-color);
}

/* Contact Section */
#contact {
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 90deg at 50% 50%, rgba(74, 108, 247, 0.1) 0deg, transparent 90deg);
  animation: rotate 20s linear infinite;
  z-index: -1;
}

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

#contact h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#contact p {
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0.8;
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

label {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: block;
  opacity: 0.9;
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--neutral-color);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.3);
}

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

button {
  padding: 1rem 2rem;
  background: linear-gradient(90deg, var(--primary-color), #6C8AFF);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

button::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: all 0.6s ease;
  z-index: -1;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(74, 108, 247, 0.2);
}

button:hover::before {
  left: 100%;
}

button:active {
  transform: translateY(1px);
  box-shadow: 0 5px 10px rgba(74, 108, 247, 0.2);
}

/* Loading Indicator */
.loading {
  display: none;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  color: var(--neutral-color);
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top: 3px solid var(--primary-color);
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error Messages */
.error {
  color: #FF9494;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.error.active {
  opacity: 1;
  transform: translateY(0);
}

/* reCAPTCHA Styling */
.g-recaptcha {
  margin-top: 1rem;
  transform: scale(0.95);
  transform-origin: 0 0;
}

/* Responsive Design */
@media (max-width: 600px) {
  #contact {
    padding: 1.5rem;
  }
  
  #contact h1 {
    font-size: 2rem;
  }
  
  nav ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
