/* style.css - Online Business Solutions */

:root {
  --primary-blue: #00AED9;
  --accent-green: #8DC63F;
  --dark-bg: #0F172A;
  --light-bg: #F8FAFC;
  --text-dark: #111827;
  --mid-grey: #64748B;
  --navy-blue: #000080;
  --white: #FFFFFF;
  --black: #000000;
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Typography */
.text-center { text-align: center; }
.text-primary { color: var(--primary-blue); }
.text-accent { color: var(--accent-green); }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; color: var(--dark-bg); }
.section-subtitle { font-size: 1.25rem; color: var(--mid-grey); margin-bottom: 3rem; max-width: 800px; margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 174, 217, 0.3);
}

.btn-primary:hover {
  background-color: #0095bc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 174, 217, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.btn-secondary:hover {
  background-color: var(--accent-green);
  color: var(--white);
  transform: translateY(-2px);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4rem 0;
}

/* Top Bar */
.top-bar {
  background-color: var(--dark-bg);
  color: var(--white);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-bar-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-links a:hover {
  color: var(--primary-blue);
}

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

.social-icons a:hover {
  color: var(--accent-green);
}

/* Header */
.site-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 50px;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 600;
  color: var(--dark-bg);
}

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

.header-cta {
  display: flex;
  gap: 1rem;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 10rem 0 8rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 174, 217, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-inline: auto;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.hero-slide.active {
  opacity: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75); /* Dark overlay for text readability */
}

/* Dots */
.hero-slider-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 2;
}

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

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-dot.active {
  background: var(--primary-blue);
  transform: scale(1.2);
}

/* Cards & Grid */

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

@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  align-items: center;
}

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 174, 217, 0.1);
  color: var(--primary-blue);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--mid-grey);
  margin-bottom: 1.5rem;
}

/* Interactive Card */
.interactive-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.interactive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-blue);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.interactive-card:hover::before {
  transform: translateY(0);
}

.interactive-card:hover h3,
.interactive-card:hover .card-icon {
  color: var(--white);
}

.interactive-card .card-icon,
.interactive-card h3 {
  transition: color 0.4s ease;
}

.interactive-card .hover-text {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--white);
  margin-top: 0;
}

.interactive-card:hover .hover-text {
  opacity: 1;
  max-height: 200px;
  transform: translateY(0);
  margin-top: 1rem;
}

/* Feature Section with Image */
.feature-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Process Grid - 4 columns */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-list .icon {
  color: var(--accent-green);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.feature-image img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Case Studies Slider Placeholder styles */
.case-study-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.slide {
  display: none;
}

.slide.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.case-study-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}

.cs-info {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cs-tag {
  display: inline-block;
  background: rgba(141, 198, 63, 0.1);
  color: var(--accent-green);
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  width: max-content;
}

.cs-stat {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1;
  margin: 1.5rem 0;
  font-family: var(--font-heading);
}

.cs-image {
  position: relative;
}

.cs-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  background: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.slider-btn:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.stars {
  color: #FFD700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
  background-color: var(--dark-bg);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col a {
  color: var(--mid-grey);
}

.footer-col a:hover {
  color: var(--primary-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--mid-grey);
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-blue);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: none;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--accent-green);
  transform: translateY(-3px);
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: white;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.08);
}

