/*
* HiStack - Company Profile Theme
* Author: HiStack Team
* Version: 1.0
*/

/*--------------------------------------------------------------
# Global
--------------------------------------------------------------*/
:root {
  --primary-color: #2563eb;
  --primary-color-light: #3b82f6;
  --primary-color-dark: #1d4ed8;
  --secondary-color: #10b981;
  --dark-color: #111827;
  --light-color: #f9fafb;
  --gray-color: #6b7280;
  --gray-light-color: #e5e7eb;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --body-bg: #ffffff;
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--body-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-color-dark);
  text-decoration: none;
}

.btn {
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-color-dark);
  border-color: var(--primary-color-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.section-heading {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  color: var(--dark-color);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-color);
}

.bg-light {
  background-color: var(--light-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

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

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.top-bar {
  background-color: #1a1a1a;
  padding: 0.5rem 0;
  color: #fff;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.top-bar a:hover {
  color: var(--primary-color-light);
  transform: translateY(-1px);
}

.top-social-links a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  margin: 0 5px;
}

.top-social-links a:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.navbar {
  padding: 1rem 0;
  background-color: #000000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  transition: all 0.3s ease;
}

.logo {
  max-height: 45px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.7rem 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .active .nav-link::after {
  width: 80%;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .active .nav-link {
  color: #ffffff;
}

.navbar-nav .dropdown-menu {
  border: none;
  border-radius: 0.8rem;
  background-color: #1a1a1a;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  padding: 1rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  display: block;
  visibility: hidden;
}

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

.navbar-nav .dropdown-item {
  font-weight: 500;
  padding: 0.7rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  padding-left: 2rem;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-slider {
  position: relative;
  height: 700px;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-swiper .swiper-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-swiper .swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  color: #fff;
  max-width: 800px;
  padding: 2rem 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.25rem;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.swiper-pagination-bullet-active {
  background: var(--primary-color);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-section {
  padding: 5rem 0;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services-section {
  padding: 5rem 0;
}

.service-card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  padding: 1.5rem;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/*--------------------------------------------------------------
# Solutions Section
--------------------------------------------------------------*/
.solutions-section {
  padding: 5rem 0;
}

.solution-card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.solution-card .card-img-top {
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats-section {
  padding: 3.5rem 0;
}

.stats-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.stats-text {
  font-size: 1.125rem;
  font-weight: 500;
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio-section {
  padding: 5rem 0;
}

.portfolio-item {
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-img img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials-section {
  padding: 5rem 0;
}

.testimonial-item {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.testimonial-author-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.testimonial-author-placeholder {
  width: 50px;
  height: 50px;
  font-size: 1.25rem;
  font-weight: 600;
}

.testimonial-swiper .swiper-pagination {
  position: relative;
  margin-top: 30px;
}

/*--------------------------------------------------------------
# Blog Section
--------------------------------------------------------------*/
.blog-section {
  padding: 5rem 0;
}

.blog-card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-card .card-img-top {
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.blog-title-link {
  color: var(--dark-color);
  transition: var(--transition);
}

.blog-title-link:hover {
  color: var(--primary-color);
}

/*--------------------------------------------------------------
# CTA Section
--------------------------------------------------------------*/
.cta-section {
  padding: 4rem 0;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.8);
  padding-bottom: 1.5rem;
}

.footer-logo img {
  max-height: 40px;
}

.footer-heading {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color-light);
  text-decoration: none;
  padding-left: 5px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--primary-color);
}

.footer-bottom {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--primary-color-light);
}

/*--------------------------------------------------------------
# Back to Top Button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: var(--primary-color);
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

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

.back-to-top:hover {
  background-color: var(--primary-color-dark);
  color: #fff;
}

/*--------------------------------------------------------------
# Cookie Consent
--------------------------------------------------------------*/
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 1rem 0;
  z-index: 9999;
  display: none;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 991.98px) {
  .hero-slider {
    height: 600px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-text {
    font-size: 1.125rem;
  }
  
  .section-title {
    font-size: 1.875rem;
  }
  
  .stats-number {
    font-size: 2.5rem;
  }

  .navbar {
    padding: 0.8rem 0;
  }

  .navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: transparent;
    position: relative;
    z-index: 1001;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
  }

  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
  }

  .navbar-toggler-icon::before {
    transform: translateY(-8px);
  }

  .navbar-toggler-icon::after {
    transform: translateY(8px);
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(-100%);
    transition: all 0.4s ease;
    z-index: 1000;
  }

  .navbar-collapse.show {
    transform: translateX(0);
  }

  .navbar-nav {
    margin-top: 2rem;
  }

  .navbar-nav .nav-item {
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
  }

  .navbar-collapse.show .navbar-nav .nav-item {
    opacity: 1;
    transform: translateX(0);
  }

  .navbar-nav .nav-item:nth-child(1) { transition-delay: 0.1s; }
  .navbar-nav .nav-item:nth-child(2) { transition-delay: 0.2s; }
  .navbar-nav .nav-item:nth-child(3) { transition-delay: 0.3s; }
  .navbar-nav .nav-item:nth-child(4) { transition-delay: 0.4s; }
  .navbar-nav .nav-item:nth-child(5) { transition-delay: 0.5s; }

  .navbar-nav .nav-link {
    font-size: 1.2rem;
    padding: 0.8rem 0;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .active .nav-link {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 1rem;
  }

  .navbar-nav .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    box-shadow: none;
    padding: 0.5rem 0;
    margin: 0;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .navbar-nav .dropdown-menu.show {
    display: block;
  }

  .navbar-nav .dropdown-item {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .navbar-nav .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding-left: 2rem;
  }

  .top-bar {
    display: none;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }

  .logo {
    max-height: 35px;
  }
}

@media (max-width: 767.98px) {
  .hero-slider {
    height: 500px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.625rem;
  }
  
  .stats-number {
    font-size: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-slider {
    height: 450px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }

  .navbar {
    padding: 0.6rem 0;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .logo {
    max-height: 30px;
  }

  .navbar-nav .nav-link {
    font-size: 1.1rem;
  }
} 