/**
 * Tejvant - Enterprise IT Consultancy
 * Glassmorphism + animated UI (GPU-friendly, fast)
 */

:root {
  --bg-dark: #09090b;
  --bg-card: #121214;
  --bg-elevated: #18181b;
  --border: #27272a;
  --border-light: rgba(255, 255, 255, 0.05);
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --success: #10b981;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Glass */
  --glass-bg: rgba(18, 18, 20, 0.75);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: 16px;
  --glass-blur-strong: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle mesh/grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% -20%, rgba(99, 102, 241, 0.15), transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ========== Navbar (glass) ========== */
#mainNav {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(var(--glass-blur-strong));
  -webkit-backdrop-filter: blur(var(--glass-blur-strong));
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  transition: padding 0.3s ease, background 0.25s ease, box-shadow 0.25s ease;
  z-index: 1030;
}

#mainNav.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
}

.brand-text {
  color: var(--text-primary);
}

.brand-tagline {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--border);
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: var(--accent) !important;
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--accent) !important;
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #4a9eff 100%);
  color: #fff !important;
  border-radius: 8px;
  margin-left: 0.5rem;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #5aa8ff 100%);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.nav-cta.active {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #5aa8ff 100%);
  color: #fff !important;
}

/* ========== Hero ========== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.2), transparent 55%);
  pointer-events: none;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease both;
}

.hero .lead {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 540px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #4a9eff 100%);
  border: none;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero .btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #5aa8ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.hero-visual {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  animation: fadeInUp 0.6s ease 0.25s both;
}

.hero-visual i {
  transition: transform 0.4s ease;
}

.hero-visual:hover i {
  transform: scale(1.08);
}

/* ========== Sections ========== */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-title {
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
}

/* ========== Glass cards ========== */
.card-corporate {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-corporate:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.15);
  background: rgba(24, 24, 27, 0.85);
}

.card-corporate .icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  font-size: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float 6s ease-in-out infinite;
}

.card-corporate:hover .icon-wrap {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.card-corporate h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-corporate p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ========== CTA block (glass) ========== */
.cta-block {
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.9) 0%, rgba(18, 18, 20, 0.95) 100%);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4rem;
  text-align: center;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cta-block:hover {
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25), 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(99, 102, 241, 0.3);
}

.cta-block .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #4a9eff 100%);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-block .btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #5aa8ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

/* ========== Page hero (glass) ========== */
.page-hero {
  padding: 7rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 18, 20, 0.8) 0%, transparent 100%);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ========== Footer (glass) ========== */
.site-footer {
  background: rgba(10, 14, 20, 0.6);
  backdrop-filter: blur(var(--glass-blur-strong));
  -webkit-backdrop-filter: blur(var(--glass-blur-strong));
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.footer-top {
  padding: 3rem 0 2rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  max-width: 280px;
}

.footer-social a {
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin-right: 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-heading {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact li {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact li i {
  margin-right: 0.5rem;
  color: var(--accent);
}

.footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid var(--glass-border);
}

.footer-bottom p,
.footer-bottom a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ========== Section background (glass strip) ========== */
.section.bg-card {
  background: linear-gradient(180deg, var(--glass-bg) 0%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* ========== Buttons ========== */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%) !important;
  border: none !important;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #6366f1 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-outline-light {
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
}

.btn-outline-light:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

/* ========== Forms (glass inputs) ========== */
.form-control,
.form-select {
  background: rgba(24, 24, 27, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  background: rgba(24, 24, 27, 0.95);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control::placeholder {
  color: var(--text-secondary);
}

/* Alerts (form feedback) */
.alert-success {
  background: rgba(63, 185, 80, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid var(--success);
  color: #7ee787;
  border-radius: 10px;
}

.alert-danger {
  background: rgba(248, 81, 73, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid #f85149;
  color: #ff7b72;
  border-radius: 10px;
}

/* ========== Animations (GPU-friendly) ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

/* Staggered reveal on load */
.reveal-1 {
  animation: fadeInUp 0.55s ease both;
  animation-delay: 0.05s;
}

.reveal-2 {
  animation: fadeInUp 0.55s ease both;
  animation-delay: 0.1s;
}

.reveal-3 {
  animation: fadeInUp 0.55s ease both;
  animation-delay: 0.15s;
}

.reveal-4 {
  animation: fadeInUp 0.55s ease both;
  animation-delay: 0.2s;
}

.reveal-5 {
  animation: fadeInUp 0.55s ease both;
  animation-delay: 0.25s;
}

.reveal-6 {
  animation: fadeInUp 0.55s ease both;
  animation-delay: 0.3s;
}

.reveal-7 {
  animation: fadeInUp 0.55s ease both;
  animation-delay: 0.35s;
}

.reveal-8 {
  animation: fadeInUp 0.55s ease both;
  animation-delay: 0.4s;
}

.reveal-9 {
  animation: fadeInUp 0.55s ease both;
  animation-delay: 0.45s;
}

.reveal-10 {
  animation: fadeInUp 0.55s ease both;
  animation-delay: 0.5s;
}

/* Scroll-triggered reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for scroll reveal children */
.reveal-on-scroll.reveal-delay-1 {
  transition-delay: 0.05s;
}

.reveal-on-scroll.reveal-delay-2 {
  transition-delay: 0.1s;
}

.reveal-on-scroll.reveal-delay-3 {
  transition-delay: 0.15s;
}

.reveal-on-scroll.reveal-delay-4 {
  transition-delay: 0.2s;
}

.reveal-on-scroll.reveal-delay-5 {
  transition-delay: 0.25s;
}

.reveal-on-scroll.reveal-delay-6 {
  transition-delay: 0.3s;
}

.animate-in {
  animation: fadeInUp 0.5s ease both;
}

.animate-slide-left {
  animation: slideInLeft 0.7s ease both;
}

.animate-slide-right {
  animation: slideInRight 0.7s ease both;
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

.animate-pulse {
  animation: pulseGlow 2s infinite;
}

/* Utilities */
.text-accent {
  color: var(--accent);
}

.bg-card {
  background: var(--glass-bg);
}

/* Responsive */
@media (max-width: 991.98px) {
  .section {
    padding: 3rem 0;
  }

  .hero {
    min-height: auto;
    padding: 5rem 0 3rem;
  }
}

@media (max-width: 575.98px) {
  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}