/* ============================================
   NAFTA - Oil & Gas Industry Template
   Main Stylesheet
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --primary: #0094dd;
  --primary-dark: #0078b8;
  --secondary: #1a1a2e;
  --dark: #111111;
  --darker: #0a0a0a;
  --light: #f8f8f8;
  --white: #ffffff;
  --gray: #888888;
  --gray-light: #e5e5e5;
  --text: #444444;
  --text-light: #777777;
  --font-heading: 'Aurora', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --radius: 4px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }
button { border: none; background: none; cursor: pointer; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.5px;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.3rem; }
p { margin-bottom: 1rem; }

/* ---- Utility Classes ---- */
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }
.bg-dark-custom { background: var(--dark); }
.bg-darker { background: var(--darker); }
.bg-light-custom { background: var(--light); }
.text-primary-custom { color: var(--primary) !important; }
.text-white-custom { color: var(--white) !important; }
.fw-oswald { font-family: var(--font-heading); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--primary);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-title span { color: var(--primary); }
.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.8;
}
.divider-line {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 20px 0;
}
.divider-line.center { margin: 20px auto; }

/* ---- Buttons ---- */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
  z-index: 0;
}
.btn-primary-custom:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-primary-custom:hover { color: var(--primary); }
.btn-primary-custom span, .btn-primary-custom i { position: relative; z-index: 1; }

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-outline-custom:hover { background: var(--white); color: var(--dark); }

.btn-dark-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  border: 2px solid var(--dark);
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-dark-custom:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--darker);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner {
  text-align: center;
}
.preloader-logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  letter-spacing: 6px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.preloader-logo span { color: var(--primary); }
.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.preloader-bar-inner {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  animation: preloaderAnim 1.8s ease-in-out infinite;
}
@keyframes preloaderAnim {
  0% { width: 0; }
  50% { width: 100%; }
  100% { width: 0; margin-left: 100%; }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}
#main-header.transparent { background: transparent; }
#main-header.scrolled {
  background: var(--darker);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* Top Bar */
.header-top {
  background: var(--darker);
  padding: 8px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
#main-header.scrolled .header-top { display: none; }
.header-top a { color: rgba(255,255,255,0.6); }
.header-top a:hover { color: var(--primary); }
.top-contact-item { display: inline-flex; align-items: center; gap: 6px; margin-right: 20px; }
.top-social a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: rgba(255,255,255,0.08); border-radius: 50%; font-size: 0.75rem; margin-left: 5px; }
.top-social a:hover { background: var(--primary); color: var(--white); }

/* Main Nav */
.header-main {
  padding: 18px 0;
  transition: var(--transition);
}
#main-header.scrolled .header-main { padding: 12px 0; }

.navbar-brand .logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  letter-spacing: 4px;
  color: var(--white);
  text-transform: uppercase;
  font-weight: 700;
}
.navbar-brand .logo-text span { color: var(--primary); }
.logo-subtitle {
  font-size: 0.6rem;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  display: block;
  margin-top: -4px;
}

.main-nav .nav-item { position: relative; }
.main-nav .nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white) !important;
  padding: 8px 16px !important;
  font-weight: 500;
  position: relative;
}
.main-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.main-nav .nav-link:hover::after,
.main-nav .nav-item.active > .nav-link::after { width: 70%; }
.main-nav .nav-link:hover { color: var(--primary) !important; }

/* Dropdown */
.main-nav .dropdown-menu {
  background: var(--darker);
  border: none;
  border-top: 3px solid var(--primary);
  border-radius: 0;
  padding: 10px 0;
  min-width: 220px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  margin-top: 0;
  animation: dropFade 0.25s ease;
}
@keyframes dropFade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.main-nav .dropdown-item {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 10px 22px;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.main-nav .dropdown-item:last-child { border-bottom: none; }
.main-nav .dropdown-item:hover { color: var(--primary); background: rgba(0,148,221,0.08); padding-left: 28px; }

/* Mega Menu */
.mega-menu-container {
  position: static;
}
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--darker);
  border-top: 3px solid var(--primary);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  display: none;
  z-index: 100;
}
.mega-menu.show { display: block; animation: dropFade 0.25s ease; }
.mega-menu-col h6 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mega-menu-col a {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  padding: 6px 0;
  transition: var(--transition);
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.mega-menu-col a:hover { color: var(--primary); padding-left: 6px; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 5px; }
.header-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  border-radius: 50%;
  transition: var(--transition);
}
.header-btn:hover { background: var(--primary); color: var(--white); }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  margin-left: 10px;
}
.header-cta:hover { background: var(--primary-dark); color: var(--white); }

