/* ========================================
   ATHAB Tech - Modern Redesign
   Author: Your Team
   ======================================== */

/* ----- CSS Variables ----- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #06b6d4;
  --success: #10b981;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000000;

  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;

  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--gray-800);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
  padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
}

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

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

.section-padding {
  padding: 5rem 0;
}
@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.section-title.text-start::after {
  left: 0;
  transform: none;
}
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* ----- Buttons ----- */
.btn {
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline-light {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ----- Preloader ----- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.preloader-finish {
  opacity: 0;
  pointer-events: none;
}
.loader {
  width: 48px;
  height: 48px;
  border: 5px solid var(--gray-200);
  border-bottom-color: var(--primary);
  border-radius: 50%;
  animation: rotation 1s linear infinite;
}
@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ----- Navigation ----- */
.navbar {
  background-color: rgba(255,255,255,0.95) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: var(--transition);
}
.navbar-scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}
.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gray-900) !important;
}
.navbar-brand img {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
}
.nav-link {
  font-weight: 500;
  color: var(--gray-700) !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}
.navbar-toggler {
  border: none;
  outline: none;
}
.navbar-toggler:focus {
  box-shadow: none;
}
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(255,255,255,0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 1rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-lg);
  }
}

/* ----- Hero Section ----- */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background: url('../images/hero-bg-modern.jpg') center/cover no-repeat;
  color: var(--white);
  overflow: hidden;
}
.hero-section .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(37,99,235,0.6) 100%);
  z-index: 1;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-content h1 span {
  color: var(--accent);
}
.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}
.hero-content .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- Service Cards ----- */
.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}
.service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.service-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}
.service-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--gray-200);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-card ul li i {
  color: var(--success);
  font-size: 1.1rem;
}
.learn-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.learn-more:hover {
  color: var(--primary-dark);
  gap: 0.5rem;
}

/* ----- Solution Cards ----- */
.solution-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}
.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.solution-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.solution-card h4 i {
  color: var(--primary);
}
.solution-card p {
  color: var(--gray-600);
  margin-bottom: 0;
}

/* ----- Product Cards ----- */
.product-category {
  margin-bottom: 4rem;
}
.product-category h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  position: relative;
}
.product-category h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.product-card {
  transition: var(--transition);
  height: 100%;
}
.product-card .card {
  border: none;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}
.product-card .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}
.product-card .card-body {
  padding: 2rem 1.5rem;
}
.product-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.product-card p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}
.product-card ul {
  list-style: none;
  padding: 0;
}
.product-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--gray-200);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.product-card ul li i {
  color: var(--success);
}
.brand-logo {
  max-height: 60px;
  object-fit: contain;
  margin: 1rem 0;
}
.badge {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 2rem;
}
.badge.bg-primary {
  background-color: var(--primary) !important;
}

/* ----- About Section Stats ----- */
.stat-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 2rem 1rem;
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.stat-card p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

/* ----- Contact Section ----- */
.contact-form-wrapper {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.contact-form-wrapper .form-label {
  font-weight: 500;
  color: var(--gray-700);
}
.contact-form-wrapper .form-control {
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}
.contact-form-wrapper .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
  outline: none;
}
.contact-info a {
  color: var(--gray-700);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-info a:hover {
  color: var(--primary);
}
.whatsapp-link {
  background-color: rgba(37,211,102,0.1);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
}
.whatsapp-link:hover {
  background-color: rgba(37,211,102,0.2);
}

/* ----- Footer ----- */
footer {
  background-color: var(--gray-900);
  color: var(--gray-300);
  padding: 4rem 0 2rem;
}
footer h5 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
footer a {
  color: var(--gray-300);
  transition: var(--transition);
}
footer a:hover {
  color: var(--white);
}
footer .list-unstyled li {
  margin-bottom: 0.75rem;
}
footer .social-media a {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  transition: var(--transition);
  margin-right: 0.5rem;
}
footer .social-media a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}
footer hr {
  border-color: rgba(255,255,255,0.1);
  margin: 2rem 0;
}

/* ----- Scroll to Top Button (Accessible) ----- */
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}
#scrollTop.show {
  opacity: 1;
  visibility: visible;
}
#scrollTop:hover {
  background-color: var(--primary-dark);
  transform: translateY(-4px);
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content .btn-group {
    flex-direction: column;
    align-items: center;
  }
  .hero-content .btn {
    width: 100%;
    max-width: 300px;
  }
  .service-card, .solution-card, .product-card .card-body {
    padding: 1.5rem;
  }
  .product-category h3 {
    font-size: 1.75rem;
  }
  footer {
    text-align: center;
  }
}