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

:root {
  --primary: #6C63FF;
  --primary-dark: #5A52D5;
  --primary-light: #8B85FF;
  --secondary: #FF6584;
  --accent: #FFD166;
  --dark: #1a1a2e;
  --dark-light: #16213e;
  --text: #2d3436;
  --text-light: #636e72;
  --bg: #f8f9ff;
  --bg-card: #ffffff;
  --gradient-main: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --shadow: 0 10px 40px rgba(108, 99, 255, 0.15);
  --shadow-hover: 0 20px 60px rgba(108, 99, 255, 0.25);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-header h2 .accent {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.accent {
  color: var(--primary);
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.35);
}

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

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

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

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1.05rem;
}

/* ============================
   NAVBAR
   ============================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.08);
  padding: 10px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  transition: var(--transition);
}

#navbar.scrolled .nav-logo {
  color: var(--dark);
}

.nav-logo i {
  font-size: 1.6rem;
  color: var(--primary);
}

.nav-logo .accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links li a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

#navbar.scrolled .nav-links li a {
  color: var(--text);
}

.nav-links li a:hover,
.nav-links li a.active {
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

#navbar.scrolled .nav-toggle span {
  background: var(--dark);
}

/* ============================
   HERO
   ============================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(108, 99, 255, 0.6);
  border-radius: 50%;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
  margin-top: 60px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title .accent {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  color: white;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-light);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: bounceScroll 2s ease-in-out infinite;
}

.hero-scroll i {
  font-size: 1.2rem;
}

@keyframes bounceScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================
   REVEAL ANIMATIONS
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.reveal-text-delay {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.reveal-text-delay2 {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.9s forwards;
}

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

/* ============================
   ABOUT SECTION
   ============================ */
.about {
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about-image-badge i {
  color: var(--primary);
  font-size: 1.2rem;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-card {
  background: var(--bg);
  padding: 28px 24px;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid rgba(108, 99, 255, 0.05);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(108, 99, 255, 0.15);
}

.about-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.about-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================
   MATIÈRES / CAROUSEL
   ============================ */
.matieres {
  background: var(--bg);
}

.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 50px;
}

.carousel-track {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  gap: 0;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px;
}

.matiere-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
  transition: var(--transition);
  border: 1px solid rgba(108, 99, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.matiere-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.matiere-card:hover::before {
  transform: scaleX(1);
}

.matiere-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.matiere-icon {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.matiere-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

.matiere-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.matiere-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

.matiere-topics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.matiere-topics li {
  background: rgba(108, 99, 255, 0.08);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: white;
  color: var(--dark);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: var(--transition);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 5px;
}

/* ============================
   CHATBOT
   ============================ */
.chatbot-section {
  background: white;
}

.chatbot-container {
  max-width: 640px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(108, 99, 255, 0.1);
}

.chatbot-header {
  background: var(--gradient-main);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.chatbot-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.chatbot-status {
  font-size: 0.8rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.chatbot-header-actions {
  margin-left: auto;
}

.chatbot-header-actions button {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.chatbot-header-actions button:hover {
  background: rgba(255,255,255,0.35);
}

.chatbot-messages {
  height: 400px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fafbff;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(108, 99, 255, 0.2);
  border-radius: 3px;
}

.message {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.bot { align-self: flex-start; }
.message.user { align-self: flex-end; flex-direction: row-reverse; }

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.message.bot .message-avatar {
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary);
}

.message.user .message-avatar {
  background: var(--gradient-main);
  color: white;
}

.message-content {
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.message.user .message-content {
  background: var(--gradient-main);
  color: white;
}

.message-content code {
  background: rgba(108, 99, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
}

.message.user .message-content code {
  background: rgba(255,255,255,0.2);
  color: white;
}

.message-examples {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.message-examples code {
  background: rgba(108, 99, 255, 0.08);
}

.message.bot .message-content .result-step {
  display: block;
  padding: 2px 0;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

.message.bot .message-content .result-answer {
  display: block;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(108, 99, 255, 0.08);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  text-align: center;
}

.chatbot-input {
  display: flex;
  padding: 12px 16px;
  gap: 10px;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.chatbot-input input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid rgba(108, 99, 255, 0.1);
  border-radius: 50px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.chatbot-input input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.chatbot-input button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-main);
  color: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.chatbot-input button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

/* ============================
   MONITOR
   ============================ */
.monitor-section {
  background: var(--bg);
}

.monitor-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.monitor {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: floatMonitor 6s ease-in-out infinite;
}

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

.monitor-bezel {
  background: linear-gradient(145deg, #2c3e50, #1a252f);
  padding: 20px;
  border-radius: 16px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
}

.monitor-screen {
  width: 560px;
  height: 360px;
  background: #0a0a1a;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}

.monitor-screen canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.screen-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 50%,
    rgba(0,0,0,0.1) 50%,
    rgba(0,0,0,0.1) 100%
  );
  background-size: 100% 4px;
  pointer-events: none;
  animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 4px; }
}

.monitor-camera {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #1a1a2e;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-dot {
  width: 3px;
  height: 3px;
  background: #2ecc71;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

.monitor-stand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -2px;
}

.stand-neck {
  width: 30px;
  height: 50px;
  background: linear-gradient(to right, #34495e, #2c3e50, #1a252f);
  border-radius: 0 0 4px 4px;
}

.stand-base {
  width: 200px;
  height: 16px;
  background: linear-gradient(145deg, #2c3e50, #1a252f);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.monitor-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.monitor-btn {
  padding: 10px 22px;
  border: 2px solid rgba(108, 99, 255, 0.15);
  border-radius: 50px;
  background: white;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.monitor-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.monitor-btn.active {
  background: var(--gradient-main);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

/* ============================
   CONTACT
   ============================ */
.contact {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  background: var(--bg);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(108, 99, 255, 0.05);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.contact-card i {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.contact-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.contact-form {
  background: var(--bg);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(108, 99, 255, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(108, 99, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

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

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 10px 0 8px;
}

.footer-brand h3 span {
  color: var(--primary);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-brand i {
  font-size: 2rem;
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .monitor-screen { width: 460px; height: 300px; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .section-header h2 { font-size: 2rem; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 30px 30px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    gap: 4px;
  }

  .nav-links.open { right: 0; }

  .nav-links li a {
    color: var(--text) !important;
    display: block;
    padding: 12px 16px;
  }

  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero-title { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: 30px; }
  .stat-number { font-size: 2rem; }

  .about-cards { grid-template-columns: 1fr; }
  .about-image img { height: 280px; }

  .carousel-container { padding: 0 40px; }

  .monitor-screen { width: 100%; height: 240px; }
  .monitor-bezel { padding: 12px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }

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

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .contact-info { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .monitor-screen { height: 200px; }
}
