:root {
  --bg: #0d1b2a;
  --card-bg: rgba(255, 255, 255, 0.05);
  --accent: #6f42c1;
  --accent-glow: #ffcc70;
  --accent-light: #8b5cf6;
  --radius: 16px;
  --max-width: 1200px;
  --font: 'Poppins', sans-serif;
  --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Floating Particles */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--accent-glow);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) translateX(100px) scale(1.5);
    opacity: 0;
  }
}

/* Hero Section */
.contact-hero {
  position: relative;
  padding: 150px 20px 100px;
  text-align: center;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.gradient-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.gradient-circle:nth-child(1) {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -150px;
  left: -150px;
  animation: floatCircle 20s infinite ease-in-out;
}

.gradient-circle:nth-child(2) {
  width: 500px;
  height: 500px;
  background: var(--accent-glow);
  bottom: -200px;
  right: -200px;
  animation: floatCircle 25s infinite ease-in-out reverse;
}

.gradient-circle:nth-child(3) {
  width: 300px;
  height: 300px;
  background: var(--accent-light);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatCircle 30s infinite ease-in-out;
}

@keyframes floatCircle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.contact-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-glow), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.contact-hero p {
  font-size: 1.3rem;
  color: #c7d2fe;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.hero-indicator span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.hero-indicator span:nth-child(2) {
  width: 24px;
  border-radius: 4px;
  background: var(--accent-glow);
}

/* Contact Form Section */
.contact-form-section {
  display: grid;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 900px) {
  .contact-form-section {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

/* Form Container */
.form-container {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.form-container:hover::before {
  transform: translateX(0);
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #fff;
}

.form-divider {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.form-divider span {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.form-divider span:nth-child(2) {
  width: 60px;
  background: var(--accent-glow);
}

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

.form-group {
  margin-bottom: 1.5rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

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

input, textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 204, 112, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

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

/* Button Styling */
button {
  position: relative;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(111, 66, 193, 0.3);
}

button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

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

button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(111, 66, 193, 0.4);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

button:hover .btn-icon {
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.3);
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.6s linear infinite;
}

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

.result {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--accent-glow);
  text-align: center;
  min-height: 24px;
}

/* Contact Info */
.contact-info {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: fit-content;
}

.contact-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.contact-info:hover::before {
  transform: translateX(0);
}

.info-header {
  margin-bottom: 2rem;
}

.info-header h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}

.info-divider {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.info-divider span {
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.info-divider span:nth-child(2) {
  width: 50px;
  background: var(--accent-glow);
}

.contact-info ul {
  list-style: none;
  margin-bottom: 2rem;
}

.contact-info li {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #e2e8f0;
}

.icon-bg {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(111, 66, 193, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.contact-info li:hover .icon-bg {
  background: rgba(255, 204, 112, 0.15);
  transform: scale(1.1);
}

.icon-bg i {
  font-size: 1.5rem;
  color: var(--accent-glow);
  transition: var(--transition);
}

.contact-info li:hover .icon-bg i {
  transform: scale(1.1);
  color: var(--accent-glow);
}

.contact-info a {
  color: var(--accent-glow);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.contact-info a:hover {
  color: #fff;
  text-decoration: underline;
}

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

.social-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-5px);
}

/* Footer */
.simple-footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-content p {
  color: #64748b;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-glow);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-hero h1 {
    font-size: 2.5rem;
  }
  
  .contact-hero p {
    font-size: 1.1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-container, .contact-info {
    padding: 2rem;
  }
  
  .form-header h2 {
    font-size: 1.7rem;
  }
  
  .info-header h3 {
    font-size: 1.3rem;
  }
}