/* Mobile Toggle */
.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 12px;
  border-radius: var(--radius);
}
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* Offcanvas Mobile Nav */
.mobile-offcanvas {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: var(--darker);
  z-index: 2000;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 30px 25px;
}
.mobile-offcanvas.open { left: 0; }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-overlay.show { opacity: 1; pointer-events: all; }
.mobile-close { color: var(--white); font-size: 1.3rem; cursor: pointer; margin-bottom: 30px; display: block; }
.mobile-logo { font-family: var(--font-heading); font-size: 1.6rem; letter-spacing: 4px; color: var(--white); margin-bottom: 30px; display: block; }
.mobile-logo span { color: var(--primary); }
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s;
}
.mobile-nav-link:hover { color: var(--primary); }
.mobile-sub { display: none; padding-left: 15px; }
.mobile-sub.open { display: block; }
.mobile-sub a {
  display: block;
  padding: 9px 0;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mobile-sub a:hover { color: var(--primary); }

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.97);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-form-wrap { width: 100%; max-width: 700px; padding: 0 30px; position: relative; }
.search-overlay .close-search {
  position: absolute;
  top: -80px;
  right: 30px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}
.search-overlay .close-search:hover { color: var(--primary); }
.search-overlay input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding: 15px 0;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.3s;
}
.search-overlay input:focus { border-bottom-color: var(--primary); }
.search-overlay input::placeholder { color: rgba(255,255,255,0.3); }
.search-hint { margin-top: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.35); letter-spacing: 1px; }

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 850px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-slide.active .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.5) 60%, rgba(10,10,10,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
/*  opacity: 0;*/
  transform: translateY(20px);
  transition: all 0.7s ease 0.3s;
}
.hero-slide.active .hero-label { opacity: 1; transform: translateY(0); }
.hero-label::before { content: ''; width: 30px; height: 2px; background: var(--primary); }

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 22px;
/*  opacity: 0;*/
  transform: translateY(30px);
  transition: all 0.7s ease 0.5s;
  text-align: center;
}
.hero-slide.active .hero-title { opacity: 1; transform: translateY(0); }
.hero-title .accent { color: var(--primary); display: block; }

.hero-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 800px;
  line-height: 1.8;
  margin-bottom: 35px;
/*  opacity: 0;*/
  transform: translateY(20px);
  transition: all 0.7s ease 0.7s;
  text-align: center;
}
.hero-slide.active .hero-text { opacity: 1; transform: translateY(0); }

.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
/*  opacity: 0;*/
  transform: translateY(20px);
  transition: all 0.7s ease 0.9s;
}
.hero-slide.active .hero-btns { opacity: 1; transform: translateY(0); }

/* Hero Controls */
.hero-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active { background: var(--primary); width: 30px; border-radius: 5px; }

.hero-arrows {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-arrow {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.hero-arrow:hover { background: var(--primary); border-color: var(--primary); }

/* Hero Stats Bar */
.hero-stats-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(10px);
  z-index: 10;
  padding: 22px 0;
  border-top: 2px solid rgba(0,148,221,0.3);
}

.hero-stats-bars {
  position: absolute;
  bottom: 84px;
  left: 0;
  right: 0;
  z-index: 11;
  padding: 22px 0;
}

.bottom-link{
  visibility: hidden;
}

.hero-stat-item { text-align: center; padding: 0 20px; border-right: 1px solid rgba(255,255,255,0.08); }
.hero-stat-item:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   ABOUT INTRO SECTION
   ============================================ */
.about-intro { padding: 100px 0; }
.about-intro-image {
  position: relative;
}
.about-img-main {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-img-badge {
  position: absolute;
  bottom: -25px;
  right: -25px;
  width: 180px;
  height: 180px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.badge-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.badge-text {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 5px;
}
.about-intro-content { padding-left: 50px; }
.about-features-list { margin-top: 30px; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
}
.feature-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(0,148,221,0.1);
  border: 1px solid rgba(0,148,221,0.3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  transition: var(--transition);
}
.about-feature:hover .feature-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}
.feature-text h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.feature-text p { font-size: 0.88rem; color: var(--text-light); margin: 0; }

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section { padding: 100px 0; background: var(--light); }
.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  border-bottom: 3px solid transparent;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: #29166f;
  transition: height 0.4s ease;
  z-index: 0;
}
.service-card:hover { border-bottom-color: var(--primary); transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card:hover::before { height: 100%; }
.service-card > * { position: relative; z-index: 1; }
.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(0,148,221,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 22px;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--primary); color: var(--white); }
.service-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  transition: color 0.3s;
}
.service-card:hover h4 { color: var(--white); }
.service-card p { font-size: 0.9rem; color: var(--text-light); transition: color 0.3s; }
.service-card:hover p { color: rgba(255,255,255,0.6); }
.service-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 18px;
  transition: gap 0.3s;
}
.service-card .read-more:hover { gap: 12px; }

