/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
:root {
  /* Color Tokens */
  --bg-primary: #08090d;
  --bg-secondary: #0f111a;
  --bg-card: rgba(20, 23, 34, 0.65);
  --border-color: rgba(255, 255, 255, 0.07);
  
  --primary: #00F294; /* Mint green */
  --primary-hover: #00D380;
  --primary-glow: rgba(0, 242, 148, 0.35);
  
  --secondary: #00D4FF; /* Cyan */
  --secondary-glow: rgba(0, 212, 255, 0.25);
  
  --accent: #10B981; /* Emerald green */
  --accent-glow: rgba(16, 185, 129, 0.15);

  --text-primary: #ffffff;
  --text-secondary: #a0a6b5;
  --text-muted: #646b7a;

  /* Typography */
  --font-sans: 'Outfit', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 1000;
  transition: width 0.1s ease;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #1c1f2e;
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: #2b3047;
}

/* Layout Helper Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* ==========================================================================
   GLOWING DECORATIVE BACKGROUNDS
   ========================================================================== */
.glowing-orbs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.45;
  mix-blend-mode: screen;
}

.orb-1 {
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  width: 600px;
  height: 600px;
  top: -150px;
  right: -100px;
  animation: floatOrb 25s infinite alternate ease-in-out;
}

.orb-2 {
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  width: 500px;
  height: 500px;
  top: 600px;
  left: -200px;
  animation: floatOrb 30s infinite alternate-reverse ease-in-out;
}

.orb-3 {
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  width: 700px;
  height: 700px;
  bottom: 200px;
  right: -200px;
  animation: floatOrb 28s infinite alternate ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 60px) scale(1.1); }
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 242, 148, 0.08);
  border: 1px solid rgba(0, 242, 148, 0.2);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 242, 148, 0.05);
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #050609;
  box-shadow: 0 4px 20px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.5s ease-out;
  pointer-events: none;
}

