/* =========================================================
   SIFOTECH TECHNICAL SERVICES — Main Stylesheet
   Theme: Deep Navy + Crimson Red Engineering Consultancy
   ========================================================= */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --navy:         #0F1923;
  --navy-2:       #162131;
  --navy-3:       #1D2D40;
  --navy-4:       #243550;
  --red:          #C0392B;
  --red-dark:     #A93226;
  --red-light:    #FF7A6B; /* AA contrast (>=4.8:1) on all dark card backgrounds */
  --red-glow:     rgba(192, 57, 43, 0.12);
  --silver:       #BDC3C7;
  --silver-dark:  #95A5A6;
  --silver-faint: rgba(189, 195, 199, 0.15);
  --white:        #FFFFFF;
  --white-90:     rgba(255, 255, 255, 0.90);
  --white-60:     rgba(255, 255, 255, 0.60);
  --white-10:     rgba(255, 255, 255, 0.06);
  --border:       rgba(189, 195, 199, 0.14);
  --border-hover: rgba(189, 195, 199, 0.30);
  --font-body:    'IBM Plex Sans', sans-serif;
  --radius:       8px;
  --radius-lg:    14px;
  --radius-xl:    20px;
  --shadow:       0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-red:   0 6px 24px rgba(192, 57, 43, 0.30);
  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-h:     72px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--navy);
  color: var(--white-90);
  line-height: 1.6;
  overflow-x: hidden;
}

img    { max-width: 100%; display: block; }
a      { text-decoration: none; color: inherit; }
ul     { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.text-red    { color: var(--red-light); }
.left-align  { text-align: left; }

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

.section { padding: 100px 0; }

/* ===== SCROLL ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].animated,
[data-animate].active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--border-hover);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red-light);
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--white-10);
  color: var(--silver);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--white-10);
  border-color: var(--silver);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  color: var(--white-90);
  border-color: rgba(255,255,255,0.2);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-lg  { padding: 16px 32px; font-size: 15px; }
.btn-sm  { padding: 8px 18px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  background: var(--red-glow);
  color: var(--red-light);
  border: 1px solid rgba(192, 57, 43, 0.35);
  border-radius: 100px;
  padding: 5px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-desc {
  font-size: 16px;
  color: var(--silver-dark);
  line-height: 1.75;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: rgba(15, 25, 35, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(15, 25, 35, 0.97);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}
.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 26px;
  color: var(--red);
  line-height: 1;
  transition: transform 0.4s ease;
}
.navbar-logo:hover .logo-icon { transform: rotate(15deg); }
.logo-text { line-height: 1.15; }
.logo-main {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.logo-sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--red-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--silver);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: var(--white-10);
}
.navbar-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  padding-top: var(--navbar-h);
  overflow: hidden;
}

/* Circuit/grid background pattern */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192, 57, 43, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 57, 43, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(189, 195, 199, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189, 195, 199, 0.025) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  mask-image: radial-gradient(ellipse 90% 90% at 30% 50%, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 30% 50%, black 20%, transparent 90%);
}

/* Red diagonal accent */
.hero-diagonal {
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 55%,
    rgba(192, 57, 43, 0.06) 55%,
    rgba(192, 57, 43, 0.06) 60%,
    rgba(192, 57, 43, 0.03) 60%,
    rgba(192, 57, 43, 0.03) 65%,
    transparent 65%
  );
  pointer-events: none;
}
.hero-diagonal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(192, 57, 43, 0.07) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--silver);
  margin-bottom: 32px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-light);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--silver-dark);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 40px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dark);
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--silver-dark), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.8; }
  50%       { transform: scaleY(0.4); opacity: 0.2; }
}

