/**
 * SAJECY SOLUTIONS - BALANCED HOMEPAGE STYLES
 * Complete homepage design with rotating hero, balanced services, and all sections
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(13, 27, 42, 0.98);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  max-width: 1536px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.nav-logo a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.logo-text {
  font-size: 24px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-size: 12px;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  color: var(--gray-300);
  font-weight: 500;
  font-size: 15px;
  padding: 0.5rem 0;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-link:hover {
  color: white;
}

.nav-cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav-cta {
    display: inline-flex;
  }
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s;
}

/* ============================================
   HERO SLIDER SECTION
   ============================================ */

.hero-slider {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide.fade-out {
  opacity: 0;
}

/* Hero Backgrounds - Datacenter Theme */
.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(1.5px);
  z-index: -2;
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.92) 0%, rgba(30, 58, 138, 0.88) 50%, rgba(13, 27, 42, 0.90) 100%);
  z-index: -1;
}

/* Slide 1: Expert Data Center & Network Infrastructure Services */
.hero-slide-1::before {
  background-image: url('../images/datacenter-hero.jpg');
  background-position: center center;
  background-size: cover;
}

.hero-slide-1::after {
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.92) 0%, rgba(30, 58, 138, 0.88) 60%, rgba(13, 27, 42, 0.90) 100%);
}

/* Slide 2: Complete IT Solutions - Broader Appeal (formerly Slide 1) */
.hero-slide-2::before {
  background-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1920&q=80');
  background-position: center center;
}

.hero-slide-2::after {
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.90) 0%, rgba(30, 58, 138, 0.85) 50%, rgba(6, 182, 212, 0.25) 100%);
}

/* Slide 3: 24/7 Managed IT Services & Network Operations */
.hero-slide-3::before {
  background: linear-gradient(135deg, #0D1B2A 0%, #1E3A8A 100%);
}

.hero-slide-3::after {
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.91) 0%, rgba(30, 58, 138, 0.86) 40%, rgba(6, 182, 212, 0.30) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 160px;
  text-align: center;
}

.hero-slide h1 {
  font-size: 36px;
  line-height: 1.1;
  font-weight: 900;
  color: white;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .hero-slide h1 {
    font-size: 48px;
  }
}

@media (min-width: 1024px) {
  .hero-slide h1 {
    font-size: 56px;
  }
}

.hero-slide p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-200);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

@media (min-width: 1024px) {
  .hero-slide p {
    font-size: 20px;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Hero Navigation Dots */
.hero-nav {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.hero-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.hero-nav-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.hero-nav-dot.active {
  background: white;
  border-color: white;
  width: 32px;
  border-radius: 6px;
}

/* ============================================
   TRUST INDICATORS BAR
   ============================================ */

.trust-bar {
  background: var(--gray-800);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  text-align: center;
  padding: 0.5rem 0;
}

.trust-value {
  display: block;
  font-size: 40px;
  font-weight: 900;
  background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.trust-label {
  display: block;
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.4;
}

/* ============================================
   SERVICES GRID SECTION
   ============================================ */

.services-section {
  padding: 6rem 0;
  background: var(--primary-dark);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 36px;
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 48px;
  }
}

.section-description {
  font-size: 18px;
  color: var(--gray-300);
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Service cards inherit from design system */

/* ============================================
   VALUE PROPOSITION SECTION
   ============================================ */

.value-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--gray-800) 100%);
  position: relative;
}

/* .value-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(59, 130, 246, 0.3),
    transparent
  );
} */

.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 1024px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-column {
  padding: 2rem;
}

.value-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-bright);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.value-column h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 1rem;
}

.value-lead {
  font-size: 20px;
  color: var(--gray-300);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.value-list {
  list-style: none;
  margin-bottom: 2rem;
}

.value-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.value-list li strong {
  display: block;
  color: white;
  font-size: 18px;
  margin-bottom: 0.25rem;
}

.value-list li span {
  color: var(--gray-400);
  font-size: 14px;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--gray-800) 0%, var(--primary-dark) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-bright);
  transform: translateY(-4px);
}

.stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
  border-radius: var(--radius-md);
}

.stat-number {
  font-size: 48px;
  font-weight: 900;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  padding: 0.25rem 0;
  overflow: visible;
  display: inline-block;
}

.stat-label {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.stat-description {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
  padding: 6rem 0;
  background: var(--primary-dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-bright);
}

.testimonial-quote {
  font-size: 16px;
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.author-info h4 {
  font-size: 16px;
  color: white;
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 14px;
  color: var(--gray-400);
  margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-bright) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  filter: blur(2px);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .cta-content h2 {
    font-size: 48px;
  }
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--gray-900);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray-400);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  color: var(--gray-400);
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--primary-bright);
  color: white;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-legal {
    flex-direction: row;
  }
}

.footer-legal p {
  font-size: 14px;
  color: var(--gray-500);
  margin: 0;
}

.legal-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.legal-links a {
  font-size: 14px;
  color: var(--gray-500);
}

.legal-links span {
  color: var(--gray-600);
}

.footer-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   DROPDOWN MENU STYLES
   ============================================ */

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.arrow-icon {
  transition: transform 0.3s;
}

.dropdown-toggle[aria-expanded="true"] .arrow-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 1rem;
  background: var(--gray-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-width: 600px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  margin-top: 0.5rem;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.dropdown-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dropdown-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.dropdown-menu a {
  font-size: 14px;
  color: var(--gray-300);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.dropdown-menu a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

/* Mobile Menu Styles */
@media (max-width: 1023px) {
  .nav-menu {
    display: flex;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--gray-900);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    min-width: 100%;
    margin-top: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    border: none;
  }

  .dropdown-menu.active {
    max-height: 1000px;
    margin-top: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dropdown-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* Scroll animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