/* ============================================
   COUNTER SECTION
   ============================================ */
.counter-section {
  padding: 80px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.counter-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.01) 0px,
    rgba(255,255,255,0.01) 1px,
    transparent 1px,
    transparent 30px
  );
}
.counter-item { text-align: center; position: relative; z-index: 1; }
.counter-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  display: block;
}
.counter-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1;
  margin-bottom: 8px;
}
.counter-num .suffix { font-size: 2rem; color: var(--primary); }
.counter-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.counter-divider { width: 1px; background: rgba(255,255,255,0.08); height: 80px; margin: auto; }

/* ============================================
   WHY CHOOSE US (CTA BAND)
   ============================================ */
.why-choose {
  padding: 100px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.why-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}
.why-point {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
}
.why-icon {
  width: 55px;
  height: 55px;
  min-width: 55px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}
.why-point h5 {
  font-family: var(--font-heading);
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.why-point p { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin: 0; }

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section { padding: 100px 0; }
.project-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px;
  background: var(--light);
  border: 1px solid var(--gray-light);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark);
}
.project-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.project-card:hover .project-img { transform: scale(1.08); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transform: translateY(60px);
  transition: transform 0.4s ease;
}
.project-card:hover .project-overlay { transform: translateY(0); }
.project-cat {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.project-overlay h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.project-link {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  transition: var(--transition);
}
.project-link:hover { background: var(--white); color: var(--dark); }

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section { padding: 100px 0; background: var(--light); }
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.team-img-wrap { position: relative; overflow: hidden; }
.team-img-wrap img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.team-card:hover .team-img-wrap img { transform: scale(1.06); }
.team-social {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.team-card:hover .team-social { opacity: 1; }
.team-social a {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  transition: var(--transition);
  transform: translateY(10px);
}
.team-card:hover .team-social a { transform: translateY(0); }
.team-social a:hover { background: var(--white); color: var(--dark); }
.team-info {
  padding: 22px;
  text-align: center;
  border-top: 3px solid var(--primary);
}
.team-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.team-info span {
  font-size: 0.82rem;
  color: var(--primary);
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  padding: 100px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.testimonials-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.05;
}
.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-size: 8rem;
  color: var(--primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  position: absolute;
  top: -10px;
  left: 30px;
  line-height: 1;
}
.testimonial-rating { color: var(--primary); margin-bottom: 18px; font-size: 0.9rem; }
.testimonial-text {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 25px;
}
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.author-img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.author-info h6 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.author-info span { font-size: 0.78rem; color: var(--primary); letter-spacing: 1px; }

/* Swiper custom */
.swiper-pagination-bullet { background: rgba(255,255,255,0.3); opacity: 1; }
.swiper-pagination-bullet-active { background: var(--primary); }

/* ============================================
   PARTNERS / CLIENTS
   ============================================ */
.partners-section { padding: 60px 0; border-top: 1px solid var(--gray-light); border-bottom: 1px solid var(--gray-light); }
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  filter: grayscale(1);
  opacity: 0.5;
  transition: var(--transition);
}
.partner-logo:hover { filter: grayscale(0); opacity: 1; }
.partner-logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--dark);
  text-transform: uppercase;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-section {
  padding: 80px 0;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  left: -50px;
  bottom: -100px;
  width: 300px;
  height: 300px;
  background: rgba(0,0,0,0.07);
  border-radius: 50%;
}
.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
.cta-sub { color: rgba(255,255,255,0.75); font-size: 1rem; }

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-section { padding: 100px 0; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog-img-wrap { position: relative; overflow: hidden; }
.blog-img-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-img-wrap img { transform: scale(1.06); }
.blog-cat {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 5px 14px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.blog-body { padding: 25px; }
.blog-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-light);
}
.blog-meta span { display: flex; align-items: center; gap: 5px; }
.blog-meta i { color: var(--primary); }
.blog-body h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color 0.3s;
}
.blog-body h4 a:hover { color: var(--primary); }
.blog-body p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; margin-bottom: 18px; }
.blog-link {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  transition: gap 0.3s;
}
.blog-link:hover { gap: 12px; }

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  background: var(--darker);
  padding: 80px 0 0;
}
.footer-brand .logo-text { font-size: 1.8rem; }
.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin: 18px 0 22px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-right: 6px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
  padding-bottom: 12px;
  position: relative;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--primary);
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
}
.footer-links a i { color: var(--primary); font-size: 0.7rem; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(0,148,221,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
}
.contact-text { font-size: 0.87rem; color: rgba(255,255,255,0.5); line-height: 1.5; }
.contact-text a { color: rgba(255,255,255,0.5); }
.contact-text a:hover { color: var(--primary); }

.newsletter-form { display: flex; margin-top: 15px; }
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--white);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
}
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form button {
  padding: 12px 18px;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}