.btn-primary:hover::after {
  transform: scale(1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 242, 148, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.btn:hover .arrow-icon {
  transform: translateX(4px);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 900;
  display: flex;
  align-items: center;
  transition: var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.main-header.scrolled {
  height: 70px;
  background-color: rgba(8, 9, 13, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.logo-accent {
  color: var(--primary);
  font-weight: 500;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.btn-nav {
  padding: 0.6rem 1.4rem;
  background: rgba(0, 242, 148, 0.07);
  border: 1px solid rgba(0, 242, 148, 0.15);
  border-radius: 100px;
  color: var(--primary);
}

.btn-nav:hover {
  background: var(--primary);
  color: #050609;
  border-color: var(--primary);
}

.btn-nav::after {
  display: none !important;
}

/* Hamburger Mobile Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.hamburger-menu .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* ==========================================================================
   HERO / ABOUT SECTION
   ========================================================================== */
.hero-section {
  padding: 160px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-tags .tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Avatar / Floating Card Frame */
.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.avatar-wrapper:hover .avatar-image {
  transform: scale(1.05);
}

.avatar-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 2;
  transition: var(--transition-normal);
}

.avatar-wrapper:hover .avatar-border {
  border-color: rgba(0, 242, 148, 0.4);
}

.avatar-glow {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  transition: var(--transition-slow);
}

.avatar-wrapper:hover + .avatar-glow {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Code Card Floating */
.ui-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  font-family: monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #c9d1d9;
  pointer-events: none;
  animation: floatCard 6s infinite alternate ease-in-out;
}

.card-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  margin-bottom: 10px;
}

.card-dot.red { background-color: #ff5f56; }
.card-dot.yellow { background-color: #ffbd2e; }
.card-dot.green { background-color: #27c93f; }

.keyword { color: #ff7b72; }
.string { color: #a5d6ff; }
.number { color: var(--primary); }

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* ==========================================================================
   CORE EXPERTISE SECTION
   ========================================================================== */
.stats-section {
  padding: 80px 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 148, 0.05);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon-wrapper {
  width: 54px;
  height: 54px;
  background: rgba(0, 242, 148, 0.05);
  border: 1px solid rgba(0, 242, 148, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: var(--transition-normal);
}

.stat-card:hover .stat-icon-wrapper {
  background: var(--primary);
  color: #050609;
  box-shadow: 0 0 15px rgba(0, 242, 148, 0.3);
}

.stat-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.stat-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-section {
  padding: 80px 0;
  position: relative;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 2.5rem;
}

.portfolio-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition-normal);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.project-img-container {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background-color: #121420;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: var(--transition-slow);
}

.portfolio-card:hover .project-img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 9, 13, 0.4);
  opacity: 0;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card:hover .project-overlay {
  opacity: 1;
}

.project-link-btn {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #050609;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(20px);
  transition: var(--transition-normal);
  box-shadow: 0 5px 15px rgba(0, 242, 148, 0.4);
}

.portfolio-card:hover .project-link-btn {
  transform: translateY(0);
}

.project-content {
  padding: 2rem;
}

.project-category {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-weight: 500;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 80px 0 120px;
  position: relative;
}

.contact-card {
  background: linear-gradient(135deg, rgba(20, 23, 34, 0.85) 0%, rgba(10, 11, 16, 0.85) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.contact-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.detail-icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.detail-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-value:hover {
  color: var(--primary);
}

/* Contact Actions Card Stack */
.contact-actions {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  position: relative;
}

.contact-glow-circle {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.actions-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.actions-subheading {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  margin-right: 0.25rem;
}

.whatsapp-btn {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.whatsapp-btn:hover {
  background: #20ba56;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  border-top: 1px solid var(--border-color);
  background-color: #050609;
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   ANIMATIONS / ENHANCEMENTS
   ========================================================================== */
.animate-reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image-container {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  /* Hamburger Menu Activation */
  .hamburger-menu {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(8, 9, 13, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem;
    height: calc(100vh - 80px);
    display: none;
    z-index: 1000;
  }

  .nav-menu.open {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
    text-align: center;
  }

  .btn-nav {
    display: block;
    max-width: 200px;
    margin: 0 auto;
  }

  .hamburger-menu.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .contact-card {
    padding: 2rem;
  }

  .contact-actions {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* ==========================================================================
   INQUIRY FORM STYLES
   ========================================================================== */
.form-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 20px;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.form-field-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.form-icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
  margin-right: 0.4rem;
  vertical-align: middle;
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  transition: var(--transition-normal);
  outline: none;
}

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

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23646b7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 242, 148, 0.12);
}

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

/* Toggle-style Radio Buttons */
.form-radio-group {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.form-radio-label {
  position: relative;
}

.form-radio-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-radio-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.form-radio-mark svg {
  width: 16px;
  height: 16px;
  color: #646b7a;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.form-radio-input:checked + .form-radio-mark {
  background: rgba(0, 242, 148, 0.08);
  border-color: var(--primary);
  color: var(--text-primary);
}

.form-radio-input:checked + .form-radio-mark svg {
  color: var(--primary);
}

/* Submit Button */
.form-submit-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 0.7rem 1.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.form-submit-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 242, 148, 0.06);
}

.form-submit-btn:active {
  transform: translateY(-1px);
}

/* Submit Spinner */
.submit-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
}

.submit-spinner.show {
  display: block;
}

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

.form-submit-btn:hover .submit-spinner,
.form-submit-btn.loading .submit-spinner {
  animation: spin 0.7s linear infinite;
}

/* Error Message */
.form-error-msg {
  color: #ff4d5c;
  font-size: 0.82rem;
  margin-top: 0.35rem;
  min-height: 1.2em;
  opacity: 0;
  transform: translateY(-4px);
  transition: var(--transition-fast);
}

.form-error-msg.show {
  opacity: 1;
  transform: translateY(0);
}

.shakeError {
  animation: shakeInput 0.5s ease !important;
}

@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* ==========================================================================
   SUCCESS MODAL STYLES
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-slow);
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  background: rgba(20, 23, 34, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 3rem;
  max-width: 440px;
  width: 85%;
  text-align: center;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: var(--transition-slow);
}

.modal-overlay.show .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 242, 148, 0.1);
  border: 1px solid rgba(0, 242, 148, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.modal-icon svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.modal-message {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}