/* ===== STATS ===== */
.stats-section {
  background: var(--navy-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  text-align: center;
  padding: 48px 24px;
  border-right: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.stat-item:hover::before { transform: scaleX(1); }
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--white-10); }
.stat-icon {
  font-size: 26px;
  color: var(--red);
  margin-bottom: 14px;
}
.stat-number {
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 12px;
  color: var(--silver-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ===== SERVICES ===== */
.services-section { background: var(--navy); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-dark), var(--red-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  border-color: rgba(192, 57, 43, 0.40);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: var(--red-glow);
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--red-light);
  margin-bottom: 22px;
  transition: var(--transition);
  flex-shrink: 0;
}
.service-card:hover .service-icon {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.service-card > p {
  font-size: 14px;
  color: var(--silver-dark);
  line-height: 1.65;
  margin-bottom: 20px;
}
.service-sub-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  flex: 1;
}
.service-sub-items li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--silver);
}
.service-sub-items li i {
  color: var(--red);
  font-size: 10px;
  flex-shrink: 0;
  width: 10px;
}
.show-more-btn {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--red-light);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
}
.show-more-btn:hover { color: var(--white); }
.show-more-btn i { font-size: 11px; transition: transform 0.3s ease; }
.show-more-btn[data-expanded="true"] i { transform: rotate(180deg); }

/* ===== WHY CHOOSE US ===== */
.why-section { background: var(--navy-2); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  pointer-events: none;
}
.why-card:hover {
  border-color: rgba(192, 57, 43, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.why-icon {
  width: 56px; height: 56px;
  background: var(--red-glow);
  border: 1px solid rgba(192, 57, 43, 0.30);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--red-light);
  transition: var(--transition);
  flex-shrink: 0;
}
.why-card:hover .why-icon {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.why-card p {
  font-size: 15px;
  color: var(--silver-dark);
  line-height: 1.7;
}

/* ===== ABOUT ===== */
.about-section {
  background: var(--navy);
  border-top: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-story .section-tag { margin-bottom: 16px; }
.about-story .section-title { margin-bottom: 24px; }
.about-story p {
  font-size: 15px;
  color: var(--silver-dark);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.highlight-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: var(--transition);
}
.highlight-card:hover {
  border-color: rgba(192, 57, 43, 0.35);
  transform: translateX(4px);
}
.highlight-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  background: var(--red-glow);
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--red-light);
}
.highlight-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.highlight-body p {
  font-size: 13px;
  color: var(--silver-dark);
  line-height: 1.65;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  background: var(--navy-2);
  border-top: 1px solid var(--border);
}
.testimonials-carousel { position: relative; }
.testimonials-track { position: relative; min-height: 280px; }
.testimonial-card {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: none;
  animation: fadeInCard 0.5s ease;
}
.testimonial-card.active { display: block; }
@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.testimonial-stars {
  color: #F39C12;
  font-size: 17px;
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}
.testimonial-card blockquote {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--white-90);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 32px;
  padding-left: 24px;
  border-left: 3px solid var(--red);
  position: relative;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy-4);
  border: 2px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--silver-dark);
  flex-shrink: 0;
}
.author-info { display: flex; flex-direction: column; gap: 3px; }
.author-info strong { font-size: 16px; color: var(--white); }
.author-info span   { font-size: 13px; color: var(--silver-dark); }
.author-location {
  font-size: 12px !important;
  color: var(--red-light) !important;
  display: flex;
  align-items: center;
  gap: 5px;
}
.author-location i { font-size: 10px; }
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-3);
  border: 1px solid var(--border);
  color: var(--silver-dark);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.carousel-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: scale(1.08);
}
.carousel-dots { display: flex; gap: 8px; }
.cdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--navy-4);
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: var(--transition);
}
.cdot.active {
  background: var(--red);
  border-color: var(--red);
  width: 28px;
  border-radius: 4px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, #1A0A07 0%, #2C0E0A 30%, var(--navy-2) 70%, var(--navy-3) 100%);
  border-top: 1px solid rgba(192, 57, 43, 0.25);
  border-bottom: 1px solid rgba(192, 57, 43, 0.25);
  padding: 80px 0;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner-text h2 {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.cta-banner-text p {
  font-size: 16px;
  color: var(--silver-dark);
  max-width: 480px;
  line-height: 1.7;
}
.cta-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ===== CONTACT ===== */
.contact-section { background: var(--navy); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.contact-form-wrap {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--silver);
}
.req { color: var(--red-light); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-size: 14px;
  transition: var(--transition);
  width: 100%;
  outline: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(189,195,199,0.35); }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23BDC3C7'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group select option { background: var(--navy-3); color: var(--white); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--red-light);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}
.field-error {
  font-size: 12px;
  color: var(--red-light);
  min-height: 16px;
}
.form-success {
  display: none;
  background: rgba(39, 174, 96, 0.10);
  border: 1px solid rgba(39, 174, 96, 0.30);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: #2ECC71;
  font-size: 14px;
  margin-top: 20px;
  gap: 16px;
  align-items: flex-start;
}
.form-success.visible { display: flex; }
.form-success i { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.form-success strong { display: block; font-size: 15px; margin-bottom: 4px; }
.form-success p { color: rgba(46,204,113,0.8); margin: 0; font-size: 13px; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.contact-info-card:hover { border-color: var(--border-hover); }
.contact-info-card.primary-card {
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.10), var(--navy-2));
  border-color: rgba(192, 57, 43, 0.30);
}
.contact-info-icon {
  width: 44px; height: 44px;
  background: var(--red-glow);
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--red-light);
  margin-bottom: 14px;
}
.contact-info-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.contact-link-lg {
  display: block;
  padding: 10px 0;
  line-height: 1.3;
  font-size: 22px;
  font-weight: 700;
  color: var(--red-light);
  margin-bottom: 6px;
  transition: color 0.2s;
}
.contact-link-lg:hover { color: var(--white); }
.contact-link {
  display: block;
  padding: 12px 0;
  min-height: 44px;
  box-sizing: border-box;
  font-size: 14px;
  color: var(--red-light);
  margin-bottom: 6px;
  transition: color 0.2s;
}
.contact-link:hover { color: var(--white); }
.contact-info-card p {
  font-size: 13px;
  color: var(--silver-dark);
  line-height: 1.6;
}
.location-text {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  margin-bottom: 4px !important;
}
.contact-accreditations {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.contact-accreditations h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--silver-dark);
  margin-bottom: 16px;
}
.accred-items { display: flex; flex-direction: column; gap: 10px; }
.accred-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--silver);
  font-weight: 500;
}
.accred-item i { color: var(--red-light); width: 14px; }

