/* ============================================================
   Traidnt - Main Stylesheet
   Color palette matches the approved design (trident colors)
   ============================================================ */

:root {
  /* Brand colors */
  --primary-dark: #1b3c40;     /* Dark petroleum/teal */
  --primary-darker: #142e31;
  --primary-darkest: #0e2326;
  --accent: #5dbcad;           /* Turquoise/teal */
  --accent-hover: #4ba897;
  --accent-light: #7dd4c5;
  --cream: #f4f1eb;
  --cream-dark: #ebe5d8;
  --white: #ffffff;

  /* Semantic */
  --text-primary: #1a1a1a;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --bg-soft: #f9fafb;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Tajawal', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[dir="ltr"] body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Better Arabic typography */
html[dir="rtl"] {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

/* ============================================================
   Utility colors (Tailwind extensions)
   ============================================================ */
.bg-primary { background-color: var(--primary-dark) !important; }
.bg-primary-darker { background-color: var(--primary-darker) !important; }
.bg-primary-darkest { background-color: var(--primary-darkest) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-accent-hover { background-color: var(--accent-hover) !important; }
.bg-cream { background-color: var(--cream) !important; }
.bg-cream-dark { background-color: var(--cream-dark) !important; }

.text-primary { color: var(--primary-dark) !important; }
.text-primary-darker { color: var(--primary-darker) !important; }
.text-accent { color: var(--accent) !important; }
.text-accent-hover { color: var(--accent-hover) !important; }

.border-accent { border-color: var(--accent) !important; }
.border-primary { border-color: var(--primary-dark) !important; }

/* ============================================================
   Logo / Trident Icon
   ============================================================ */
.trident-icon {
  width: 44px;
  height: 44px;
  background-color: var(--accent);
  color: var(--primary-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
  border-radius: 8px;
  transform: rotate(-12deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.trident-icon:hover {
  transform: rotate(0deg) scale(1.05);
}

/* Larger variant used on hero */
.trident-icon-lg {
  width: 80px;
  height: 80px;
  font-size: 44px;
  border-radius: 14px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-accent {
  background-color: var(--accent);
  color: var(--primary-darker);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 2px solid var(--accent);
  text-decoration: none;
  cursor: pointer;
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -10px rgba(93, 188, 173, 0.5);
}

.btn-outline-accent {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-outline-accent:hover {
  background-color: var(--accent);
  color: var(--primary-darker);
}

.btn-primary {
  background-color: var(--primary-dark);
  color: var(--white);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 2px solid var(--primary-dark);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary:hover {
  background-color: var(--primary-darker);
  border-color: var(--primary-darker);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary-darker);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 2px solid var(--white);
  text-decoration: none;
  cursor: pointer;
}
.btn-white:hover {
  background-color: var(--cream);
  border-color: var(--cream);
  transform: translateY(-2px);
}

/* ============================================================
   Cards
   ============================================================ */
.feature-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s ease;
  height: 100%;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(27, 60, 64, 0.15);
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(93, 188, 173, 0.3);
}

.service-card .service-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(93, 188, 173, 0.1);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card:hover .service-icon {
  background-color: var(--accent);
  color: var(--white);
}

/* ============================================================
   Stats badges
   ============================================================ */
.stat-badge {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.stat-badge:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.stat-number {
  color: var(--accent);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 8px;
}

/* ============================================================
   Hero section
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(93, 188, 173, 0.15) 0%, transparent 70%);
  top: -200px;
  inset-inline-end: -200px;
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(27, 60, 64, 0.08) 0%, transparent 70%);
  bottom: -100px;
  inset-inline-start: -100px;
  border-radius: 50%;
  pointer-events: none;
}

/* Hero image circular */
.hero-image-circle {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(27, 60, 64, 0.4);
  margin: 0 auto;
}

.hero-image-circle::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.3;
  animation: rotate 20s linear infinite;
}

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

/* ============================================================
   Section headers
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(93, 188, 173, 0.1);
  color: var(--accent-hover);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.section-title {
  color: var(--primary-darker);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

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

/* ============================================================
   Live pulse indicator
   ============================================================ */
.pulse-dot {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(93, 188, 173, 0.7);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(93, 188, 173, 0);
  }
}

/* ============================================================
   Forms
   ============================================================ */
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background-color: var(--white);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(93, 188, 173, 0.15);
}

.form-input.error,
.form-textarea.error {
  border-color: #dc2626;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--primary-darker);
  margin-bottom: 8px;
  font-size: 0.9375rem;
}

.form-error {
  color: #dc2626;
  font-size: 0.8125rem;
  margin-top: 6px;
}

.alert-success {
  background-color: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.alert-error {
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* ============================================================
   Misc
   ============================================================ */
::selection {
  background-color: var(--accent);
  color: var(--white);
}

/* Smooth focus ring */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Container */
.container { width: 100%; }
@media (min-width: 640px)  { .container { max-width: 640px; } }
@media (min-width: 768px)  { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1400px; } }


/* Mobile: Full-width buttons for better UX */
@media (max-width: 640px) {
  .btn-accent,
  .btn-outline-accent,
  .btn-primary {
    width: 100%;
    padding: 14px 20px !important;
    font-size: 15px;
    justify-content: center;
  }
  
  /* Button containers - stack vertically */
  .flex.flex-wrap.gap-3,
  .flex.gap-3 {
    flex-direction: column;
    gap: 10px !important;
  }
}
