@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Premium Color Palette & Global Resets */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --dark-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-light: #ffffff;
  --text-dark: #2d3436;
  --accent-cyan: #00d4ff;
  --accent-pink: #ff0072;
  --accent-purple: #a855f7;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 15px 45px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  -o-font-smoothing: antialiased;
  font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: #ff0072;
  background: var(--dark-gradient);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background 0.4s ease;
}

/* Animated Background Elements */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
  z-index: 0;
  pointer-events: none;
}

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

.container {
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Premium Form Styling */
#contact {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 30px;
  margin: 80px auto;
  border-radius: 25px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#contact:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(102, 126, 234, 0.5);
}

#contact h3 {
  display: block;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

#contact h4 {
  margin: 5px 0 20px;
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

fieldset {
  border: none !important;
  margin: 0 0 15px;
  min-width: 100%;
  padding: 0;
  width: 100%;
  position: relative;
}

/* Premium Input Styling */
#contact input[type="text"],
#contact input[type="email"],
#contact input[type="tel"],
#contact input[type="url"],
#contact textarea {
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  margin: 0 0 8px;
  padding: 14px 18px;
  border-radius: 12px;
  color: var(--text-light);
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#contact input[type="text"]:hover,
#contact input[type="email"]:hover,
#contact input[type="tel"]:hover,
#contact input[type="url"]:hover,
#contact textarea:hover {
  border: 2px solid rgba(102, 126, 234, 0.5);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact input[type="tel"]:focus,
#contact input[type="url"]:focus,
#contact textarea:focus {
  outline: none;
  border: 2px solid var(--accent-cyan);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

#contact textarea {
  height: 120px;
  max-width: 100%;
  resize: vertical;
  min-height: 80px;
}

/* Premium Button Styling */
#contact button[type="submit"] {
  cursor: pointer;
  width: 100%;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #FFF;
  margin: 10px 0 5px;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

#contact button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#contact button[type="submit"]:hover::before {
  width: 300px;
  height: 300px;
}

#contact button[type="submit"]:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

#contact button[type="submit"]:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-top: 15px;
  font-weight: 300;
}

.copyright a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.copyright a:hover {
  color: var(--accent-purple);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Placeholder Styling */
::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

:-moz-placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

::-moz-placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Light Mode Styles */
body.light-mode {
  background: linear-gradient(135deg, #ffeef8 0%, #ffe4f3 50%, #ffd4eb 100%);
  color: #ff0072;
}

body.light-mode::before {
  background: radial-gradient(circle, rgba(255, 0, 114, 0.08) 0%, transparent 70%);
}

body.light-mode #contact {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 0, 114, 0.3);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1), 0 0 30px rgba(255, 0, 114, 0.2);
}

body.light-mode #contact:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(255, 0, 114, 0.3);
}

body.light-mode #contact input[type="text"],
body.light-mode #contact input[type="email"],
body.light-mode #contact input[type="tel"],
body.light-mode #contact input[type="url"],
body.light-mode #contact textarea {
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 0, 114, 0.2);
  color: #ff0072;
}

body.light-mode #contact input[type="text"]:hover,
body.light-mode #contact input[type="email"]:hover,
body.light-mode #contact input[type="tel"]:hover,
body.light-mode #contact input[type="url"]:hover,
body.light-mode #contact textarea:hover {
  border: 2px solid rgba(255, 0, 114, 0.4);
  background: rgba(255, 255, 255, 0.7);
}

body.light-mode #contact input[type="text"]:focus,
body.light-mode #contact input[type="email"]:focus,
body.light-mode #contact input[type="tel"]:focus,
body.light-mode #contact input[type="url"]:focus,
body.light-mode #contact textarea:focus {
  border: 2px solid #ff0072;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 20px rgba(255, 0, 114, 0.3);
}

body.light-mode #contact button[type="submit"] {
  background: linear-gradient(135deg, #ff0072 0%, #ff4d9f 100%);
  box-shadow: 0 5px 20px rgba(255, 0, 114, 0.4);
}

body.light-mode #contact button[type="submit"]:hover {
  background: linear-gradient(135deg, #ff4d9f 0%, #ff0072 100%);
  box-shadow: 0 10px 30px rgba(255, 0, 114, 0.6);
}

body.light-mode .copyright,
body.light-mode .copyright a {
  color: rgba(255, 0, 114, 0.7);
}

body.light-mode .copyright a:hover {
  color: #ff0072;
}

body.light-mode ::-webkit-scrollbar-track {
  background: rgba(255, 0, 114, 0.05);
}

body.light-mode ::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff0072 0%, #ff4d9f 100%);
}
