/* =========================================
   NEXORA BUSINESS WEBSITE – STYLESHEET
   ========================================= */

/* ------- GOOGLE FONTS (preconnected in HTML) ------- */

/* ------- CSS CUSTOM PROPERTIES ------- */
:root {
  /* Brand Colors */
  --color-bg:          #080c18;
  --color-bg-alt:      #0d1225;
  --color-surface:     #111828;
  --color-surface-2:   #161f35;
  --color-border:      rgba(255,255,255,0.07);

  --color-primary:     #5b6ef5;
  --color-primary-glow:#5b6ef530;
  --color-accent:      #8b5cf6;
  --color-accent-alt:  #06d6a0;

  --gradient-primary: linear-gradient(135deg, #5b6ef5 0%, #8b5cf6 100%);
  --gradient-text:    linear-gradient(90deg, #7b8aff, #b97ef5, #7b8aff);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-pad: 110px;
  --container-max: 1200px;

  /* Borders & Radius */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;

  /* Shadows */
  --shadow-card: 0 4px 32px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 40px rgba(91,110,245,0.25);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.4s var(--ease);
}

/* ------- RESET ------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: #c9d4f0;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ------- UTILITY ------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; }

.gradient-text {
  background: var(--gradient-text);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-glow);
  border: 1px solid rgba(91,110,245,0.3);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #eef2ff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #8898c0;
  max-width: 560px;
  margin: 0 auto;
}

/* ------- REVEAL ANIMATION ------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------- BUTTONS ------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 10px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(91,110,245,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(91,110,245,0.55);
}

.btn-ghost {
  background: transparent;
  color: #c9d4f0;
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  border-color: rgba(91,110,245,0.5);
  color: #fff;
  transform: translateY(-2px);
}

.btn-nav {
  background: var(--gradient-primary);
  color: #fff;
  padding: 10px 22px;
  font-size: 0.875rem;
  box-shadow: 0 2px 12px rgba(91,110,245,0.35);
}
.btn-nav:hover { transform: translateY(-2px); }

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

/* ------- NAVBAR ------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(8, 12, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #eef2ff;
  letter-spacing: -0.03em;
}
.logo-icon {
  color: var(--color-primary);
  font-size: 1.6rem;
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #8898c0;
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: #eef2ff; }
.nav-link:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #c9d4f0;
  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;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 0;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('hero-bg.png') center/cover no-repeat;
  filter: brightness(0.35) saturate(1.2);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(8,12,24,1) 0%, transparent 70%),
              radial-gradient(ellipse 60% 40% at 50% 0%, rgba(91,110,245,0.08) 0%, transparent 70%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-accent-alt);
  background: rgba(6,214,160,0.1);
  border: 1px solid rgba(6,214,160,0.25);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #8898c0;
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(17,24,40,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 48px;
  margin-top: 80px;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
  gap: 4px;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: #eef2ff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-plus {
  font-size: 1.4rem;
  color: var(--color-primary);
}
.stat-label {
  font-size: 0.8rem;
  color: #8898c0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--color-border);
}

/* Hero Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #4a5a80;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid #4a5a80;
  border-bottom: 2px solid #4a5a80;
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(5px); }
}

/* ------- ABOUT ------- */
.about { background: var(--color-bg-alt); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-card-wrap {
  display: flex;
  justify-content: center;
}
.about-glow-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card), 0 0 80px rgba(91,110,245,0.15);
  max-width: 380px;
  width: 100%;
}
.about-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1.8rem;
  animation: float-tile 4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes float-tile {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.about-badge-float {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #8898c0;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 10px 20px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent-alt);
  box-shadow: 0 0 10px var(--color-accent-alt);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.about-desc { color: #8898c0; margin-bottom: 16px; }
.about-pillars { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pillar:hover {
  border-color: rgba(91,110,245,0.35);
  box-shadow: 0 0 20px rgba(91,110,245,0.1);
}
.pillar-icon { font-size: 1.6rem; flex-shrink: 0; }
.pillar strong { display: block; color: #eef2ff; margin-bottom: 4px; font-family: var(--font-heading); font-weight: 600; }
.pillar p { font-size: 0.9rem; color: #8898c0; margin: 0; }

/* ------- SERVICES ------- */
.services { background: var(--color-bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(91,110,245,0.35);
  box-shadow: var(--shadow-card), 0 16px 48px rgba(91,110,245,0.15);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  font-size: 2.6rem;
  margin-bottom: 20px;
  display: block;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #eef2ff;
  margin-bottom: 12px;
}
.service-card p { font-size: 0.95rem; color: #8898c0; line-height: 1.7; margin-bottom: 24px; }
.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-link:hover { gap: 8px; }

/* ------- TESTIMONIALS ------- */
.testimonials { background: var(--color-bg-alt); }
.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform 0.6s var(--ease);
}
.testimonial-slide {
  min-width: 100%;
  padding: 8px 16px;
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  position: relative;
}
.quote-icon {
  font-size: 5rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.25;
  font-family: serif;
  position: absolute;
  top: 20px; left: 36px;
}
.testimonial-text {
  font-size: 1.1rem;
  color: #c9d4f0;
  line-height: 1.85;
  margin-bottom: 32px;
  font-style: italic;
  padding-top: 16px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; color: #eef2ff; font-family: var(--font-heading); font-size: 1rem; }
.testimonial-author span  { font-size: 0.85rem; color: #8898c0; }
.stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: #c9d4f0;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.slider-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: scale(1.05);
}
.slider-dots { display: flex; gap: 8px; }
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--color-border);
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
}
.dot.active, .dot:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.2);
}

/* Client Logos */
.client-logos { text-align: center; margin-top: 72px; }
.logos-label { font-size: 0.8rem; color: #4a5a80; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 24px; }
.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.logo-item {
  padding: 12px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: #4a5a80;
  letter-spacing: 0.05em;
  transition: color 0.3s, border-color 0.3s;
}
.logo-item:hover { color: #eef2ff; border-color: rgba(91,110,245,0.35); }

/* ------- CONTACT ------- */
.contact { background: var(--color-bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-desc { color: #8898c0; margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; color: #eef2ff; font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 3px; }
.contact-item span { font-size: 0.9rem; color: #8898c0; }
.contact-social { display: flex; gap: 12px; }
.social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: #8898c0;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(91,110,245,0.4);
}
.social-btn.sm { width: 36px; height: 36px; font-size: 0.8rem; }

/* Contact Form */
.contact-form-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: #8898c0; letter-spacing: 0.03em; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: #eef2ff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  resize: vertical;
}
.form-group select { appearance: none; cursor: pointer; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #3a4a70; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91,110,245,0.15);
}
.form-success {
  display: none;
  background: rgba(6,214,160,0.1);
  border: 1px solid rgba(6,214,160,0.3);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--color-accent-alt);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}
.form-success.show { display: block; animation: fadeIn 0.5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------- FOOTER ------- */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-tagline { font-size: 0.9rem; color: #4a5a80; margin: 16px 0 24px; line-height: 1.7; max-width: 260px; }
.footer-social { display: flex; gap: 10px; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #eef2ff;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a { font-size: 0.9rem; color: #4a5a80; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--color-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
  font-size: 0.85rem;
  color: #3a4a60;
  flex-wrap: wrap;
  gap: 12px;
}

/* ------- RESPONSIVE ------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 72px; }

  .nav-links {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    display: flex;
    transform: translateX(-120%);
    transition: transform 0.4s var(--ease);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1.4rem; }
  .btn-nav { display: none; }
  .hamburger { display: flex; z-index: 1001; }

  .hero-stats { padding: 20px 24px; gap: 16px; }
  .stat { padding: 0 16px; }
  .stat-number { font-size: 1.8rem; }
  .stat-divider { height: 32px; }

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

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

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

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

  .testimonial-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; }
  .stat-divider { width: 80%; height: 1px; }
}