.newsletter-form button:hover { background: var(--primary-dark); }

.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 18px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin-left: 18px;
  transition: color 0.3s;
}
.footer-bottom-links a:hover { color: var(--primary); }

/* ============================================
   SCROLL TO TOP
   ============================================ */
#scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(0,148,221,0.4);
}
#scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#scroll-top:hover { background: var(--dark); transform: translateY(-3px); }

/* ============================================
   INNER PAGES - PAGE HEADER
   ============================================ */
.page-header {
  padding: 254px 0 250px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgb(10 10 10 / 0%) 100%);
}
.page-header-content { position: relative; z-index: 2; }
.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.breadcrumb-custom a { color: rgba(255,255,255,0.5); transition: color 0.3s; }
.breadcrumb-custom a:hover { color: var(--primary); }
.breadcrumb-custom .sep { color: var(--primary); }
.breadcrumb-custom .current { color: var(--primary); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.mission-vision { padding: 100px 0; }
.mv-card {
  padding: 40px;
  background: var(--light);
  border-radius: var(--radius);
  height: 100%;
  border-top: 3px solid var(--primary);
  transition: var(--transition);
}
.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.mv-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 18px; }
.mv-card h3 { font-family: var(--font-heading); text-transform: uppercase; margin-bottom: 15px; }
.mv-card p { color: var(--text-light); font-size: 0.93rem; line-height: 1.8; }

.skills-section { padding: 100px 0; }
.skill-bar { margin-bottom: 22px; }
.skill-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.skill-label .pct { color: var(--primary); }
.skill-track {
  height: 6px;
  background: var(--gray-light);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.service-detail { padding: 100px 0; }
.service-detail-icon {
  width: 90px;
  height: 90px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 25px;
}
.service-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.93rem;
}
.service-list-item i { color: var(--primary); }

/* Sidebar */
.sidebar-widget {
  margin-bottom: 35px;
}
.sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 20px;
  background: var(--dark);
  color: var(--white);
  border-left: 3px solid var(--primary);
  margin-bottom: 0;
}
.sidebar-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  background: var(--light);
  border-bottom: 1px solid var(--gray-light);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--transition);
}
.sidebar-nav-link:hover, .sidebar-nav-link.active {
  background: var(--primary);
  color: var(--white);
  padding-left: 24px;
}
.sidebar-cta {
  background: var(--dark);
  padding: 35px 25px;
  border-radius: var(--radius);
  text-align: center;
}
.sidebar-cta h4 { color: var(--white); font-family: var(--font-heading); text-transform: uppercase; margin-bottom: 12px; }
.sidebar-cta p { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-bottom: 20px; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section { padding: 100px 0; }
.contact-info-card {
  background: var(--dark);
  padding: 40px;
  border-radius: var(--radius);
  height: 100%;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.contact-info-item:last-child { border-bottom: none; }
.ci-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(0,148,221,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}
.ci-text h6 {
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  font-size: 0.82rem;
  margin-bottom: 4px;
}
.ci-text p { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin: 0; }

.contact-form-wrap {
  background: var(--white);
  padding: 50px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form-wrap h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
}
.form-control-custom {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.3s;
  font-family: var(--font-body);
}
.form-control-custom:focus { border-color: var(--primary); }
.form-control-custom::placeholder { color: rgba(0,0,0,0.35); }
.form-label-custom {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-section { padding: 100px 0; }
.faq-item {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq-item.open { box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  cursor: pointer;
  background: var(--white);
  transition: background 0.3s;
}
.faq-item.open .faq-question { background: var(--dark); }
.faq-question h5 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
  transition: color 0.3s;
}
.faq-item.open .faq-question h5 { color: var(--primary); }
.faq-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text);
  transition: var(--transition);
}
.faq-item.open .faq-icon { background: var(--primary); color: var(--white); transform: rotate(45deg); }
.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: var(--light);
}
.faq-item.open .faq-answer { max-height: 300px; padding: 20px 25px; }
.faq-answer p { font-size: 0.92rem; color: var(--text-light); margin: 0; }

/* ============================================
   PRICING PAGE
   ============================================ */