/* ===== FOOTER ===== */
.footer {
  background: #08111A;
  border-top: 1px solid var(--border);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 24px;
  color: var(--red);
}
.footer-logo:hover .logo-icon-foot { transform: rotate(15deg); }
.footer-tagline {
  font-size: 14px;
  color: var(--silver-dark);
  line-height: 1.75;
  margin-bottom: 24px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  background: var(--navy-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--silver-dark);
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-col h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: var(--silver-dark);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--red-light); }
.footer-contact-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--silver-dark);
}
.footer-contact-item i {
  color: var(--red);
  width: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-contact-item a { color: var(--silver-dark); transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--red-light); }
.footer-cta-btn { margin-top: 4px; }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--silver-dark);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 12px; align-items: center; }
.footer-bottom-links a { color: var(--silver-dark); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--red-light); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.45);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--red-dark);
  transform: translateY(-3px) !important;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--navy-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--silver-dark); }

/* ===== SELECTION ===== */
::selection { background: var(--red); color: var(--white); }

/* ===== RESPONSIVE — TABLET 1100px ===== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ===== RESPONSIVE — 900px ===== */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stats-grid .stat-item:last-child { border-bottom: none; }

  .why-grid      { grid-template-columns: 1fr; }
  .about-grid    { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid  { grid-template-columns: 1fr; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== RESPONSIVE — MOBILE 768px ===== */
@media (max-width: 768px) {
  :root { --navbar-h: 64px; }
  .section { padding: 72px 0; }

  .hamburger { display: flex; }
  .navbar-nav {
    position: fixed;
    top: var(--navbar-h); left: 0; right: 0;
    background: rgba(15, 25, 35, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
  }
  .navbar-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link { width: 100%; padding: 12px 16px; font-size: 16px; }
  .navbar-cta { display: none; }

  .hero-content { padding: 60px 24px 80px; }
  .hero-title { letter-spacing: -0.02em; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .stats-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid  { grid-template-columns: 1fr; }
  .form-row  { grid-template-columns: 1fr; }

  .testimonial-card { padding: 28px 22px; }
  .testimonial-card blockquote { font-size: 15px; padding-left: 16px; }

  .cta-banner-actions { flex-direction: column; width: 100%; }
  .cta-banner-actions .btn { justify-content: center; }

  .contact-form-wrap { padding: 28px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .back-to-top { bottom: 20px; right: 16px; }
}

@media (max-width: 480px) {
  .hero-diagonal { display: none; }
  .stat-item { padding: 32px 16px; }
}

/* ===== PRELOADER ===== */
#preloader { position:fixed; top:0; left:0; width:100%; height:100%; background:#0F1923; display:flex; align-items:center; justify-content:center; z-index:9999; transition:opacity 0.5s; }
#preloader.hidden { opacity:0; pointer-events:none; }
.spinner { border:4px solid rgba(255,255,255,0.1); border-top:4px solid #C0392B; border-radius:50%; width:50px; height:50px; animation:spin 0.8s linear infinite; }
@keyframes spin { to{transform:rotate(360deg)} }

/* ===== HERO CANVAS ===== */
#hero-canvas { position:absolute; top:0; left:0; width:100%; height:100%; z-index:1; pointer-events:none; }
.hero { position:relative; overflow:hidden; }
.hero > .container { position:relative; z-index:2; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float { position:fixed; width:60px; height:60px; bottom:30px; right:30px; background:#25D366; color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:28px; box-shadow:2px 2px 12px rgba(0,0,0,0.3); z-index:1000; text-decoration:none; animation:wapulse 2s infinite; }
.whatsapp-float:hover { transform:scale(1.1); background:#128C7E; }
@keyframes wapulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,0.7)} 70%{box-shadow:0 0 0 12px rgba(37,211,102,0)} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0)} }
@media(max-width:768px){ .whatsapp-float{width:50px;height:50px;bottom:20px;right:20px;font-size:24px;} }

/* ── ANIMATED AVATAR RINGS ───────────────────────────────── */
.team-photo, .author-avatar, .testi-avatar, .agent-avatar { position: relative; }
.team-photo::after, .author-avatar::after, .testi-avatar::after, .agent-avatar::after { content:''; position:absolute; inset:-5px; border-radius:50%; border:2px solid #C0392B; opacity:0; animation:avatarRing 2.5s ease-in-out infinite; }
@keyframes avatarRing { 0%,100%{transform:scale(1);opacity:0.55} 50%{transform:scale(1.12);opacity:0} }

/* ── HERO ANIMATED ICON ──────────────────────────────────── */
.hero-icon-animated {
  width: 110px; height: 110px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
  backdrop-filter: blur(10px); border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.8rem; animation: heroFloat 4s ease-in-out infinite;
  box-shadow: 0 20px 50px rgba(0,0,0,.35); border: 1.5px solid rgba(255,255,255,.15);
}
.hero-icon-animated i { font-size: 54px; color: #fff; animation: hiPulse 3s ease-in-out infinite; }
@keyframes heroFloat { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-18px) rotate(4deg)} }
@keyframes hiPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.82;transform:scale(1.1)} }

/* ── STAT ICON WRAPPER ───────────────────────────────────── */
.stat-icon-wrapper {
  width: 68px; height: 68px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem; animation: siBounce 2.2s ease-in-out infinite;
}
.stat-icon-wrapper .stat-icon { background: none; width: auto; height: auto; box-shadow: none; }
@keyframes siBounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }

/* ── GRADIENT SERVICE CARDS ──────────────────────────────── */
.service-card {
  position: relative; min-height: 300px; border-radius: 24px;
  padding: 2.8rem 2rem 2rem; overflow: hidden; cursor: pointer;
  transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s;
  border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; align-items: flex-start; background: transparent;
}
.card-gradient-bg { position: absolute; inset: 0; z-index: 1; transition: transform .4s; border-radius: 24px; }
.service-card:hover .card-gradient-bg { transform: scale(1.06); }
.card-grad-1 { background: linear-gradient(135deg,#0F1923 0%,#1A1A2E 55%,#C0392B 100%); }
.card-grad-2 { background: linear-gradient(135deg,#0F1923 0%,#1A2E1A 55%,#BDC3C7 80%,#C0392B 100%); }
.card-grad-3 { background: linear-gradient(135deg,#1A0F0F 0%,#2E1A0F 55%,#C0392B 100%); }
.card-grad-4 { background: linear-gradient(135deg,#0F1A1A 0%,#0F2E2E 55%,#BDC3C7 100%); }
.card-grad-5 { background: linear-gradient(135deg,#1A1A0F 0%,#2E2E1A 55%,#C0392B 100%); }
.card-grad-6 { background: linear-gradient(135deg,#0F0F1A 0%,#1A1A2E 55%,#BDC3C7 80%,#C0392B 100%); }
.service-icon-container {
  position: relative; z-index: 3; width: 76px; height: 76px;
  margin-bottom: 1.6rem; animation: scFloat 3.2s ease-in-out infinite;
}
.service-icon-container i { font-size: 58px; color: rgba(255,255,255,.92); display: block; animation: scGlow 2.4s ease-in-out infinite; }
@keyframes scFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-13px)} }
@keyframes scGlow { 0%,100%{filter:drop-shadow(0 0 8px rgba(255,255,255,.25));opacity:1} 50%{filter:drop-shadow(0 0 18px rgba(255,255,255,.55));opacity:.9} }
.service-badge {
  position: relative; z-index: 3; background: linear-gradient(135deg,#C0392B,#96281B);
  color: #fff; padding: .6rem 1.3rem; border-radius: 8px; font-weight: 700;
  font-size: .82rem; letter-spacing: .8px; text-transform: uppercase;
  display: inline-block; box-shadow: 0 4px 14px rgba(192,57,43,.45); margin-bottom: .8rem;
}
.service-description { position: relative; z-index: 3; color: rgba(255,255,255,.82); line-height: 1.65; font-size: .93rem; flex: 1; }
.service-link-card {
  position: relative; z-index: 3; color: rgba(255,255,255,.75); font-size: .88rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .4rem; padding: 1rem 0; min-height: 44px; box-sizing: border-box; transition: color .3s, gap .3s;
}

/* ============================================================
   ENHANCED HERO — Floating Icon Constellation (sifotech-technical)
   ============================================================ */

.hero-central-icon-stt {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stt-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(192,57,43,0.3), rgba(231,76,60,0.2));
  border: 2px solid rgba(192,57,43,0.55);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #f87171;
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 2;
  animation: sttPulse 3s ease-in-out infinite;
}
.stt-ring {
  position: absolute;
  inset: -12px;
  border-radius: 36px;
  border: 2px dashed rgba(192,57,43,0.4);
  animation: sttSpin 12s linear infinite;
}
@keyframes sttPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.4); }
  50%      { box-shadow: 0 0 0 18px rgba(192,57,43,0); }
}
@keyframes sttSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-constellation-stt {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-constellation-stt .constellation-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(192,57,43,0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  backdrop-filter: blur(6px);
}
.stt-ci-1 { top: 10%; left: 5%;  color: #f87171; animation: sttfloat1 7s ease-in-out infinite; }
.stt-ci-2 { top: 25%; left: 15%; color: #fbbf24; animation: sttfloat2 9s ease-in-out infinite; }
.stt-ci-3 { top: 62%; left: 5%;  color: #60a5fa; animation: sttfloat3 8s ease-in-out infinite; }
.stt-ci-4 { top: 78%; left: 20%; color: #fde68a; animation: sttfloat1 10s ease-in-out infinite; }
.stt-ci-5 { top: 8%;  right: 6%; color: #f97316; animation: sttfloat2 8.5s ease-in-out infinite; }
.stt-ci-6 { top: 28%; right: 5%; color: #a78bfa; animation: sttfloat3 9.5s ease-in-out infinite; }
.stt-ci-7 { top: 65%; right: 9%; color: #34d399; animation: sttfloat1 7.5s ease-in-out infinite; }
.stt-ci-8 { top: 82%; right: 20%;color: #38bdf8; animation: sttfloat2 11s ease-in-out infinite; }

@keyframes sttfloat1 {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(6deg); }
}
@keyframes sttfloat2 {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-24px) rotate(-8deg); }
}
@keyframes sttfloat3 {
  0%,100% { transform: translateY(0); }
  33%      { transform: translateY(-14px) rotate(5deg); }
  66%      { transform: translateY(-8px) rotate(-4deg); }
}

.hero-trust-badges-stt {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.trust-badge-item-stt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.trust-badge-item-stt i { color: #f87171; font-size: 0.85rem; }

.scroll-cue-line-stt {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  margin: 0 auto 0.4rem;
  animation: sttLinePulse 2s ease-in-out infinite;
}
@keyframes sttLinePulse {
  0%,100% { opacity: 0.6; }
  50%      { opacity: 1; }
}
.service-link-card:hover { color: #C0392B; gap: .7rem; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 32px 64px rgba(0,0,0,.45); }

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: fixed; top: -48px; left: 12px; z-index: 100000;
  background: var(--red); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 8px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, .cdot:focus-visible {
  outline: 2px solid #2DD4BF; outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  [data-aos] { opacity: 1 !important; transform: none !important; }
  [data-animate] { opacity: 1; transform: none; }
  #cursor-glow, .sifo-orb, .sifo-hero-rings, .sifo-scan-line { display: none !important; }
}

/* Fallback: if the AOS library fails to load, never leave content hidden */
.no-aos [data-aos] { opacity: 1 !important; transform: none !important; }

/* Footer/legal link tap targets */
.footer-col ul li a, .footer-bottom-links a, .footer-contact-item a { display: inline-block; padding: 11px 0; }
.btn-sm { min-height: 44px; }
.navbar-logo { min-height: 44px; }

/* Hero logo tile (replaces the compass icon) */
/* premium.css forces `.hero .container > div { width:100% }`; keep the tile its own size */
.hero .container > .hero-central-icon-stt {
  width: 280px !important; max-width: 78vw !important; height: 130px;
  flex-direction: row !important; margin: 0 auto 1.5rem !important;
}
.stt-icon.stt-logo {
  width: 100%; height: 100%;
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(235,240,240,.92));
  border: 2px solid rgba(20,184,166,.55);
}
.stt-icon.stt-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; display: block; }
.stt-logo { animation: sttLogoPulse 3s ease-in-out infinite; }
@keyframes sttLogoPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(20,184,166,.35); }
  50%      { box-shadow: 0 0 0 18px rgba(20,184,166,0); }
}
.hero-central-icon-stt .stt-ring { border-radius: 34px; border-color: rgba(20,184,166,.4); }
@media (max-width: 480px) { .hero .container > .hero-central-icon-stt { height: 108px; } }
