/* =========================================================
   DESIGN TOKENS (THEME VARIABLES)
   ========================================================= */
:root {
  --primary: #0F172A;
  --secondary: #2563EB;
  --accent: #22D3EE;

  --bg-dark: #020617;
  --bg-light: #F8FAFC;

  --text-light: #E5E7EB;
  --text-dark: #020617;
}


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}


/* =========================================================
   HERO SECTION
   ========================================================= */
header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}


/* ---------- Animated Background Blobs ---------- */
.hero-bg span {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.25), transparent 70%);
  animation: blob 18s infinite alternate ease-in-out;
  filter: blur(60px);
}

.hero-bg span:nth-child(1) {
  top: -120px;
  left: -100px;
}

.hero-bg span:nth-child(2) {
  bottom: -140px;
  right: -120px;
  animation-delay: 4s;
}

.hero-bg span:nth-child(3) {
  top: 20%;
  right: 20%;
  animation-delay: 8s;
}


/* ---------- Hero Layout ---------- */
.hero {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
  animation: fadeUp 1.2s ease forwards;
}


/* ---------- Hero Content ---------- */
.hero-content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.2rem;
  margin-bottom: 1rem;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  font-size: 1.1rem;
  color: #cbd5f5;
  max-width: 520px;
  margin-bottom: 2rem;
}


/* ---------- CTA Button ---------- */
.cta-btn {
  background: var(--accent);
  color: var(--bg-dark);
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(34, 211, 238, 0.35);
}


/* ---------- Hero Image ---------- */
.hero-image {
  display: flex;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.hero-image img {
  max-width: 360px;
  border-radius: 20px;
  filter: drop-shadow(0 25px 50px rgba(37, 99, 235, 0.35));
}


/* =========================================================
   SERVICES SECTION
   ========================================================= */
section {
  padding: 6rem 2rem;
  background: var(--bg-light);
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}


/* ---------- Animated Grid Background ---------- */
section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 30s linear infinite;
}


/* ---------- Container ---------- */
.container {
  max-width: 1100px;
  margin: auto;
  position: relative;
  z-index: 2;
}

section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.3rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
}

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

.card {
  background: white;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
  opacity: 0;
  transform: translateY(40px);
  pointer-events: auto;
}


.details {
  margin-top: 0.8rem;
  overflow: hidden;

  max-height: 0;
  opacity: 0;
  transform: translateY(8px);

  transition:
    max-height 0.55s ease 0.12s,
    opacity 0.38s ease 0.14s,
    transform 0.55s ease 0.12s;
}

.card:hover,
.card:focus-within {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15);
}

.card .short {
  transition: opacity 0.25s ease;
}


.card:hover .details,
.card:focus-within .details {
  max-height: 300px;
  opacity: 1;
  transform: translateY(0);
}

.card h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: #475569;
}

/* Scroll reveal active */
.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.details ul {
  padding-left: 1.2rem;
  margin-top: 0.6rem;
}

.details li {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {

  .card,
  .details {
    transition: none !important;
  }
}

/* =========================================================
   MODAL (CONSULTATION FORM)
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: white;
  color: #020617;
  padding: 2.5rem;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: fadeUp 0.4s ease;
}

.modal-content h2 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 0.5rem;
}

.modal-content p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: #475569;
}


/* ---------- Form Fields ---------- */
.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-family: inherit;
  background-color: #f8fafc;
  color: #020617;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.modal-content textarea {
  resize: none;
  min-height: 100px;
}


/* ---------- Input States ---------- */
.modal-content input:hover,
.modal-content select:hover,
.modal-content textarea:hover {
  background-color: #ffffff;
  border-color: #cbd5f5;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25);
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
  color: #94a3b8;
}


/* ---------- Custom Select Arrow ---------- */
.modal-content select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
  cursor: pointer;
}

.modal-content select:focus {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
}


/* ---------- Modal Close ---------- */
.close-btn {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-content button {
  width: 100%;
  margin-top: 0.5rem;
}


/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--primary);
  color: #cbd5f5;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}


/* /* =========================================================
   TOAST NOTIFICATIONS
   ========================================================= */
/* .toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(20, 20, 30, 0.95);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  min-width: 260px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast.success { border-left: 4px solid #22c55e; }
.toast.error   { border-left: 4px solid #ef4444; }
.toast.warning { border-left: 4px solid #f59e0b; } */
*/

/* =========================================================
   BUTTON LOADING STATE
   ========================================================= */
button.loading {
  pointer-events: none;
  opacity: 0.7;
}

button.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  margin-left: 10px;
  animation: spin 0.8s linear infinite;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes blob {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(80px, -60px) scale(1.1);
  }
}

@keyframes gridMove {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 400px 400px;
  }
}

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


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin: auto;
  }

  .hero-image img {
    max-width: 260px;
  }
}

/* =========================================================
   TOAST NOTIFICATIONS (IMPROVED)
   ========================================================= */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  min-width: 300px;
  max-width: 400px;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  cursor: pointer;
  transform: translateX(120%);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease,
    background-color 0.2s ease;
  border-left: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--toast-color, #22c55e) 0%, transparent 100%);
  animation: toast-progress 4s linear forwards;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.hiding {
  transform: translateX(120%);
  opacity: 0;
}

/* Toast Types */
.toast.success {
  --toast-color: #22c55e;
  border-left-color: #22c55e;
  background: rgba(15, 23, 42, 0.95);
}

.toast.error {
  --toast-color: #ef4444;
  border-left-color: #ef4444;
  background: rgba(15, 23, 42, 0.95);
}

.toast.warning {
  --toast-color: #f59e0b;
  border-left-color: #f59e0b;
  background: rgba(15, 23, 42, 0.95);
}

/* Toast Content */
.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #f1f5f9;
}

.toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.toast-close:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.1);
}

/* Progress Bar Animation */
@keyframes toast-progress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

/* Hover Effects */
.toast:hover {
  background: rgba(15, 23, 42, 0.98);
  transform: translateX(0) translateY(-2px);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.4),
    0 1px 3px rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 640px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .toast {
    min-width: auto;
    max-width: none;
  }
}

/* Footer Styles */
.footer {
  background: #0b0f19;
  padding: 32px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-text {
  color: #9aa4bf;
  font-size: 14px;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: #c7d0ff;
}

.social-links a:hover {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}

.social-links a:hover svg {
  fill: #ffffff;
}

.social-links a {
  position: relative;
}

/* Tooltip */
.social-links a::after {
  content: attr(data-label);
  position: absolute;
  bottom: -42px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(15, 18, 35, 0.95);
  color: #e5e7ff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Tooltip arrow */
.social-links a::before {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(15, 18, 35, 0.95) transparent transparent transparent;
  opacity: 0;
  transition: all 0.25s ease;
}

/* Show tooltip on hover */
.social-links a:hover::after,
.social-links a:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
svg {
  width: 24px;
  height: 24px;
  color: white; /* or any color */
}