.pricing-section { padding: 100px 0; }
.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: var(--transition);
  height: 100%;
}
.pricing-card:hover, .pricing-card.featured {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.pricing-header {
  padding: 35px;
  background: var(--light);
  text-align: center;
}
.pricing-card.featured .pricing-header { background: var(--dark); }
.pricing-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.pricing-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.pricing-card.featured .pricing-name { color: var(--white); }
.pricing-price {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.pricing-card.featured .pricing-price { color: var(--primary); }
.pricing-price sup { font-size: 1.5rem; vertical-align: top; margin-top: 8px; }
.pricing-price .per { font-size: 0.9rem; font-weight: 400; color: var(--text-light); }
.pricing-body { padding: 35px; }
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.9rem;
}
.pricing-feature:last-child { border-bottom: none; }
.pricing-feature i.check { color: var(--primary); }
.pricing-feature i.cross { color: #ccc; }
.pricing-feature.disabled { color: var(--text-light); opacity: 0.5; }
.pricing-footer { padding: 0 35px 35px; text-align: center; }

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-page { padding: 100px 0; }
.blog-list-card {
  display: flex;
  gap: 25px;
  margin-bottom: 35px;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--gray-light);
}
.blog-list-card img {
  width: 280px;
  min-width: 280px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
}
.blog-details-content h2 { font-family: var(--font-heading); text-transform: uppercase; margin-bottom: 18px; }
.blog-details-content p { color: var(--text-light); line-height: 1.8; }
.blog-details-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 20px 25px;
  background: var(--light);
  margin: 25px 0;
  font-style: italic;
  color: var(--text-light);
}

/* ============================================
   AOS-LIKE REVEAL ANIMATIONS
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="left"].revealed { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="right"].revealed { transform: translateX(0); }
[data-reveal="zoom"] { transform: scale(0.9); }
[data-reveal="zoom"].revealed { transform: scale(1); }

/* Responsive rules moved to comprehensive block below */

/* ============================================
   COMPREHENSIVE RESPONSIVE OVERHAUL
   ============================================ */

/* ---- Large Desktop (1400px+) ---- */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .hero-title { font-size: 5.5rem; }
}

/* ---- Desktop (1200px – 1399px) ---- */
@media (max-width: 1399px) {
  .hero-title { font-size: 4.2rem; }
  .about-img-badge { width: 160px; height: 160px; right: -15px; }
}

/* ---- Laptop (992px – 1199px) ---- */
@media (max-width: 1199px) {
  .mega-menu { padding: 22px; }
  .about-intro-content { padding-left: 25px; }
  .hero-title { font-size: 3.6rem; }
  .main-nav .nav-link { padding: 8px 10px !important; font-size: .78rem; }
  .header-cta { padding: 9px 16px; font-size: .72rem; }
  .counter-num { font-size: 2.8rem; }
  .service-card { padding: 30px 22px; }
  .pricing-card.featured { transform: translateY(-5px); }
}

/* ---- Tablet (768px – 991px) ---- */
@media (max-width: 991px) {
  :root { font-size: 15px; }
  .section-pad { padding: 70px 0; }
  .section-pad-sm { padding: 45px 0; }

  /* Header */
  .main-nav { display: none !important; }
  .header-cta { display: none !important; }
  #main-header .header-main { padding: 14px 0; }
  .logo-text { font-size: 1.5rem; }
  .logo-subtitle { font-size: .55rem; letter-spacing: 2px; }

  /* Hero */
  .hero-section { height: 85vh; min-height: 560px; }
  .hero-title { font-size: 2.8rem; line-height: 1.1; }
  .hero-text { font-size: .95rem; max-width: 100%; }
  .hero-stats-bar { display: none; }
  .hero-stats-bars { bottom: -39px; }
  .hero-arrows { display: none; }
  .hero-controls { bottom: 25px; }
  .hero-label { font-size: .75rem; }
  .hero-btns { gap: 12px; }

  /* About */
  .about-intro { padding: 70px 0; }
  .about-intro-content { padding-left: 0; margin-top: 60px; }
  .about-img-main { height: 380px; }
  .about-img-badge { width: 130px; height: 130px; right: 0; bottom: -15px; padding: 15px; }
  .badge-num { font-size: 2.2rem; }
  .badge-text { font-size: .65rem; }

  /* Services */
  .services-section { padding: 70px 0; }
  .service-card { padding: 28px 22px; min-height: auto; }

  /* Counters */
  .counter-num { font-size: 2.4rem; }
  .counter-icon { font-size: 2rem; }

  /* Why choose */
  .why-choose { padding: 70px 0; }

  /* Projects */
  .project-img { height: 240px; }

  /* Team */
  .team-img-wrap img { height: 260px; }

  /* Testimonials */
  .testimonials-section { padding: 70px 0; }
  .testimonial-card { padding: 30px; }

  /* Blog */
  .blog-list-card { flex-direction: column; }
  .blog-list-card img { width: 100%; min-width: auto; height: 220px; }
  .blog-img-wrap img { height: 200px; }

  /* Sidebar */
  .sidebar-widget { margin-bottom: 25px; }

  /* Contact */
  .contact-form-wrap { padding: 35px 28px; }
  .contact-info-card { padding: 30px 25px; }

  /* CTA */
  .cta-section { padding: 60px 0; }
  .cta-title { font-size: 2rem; }

  /* Footer */
  .main-footer { padding: 60px 0 0; }

  /* Service detail */
  .service-detail { padding: 70px 0; }

  /* Page header */
  .page-header { padding: 140px 0 60px; }
  .page-title { font-size: 2.2rem; }

  /* Skills */
  .skills-section { padding: 70px 0; }

  /* Mission vision */
  .mission-vision { padding: 70px 0; }
  .mv-card { padding: 30px; }

  /* Pricing */
  .pricing-section { padding: 70px 0; }
  .pricing-price { font-size: 2.8rem; }

  /* FAQ */
  .faq-section { padding: 70px 0; }

  /* Blog page */
  .blog-page { padding: 70px 0; }
}