.faq-question i {
  color: var(--primary-blue);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 1.5rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Adjust based on content */
  padding-bottom: 1.5rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--dark-bg);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
  .case-study-content {
    grid-template-columns: 1fr;
  }
  .cs-info {
    padding: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Top Bar */
  .top-bar {
    display: none; /* Hide top bar on mobile to save space */
  }

  /* Header */
  .site-header {
    position: relative;
    padding: 1rem 0 !important;
  }

  .site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    height: auto;
  }

  .logo {
    display: block;
    max-width: 70%;
  }

  .logo img {
    height: auto;
    max-height: 40px;
    object-fit: contain;
  }

  .mobile-menu-btn {
    display: block;
    position: relative;
    top: auto;
    right: auto;
  }

  .main-nav {
    width: 100%;
    margin-top: 1rem;
    display: none; /* Hidden by default, toggled via JS */
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    background: var(--white);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .main-nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  .main-nav ul li:last-child {
    border-bottom: none;
  }
  
  .main-nav ul li a {
    display: block;
    padding: 1rem;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    padding-left: 2rem;
    display: none;
    background: var(--light-bg);
  }

  .has-dropdown.active .dropdown {
    display: block;
  }

  .header-cta {
    width: 100%;
    margin-top: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    display: none; /* Hide CTA initially */
  }
  
  .main-nav.active + .header-cta {
    display: flex; /* Show when menu is active */
  }

  /* Typography & Layout */
  .hero {
    padding: 6rem 0 4rem; /* Reduce padding */
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

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

  /* Fix reverse order on mobile for zig-zag layouts */
  .feature-image[style*="order: -1"] {
    order: 0 !important;
  }
  
  .feature-image[style*="order: 2"] {
    order: 0 !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .footer-col ul {
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }
  
  /* Buttons */
  .btn {
    width: auto;
    padding: 0.875rem 1.5rem;
    text-align: center;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
  }
  
  .hero-btns .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .header-cta .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Header Dropdown Styles */
.has-dropdown {
  position: relative;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-radius: 8px;
  display: none;
  min-width: 250px;
  z-index: 100;
  list-style: none;
}
.has-dropdown:hover .dropdown {
  display: block;
}
.dropdown li {
  margin-bottom: 0.5rem;
}
.dropdown li:last-child {
  margin-bottom: 0;
}
.dropdown a {
  color: var(--dark-bg) !important;
  display: block;
}
.dropdown a:hover {
  color: var(--primary-color) !important;
}


.has-dropdown:hover .dropdown {
  display: block !important;
}


.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}



.site-header .main-nav ul li.has-dropdown:hover .dropdown {
  display: block !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}



.site-header .main-nav ul li.has-dropdown:hover .dropdown {
  display: block !important;
}

/* Fix Hero/Banner Layout */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Final UI Fixes */
.has-dropdown { position: relative; }
.has-dropdown .dropdown {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 8px;
  min-width: 260px;
  z-index: 9999;
  list-style: none;
  margin: 0;
}
.has-dropdown:hover .dropdown { display: block !important; }
.dropdown li { margin-bottom: 0.75rem; }
.dropdown li:last-child { margin-bottom: 0; }
.dropdown a { color: #333 !important; font-weight: 500; transition: color 0.2s; }
.dropdown a:hover { color: var(--primary-color) !important; }

/* Hero CTA Fix */
.hero { 
  position: relative; 
  min-height: 600px; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  text-align: center;
  color: white;
}
.hero-bg-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}
.hero-content { position: relative; z-index: 10; max-width: 800px; margin: 0 auto; }

/* Fix for unclickable buttons in hero slider and other CTA sections */
.hero-slide .container {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.hero-overlay {
  z-index: 1;
  pointer-events: none;
}

.hero-btns {
  position: relative;
  z-index: 20;
}

.cta-section .container {
  position: relative;
  z-index: 10;
}

.hero {
  position: relative;
}
.hero .container {
  position: relative;
  z-index: 10;
}

/* Force highest z-index and clickability on ALL buttons */
.btn {
  position: relative !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
}

/* Ensure nothing covers the header */
.site-header {
  position: relative !important;
  z-index: 99999 !important;
}

.header-cta {
  position: relative !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
}

/* Ensure the hero container itself doesn't trap clicks */
.hero {
  pointer-events: none;
}
.hero * {
  pointer-events: auto;
}
.hero-overlay {
  pointer-events: none !important;
}
.hero-bg-img {
  pointer-events: none !important;
}
