/* ============================================
   KRS Consultants - Main Stylesheet
   Theme: Troma-inspired clean rebuild
   Colors, fonts, and layout matching original
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #015dc7;
  --primary-hover: #6747ee;
  --secondary: #0289ea;
  --accent: #ff5a3c;
  --gradient-from: #015dc7;
  --gradient-to: #a1a0ff;
  --icon-gradient-from: #4cabff;
  --icon-gradient-to: #277ff9;
  --light-bg: #f3f3ff;
  --dark-bg: #1a1a2e;
  --text-dark: #333333;
  --text-muted: #666666;
  --text-light: #ffffff;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Rubik', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

/* --- Section Utilities --- */
.section-padding {
  padding: 100px 0;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 10px;
  display: inline-block;
  position: relative;
}

.section-subtitle::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 50%;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.section-subtitle.no-line::before {
  display: none;
}

.section-subtitle.white {
  color: #ffffff;
}

.section-subtitle.white::before {
  background: #ffffff;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-title.white {
  color: #ffffff;
}

.text-gradient {
  background: linear-gradient(135deg, var(--icon-gradient-from), var(--icon-gradient-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn-primary-gradient {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(90deg, var(--gradient-from), var(--gradient-to));
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary-gradient:hover {
  background: linear-gradient(90deg, var(--gradient-to), var(--gradient-from));
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(1, 93, 199, 0.35);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 15px 0;
  background: transparent;
}

.site-header.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  max-height: 55px;
  transition: all 0.3s ease;
}

.site-logo .logo-light {
  display: block;
}

.site-logo .logo-dark {
  display: none;
}

.site-header.scrolled .site-logo .logo-light {
  display: none;
}

.site-header.scrolled .site-logo .logo-dark {
  display: block;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-nav ul li {
  position: relative;
}

.main-nav ul li a {
  display: block;
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  transition: color 0.3s ease;
}

.site-header.scrolled .main-nav ul li a {
  color: var(--text-dark);
}

.main-nav ul li a:hover,
.main-nav ul li.active > a {
  color: var(--primary);
}

/* Dropdown */
.main-nav ul li .dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  min-width: 280px;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border-radius: 5px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.main-nav ul li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav ul li .dropdown li a {
  color: var(--text-dark);
  padding: 8px 25px;
  font-size: 14px;
  border-left: 3px solid transparent;
}

.main-nav ul li .dropdown li a:hover {
  color: var(--primary);
  background: var(--light-bg);
  border-left-color: var(--primary);
}

/* Mobile close button - hidden on desktop */
.mobile-nav-close {
  display: none;
}

/* Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #ffffff;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.site-header.scrolled .mobile-toggle span {
  background: var(--text-dark);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../images/hero-bg.jpg') center center / cover no-repeat;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 44, 0.75);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 35px;
  line-height: 1.15;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-btn {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.9s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  background: var(--light-bg);
}

.service-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(1, 93, 199, 0.12);
}

.service-icon {
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(76, 171, 255, 0.1), rgba(39, 127, 249, 0.1));
}

.service-icon i {
  background: linear-gradient(135deg, var(--icon-gradient-from), var(--icon-gradient-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-card h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.service-card .read-more {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.service-card:hover .read-more {
  gap: 10px;
  color: var(--primary-hover);
}

/* ============================================
   ABOUT / STATS SECTION
   ============================================ */
.stats-section {
  position: relative;
  background: url('../images/hero-bg.jpg') center center / cover no-repeat fixed;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1, 50, 130, 0.92) 0%, rgba(30, 20, 100, 0.92) 100%);
}

.stats-section .container {
  position: relative;
  z-index: 2;
}

.about-text h3 {
  color: #ffffff;
  font-size: 36px;
  margin-bottom: 20px;
}

.about-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.8;
}

.counter-box {
  text-align: center;
  padding: 35px 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  height: 100%;
}

.counter-box:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.counter-box .counter-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.counter-box .counter-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin-bottom: 5px;
}

.counter-box .counter-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
.features-section {
  background: var(--light-bg);
}

.feature-box {
  padding: 35px 25px;
  text-align: center;
  border-radius: 8px;
  transition: all 0.4s ease;
  height: 100%;
}

.feature-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.feature-box:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.feature-box .feature-icon {
  font-size: 42px;
  margin-bottom: 20px;
  display: inline-block;
}

.feature-box h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  background: linear-gradient(135deg, var(--gradient-from) 0%, var(--primary-hover) 100%);
  position: relative;
}

.contact-info h6 {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.contact-info h3 {
  color: #ffffff;
  font-size: 36px;
  margin-bottom: 50px;
  line-height: 1.3;
}

.contact-meta-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 5px;
}

.contact-meta-value {
  color: #ffffff;
  font-size: 22px;
  font-weight: 500;
}

.contact-meta-value a {
  color: #ffffff;
}

.contact-meta-value a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Contact Form */
.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 15px;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .btn-submit {
  display: inline-block;
  padding: 14px 40px;
  background: #ffffff;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-form .btn-submit:hover {
  background: var(--dark-bg);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #0c0c1d;
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-widget h5 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.footer-widget h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-widget p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links li a::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  color: var(--primary);
}

.footer-links li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px 0;
  margin-top: 60px;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up.delay-1 { transition-delay: 0.1s; }
.fade-in-up.delay-2 { transition-delay: 0.2s; }
.fade-in-up.delay-3 { transition-delay: 0.3s; }
.fade-in-up.delay-4 { transition-delay: 0.4s; }
.fade-in-up.delay-5 { transition-delay: 0.5s; }
.fade-in-up.delay-6 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .section-title {
    font-size: 36px;
  }
  .hero-title {
    font-size: 46px;
  }
}

@media (max-width: 991px) {
  .section-padding {
    padding: 70px 0;
  }

  .section-title {
    font-size: 32px;
  }

  .hero-title {
    font-size: 38px;
  }

  .counter-box .counter-number {
    font-size: 36px;
  }

  /* Mobile Navigation */
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    padding: 80px 25px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 999;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .main-nav ul li a {
    color: var(--text-dark);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .main-nav ul li .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 15px;
    display: none;
  }

  .main-nav ul li .dropdown.show {
    display: block;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .mobile-overlay.active {
    display: block;
  }

  .mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
    display: block;
  }

  .contact-info {
    margin-bottom: 50px;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 50px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-section {
    min-height: 80vh;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .about-text h3 {
    font-size: 28px;
  }

  .contact-info h3 {
    font-size: 28px;
  }

  .counter-box .counter-number {
    font-size: 32px;
  }
}