/* ---- Mobile Landscape / Small Tablet (576px – 767px) ---- */
@media (max-width: 767px) {
  :root { font-size: 14.5px; }
  .section-pad { padding: 55px 0; }
  .container { padding-left: 18px; padding-right: 18px; }

  /* Typography */
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1.1rem; }
  .section-title { font-size: 1.7rem; }

  /* Header */
  .header-top { display: none; }
  .logo-text { font-size: 1.3rem; letter-spacing: 2px; }
  .logo-subtitle { display: none; }
  #main-header .header-main { padding: 12px 0; }

  /* Hero */
  .hero-section { height: 100vh; min-height: 580px; }
  .hero-title { font-size: 2.1rem; line-height: 1.15; }
  .hero-label { font-size: .72rem; margin-bottom: 14px; }
  .hero-text { font-size: .88rem; line-height: 1.7; margin-bottom: 25px; }
  .hero-btns { flex-direction: column; align-items: flex-start; gap: 10px; }
  .btn-primary-custom,
  .btn-dark-custom,
  .btn-outline-custom { width: 100%; justify-content: center; padding: 13px 24px; }
  .hero-controls { bottom: 20px; }
  .hero-dot { width: 8px; height: 8px; }
  .hero-dot.active { width: 22px; }

  /* About */
  .about-intro { padding: 55px 0; }
  .about-img-main { height: 300px; }
  .about-img-badge { width: 110px; height: 110px; right: 5px; bottom: -12px; padding: 12px; }
  .badge-num { font-size: 1.8rem; }
  .badge-text { font-size: .6rem; letter-spacing: 1px; }
  .about-intro-content { margin-top: 50px; }
  .about-feature { gap: 12px; margin-bottom: 18px; }
  .feature-icon { width: 44px; height: 44px; min-width: 44px; font-size: 1rem; }

  /* Services */
  .service-icon { width: 58px; height: 58px; font-size: 1.5rem; }

  /* Counters */
  .counter-section { padding: 55px 0; }
  .counter-num { font-size: 2rem; }
  .counter-icon { font-size: 1.8rem; margin-bottom: 10px; }
  .counter-label { font-size: .68rem; letter-spacing: 1.5px; }

  /* Why choose */
  .why-choose { padding: 55px 0; }
  .why-point { gap: 14px; margin-bottom: 22px; }
  .why-icon { width: 46px; height: 46px; min-width: 46px; font-size: 1rem; }

  /* Projects */
  .project-filter { justify-content: center; flex-wrap: wrap; gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: .72rem; }
  .project-img { height: 220px; }
  .project-overlay { transform: translateY(0); padding: 20px; }

  /* Team */
  .team-img-wrap img { height: 280px; }
  .team-info { padding: 18px; }
  .team-info h4 { font-size: .95rem; }

  /* Testimonials */
  .testimonial-card { padding: 25px 20px; }
  .testimonial-text { font-size: .9rem; }
  .testimonial-card::before { font-size: 6rem; top: -5px; left: 15px; }

  /* Partners */
  .partner-logo-text { font-size: 1rem !important; }

  /* CTA */
  .cta-section { padding: 50px 0; }
  .cta-title { font-size: 1.7rem; }
  .cta-section .text-end,
  .cta-section .text-lg-end { text-align: left !important; margin-top: 20px; }

  /* Blog */
  .blog-body { padding: 18px; }
  .blog-body h4 { font-size: .9rem; }
  .blog-list-card { gap: 0; }
  .blog-list-card img { height: 200px; border-radius: var(--radius) var(--radius) 0 0; }
  .blog-list-card > div { padding: 18px 0 0; }

  /* Footer */
  .main-footer { padding: 50px 0 0; }
  .footer-heading { font-size: .78rem; margin-bottom: 16px; }
  .footer-desc { font-size: .85rem; }
  .footer-links a { font-size: .84rem; }
  .footer-bottom { padding: 15px 0; }
  .footer-copy { font-size: .78rem; }
  .footer-bottom .text-end,
  .footer-bottom .text-md-end { text-align: left !important; margin-top: 6px; }
  .footer-bottom-links a { font-size: .75rem; margin-left: 12px; }
  .footer-bottom-links a:first-child { margin-left: 0; }
  .newsletter-form input { font-size: .82rem; }

  /* Page header */
  .page-header { padding: 120px 0 50px; }
  .page-title { font-size: 1.9rem; }
  .breadcrumb-custom { font-size: .72rem; }

  /* Contact */
  .contact-form-wrap { padding: 25px 18px; }
  .contact-form-wrap h3 { font-size: 1.4rem; }
  .form-control-custom { padding: 11px 14px; font-size: .88rem; }
  .contact-info-card { padding: 25px 18px; margin-top: 30px; }
  .ci-icon { width: 44px; height: 44px; min-width: 44px; }

  /* Service detail */
  .service-detail { padding: 55px 0; }
  .service-detail-icon { width: 70px; height: 70px; font-size: 1.8rem; }
  .sidebar-widget-title { font-size: .82rem; padding: 12px 16px; }
  .sidebar-nav-link { font-size: .75rem; padding: 11px 16px; }
  .sidebar-cta { padding: 25px 18px; }

  /* Skills */
  .skill-bar { margin-bottom: 18px; }
  .skill-label { font-size: .76rem; }

  /* Mission/vision */
  .mv-card { padding: 25px 20px; }

  /* FAQ */
  .faq-question { padding: 16px 18px; }
  .faq-question h5 { font-size: .84rem; }
  .faq-answer { padding: 0 18px; }
  .faq-item.open .faq-answer { padding: 16px 18px; }

  /* Pricing */
  .pricing-header { padding: 28px 22px; }
  .pricing-body { padding: 28px 22px; }
  .pricing-footer { padding: 0 22px 28px; }
  .pricing-price { font-size: 2.6rem; }
  .pricing-card.featured { transform: none; }

  /* Hero stat items full width */
  .hero-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }

  /* About key facts table */
  table { font-size: .82rem; }

  /* Product/project overlay always visible on mobile */
  .project-overlay { background: linear-gradient(0deg, rgba(10,10,10,.95) 0%, rgba(10,10,10,.5) 60%, transparent 100%); }
}

/* ---- Small Mobile (max 575px) ---- */
@media (max-width: 575px) {
  :root { font-size: 14px; }
  .section-pad { padding: 50px 0; }
  .container { padding-left: 15px; padding-right: 15px; }

  /* Header */
  .header-top { display: none !important; }
  .logo-text { font-size: 1.2rem; letter-spacing: 2px; }

  /* Hero */
  .hero-section { height: 100svh; min-height: 550px; }
  .hero-title { font-size: 1.85rem; }
  .hero-content .col-lg-9 { padding-left: 5px; padding-right: 5px; }

  /* Stats bar counter */
  .hero-stats-bar .row { flex-wrap: wrap; }
  .hero-stat-item { flex: 0 0 50%; max-width: 50%; padding: 10px; }
  .hero-stat-num { font-size: 1.5rem; }
  .hero-stat-label { font-size: .62rem; }

  /* Counters 2-col */
  .counter-section .row > div { flex: 0 0 50%; max-width: 50%; }
  .counter-num { font-size: 1.8rem; }

  /* About badge smaller */
  .about-img-badge { width: 95px; height: 95px; right: 5px; bottom: -10px; padding: 10px; }
  .badge-num { font-size: 1.6rem; }
  .badge-text { font-size: .55rem; letter-spacing: 1px; }

  /* Service cards 1 col */
  .service-icon { width: 52px; height: 52px; min-width: 52px; font-size: 1.3rem; }

  /* Team image */
  .team-img-wrap img { height: 300px; }

  /* Blog meta wrap */
  .blog-meta { flex-wrap: wrap; gap: 8px; font-size: .74rem; }

  /* Contact info row */
  .contact-info-item { gap: 12px; }
  .ci-text h6 { font-size: .78rem; }
  .ci-text p { font-size: .82rem; }

  /* Footer columns stack */
  .main-footer .row > div { flex: 0 0 100%; max-width: 100%; }
  .footer-social a { width: 34px; height: 34px; font-size: .78rem; }

  /* Section label smaller */
  .section-label { font-size: .72rem; letter-spacing: 2px; }
  .section-label::before { width: 20px; }

  /* Divider */
  .divider-line { margin: 14px 0; }
  .divider-line.center { margin: 14px auto; }

  /* Why choose stack */
  .why-point { flex-direction: row; }

  /* CTA buttons stack */
  .cta-section .d-flex,
  .cta-section [class*="col"] { width: 100%; }

  /* Project filter scroll */
  .project-filter { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; scrollbar-width: none; }
  .project-filter::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }

  /* Scroll to top */
  #scroll-top { bottom: 20px; right: 15px; width: 40px; height: 40px; font-size: .85rem; }

  /* Mega menu (hide on mobile anyway) */
  .mega-menu { display: none !important; }

  /* Offcanvas wider */
  .mobile-offcanvas { width: 280px; }

  /* Page header smaller */
  .page-header { padding: 156px 0 45px; }
  .page-title { font-size: 1.7rem; }

  /* Pricing full-width */
  .pricing-card { margin-bottom: 0; }

  /* Blog detail blockquote */
  .blog-details-content blockquote { padding: 15px 18px; font-size: .88rem; }

  /* Skills bar label */
  .skill-label { flex-direction: row; justify-content: space-between; }

  /* FAQ */
  .faq-question h5 { font-size: .8rem; }
}

/* ---- Extra Small (max 400px) ---- */
@media (max-width: 400px) {
  .hero-title { font-size: 1.65rem; }
  .logo-text { font-size: 1.1rem; }
/*  .hero-label { display: none; }*/
  .btn-primary-custom,
  .btn-dark-custom,
  .btn-outline-custom { font-size: .78rem; padding: 11px 18px; letter-spacing: 1.5px; }
  .section-title { font-size: 1.5rem; }
  .mobile-offcanvas { width: 260px; }
  .testimonial-card { padding: 20px 15px; }
  .contact-form-wrap { padding: 20px 14px; }
}

/* ---- Touch / Hover fix ---- */
@media (hover: none) {
  /* Always show project overlay on touch devices */
  .project-overlay { transform: translateY(0) !important; }
  .team-social { opacity: 1 !important; }
  .team-social a { transform: translateY(0) !important; }
  .service-card::before { display: none; }
  .service-card:hover { transform: none; }
  .service-card:hover h4 { color: var(--dark); }
  .service-card:hover p { color: var(--text-light); }
  .service-card:hover .read-more { color: var(--primary); }
  .service-card:hover .service-icon { background: rgba(0,148,221,.1); color: var(--primary); }
  .btn-primary-custom::before { display: none; }
  .btn-primary-custom:hover { color: var(--white); }
}

/* ---- Print ---- */
@media print {
  #main-header, #preloader, #scroll-top, .hero-arrows,
  .hero-controls, .newsletter-form, .search-overlay,
  .mobile-offcanvas, #mobile-overlay { display: none !important; }
  body { font-size: 12pt; }
  .hero-section { height: auto; min-height: auto; padding: 60px 0; }
  .hero-overlay { opacity: .3; }
  a { color: var(--dark) !important; }
}

/* ---- Utility overrides for very small viewports ---- */
@media (max-width: 767px) {
  .d-flex.gap-3 { gap: 10px !important; }
  .mt-5 { margin-top: 2.5rem !important; }
  .mb-5 { margin-bottom: 2.5rem !important; }
  .py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  /* Ensure all images are responsive */
  img { max-width: 100%; height: auto; }
  /* Tables scroll horizontally */
  .table-responsive { -webkit-overflow-scrolling: touch; }
  /* Prevent horizontal overflow */
  .row { margin-left: -10px; margin-right: -10px; }
  .row > * { padding-left: 10px; padding-right: 10px; }
}

/* ============================================
   GLOBAL OVERFLOW & SAFE AREA FIXES
   ============================================ */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* iOS safe area support for notched phones */
@supports (padding: env(safe-area-inset-left)) {
  .container {
    padding-left: max(15px, env(safe-area-inset-left));
    padding-right: max(15px, env(safe-area-inset-right));
  }
  #main-header {
    padding-top: env(safe-area-inset-top);
  }
  .mobile-offcanvas {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Prevent images from breaking layout */
img, video, iframe, embed, object {
  max-width: 100%;
}

/* Fix Bootstrap container on very small screens */
@media (max-width: 320px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .hero-title { font-size: 1.5rem; }
  .section-title { font-size: 1.4rem; }
  .logo-text { font-size: 1rem; letter-spacing: 1px; }
}

/* Fix flex items wrapping on mobile */
@media (max-width: 575px) {
  .about-features-list .about-feature { align-items: flex-start; }
  .footer-contact-item { align-items: flex-start; }
  .testimonial-author { flex-wrap: nowrap; }
  .blog-meta { flex-wrap: wrap; }
  /* Ensure hero buttons are truly full-width */
  .hero-btns .btn-primary-custom,
  .hero-btns .btn-outline-custom,
  .hero-btns .btn-dark-custom {
    width: 100%;
    max-width: 300px;
  }
}

/* Fix mobile offcanvas z-index and scroll */
.mobile-offcanvas {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Smooth scrolling respects user preference */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
