/* ================================================
   BUFFALO CONSTRUCTION — Main Stylesheet
   ================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #60A5FA;
  --secondary: #0A0A14;
  --dark: #000000;
  --dark-2: #0D0D1A;
  --dark-3: #141425;
  --text: #333333;
  --text-light: #6B7280;
  --text-lighter: #9CA3AF;
  --white: #FFFFFF;
  --off-white: #F8F8F8;
  --light-bg: #F3F4F6;
  --border: #E5E7EB;

  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.6s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);

  /* Border Radius */
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  text-align: center;
}

.preloader-logo {
  height: 280px;
  width: auto;
  object-fit: contain;
  animation: logoFadeIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes logoFadeIn {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section ---------- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-dark {
  background: var(--secondary);
  color: var(--white);
}

.section-dark .section-subtitle,
.section-dark .section-label {
  color: rgba(255,255,255,0.7);
}

.section-accent {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
  color: var(--white);
}

.section-header {
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: inherit;
}

.section-dark .section-title {
  color: var(--white);
}

.highlight {
  color: var(--primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.text-center {
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
  transform: translateY(-2px);
}

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

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

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn i {
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(4px);
}

/* ================================================
   NAVIGATION
   ================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
}

#navbar.scrolled {
  background: var(--white);
  backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  z-index: 1001;
}

.logo-icon {
  font-size: 2rem;
  color: var(--primary);
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.preloader-logo {
  height: 300px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--white);
}

.logo-sub {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--white);
  text-transform: uppercase;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

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

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-phone i {
  color: var(--primary);
}

.nav-phone:hover {
  color: var(--primary);
}

.btn-nav {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--secondary);
  z-index: 999;
  transition: right 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-link {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--white);
  font-weight: 600;
}

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

.mobile-phone {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 16px;
}

.btn-mobile {
  margin-top: 8px;
}

/* ================================================
   HERO
   ================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.82) 50%,
    rgba(0, 0, 0, 0.95) 100%
  );
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

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

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

.hero-logo {
  margin-bottom: 32px;
  text-align: center;
}

.hero-logo-img {
  height: 280px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 0 20px rgba(255,255,255,1)) drop-shadow(0 0 50px rgba(255,255,255,0.9)) drop-shadow(0 0 100px rgba(255,255,255,0.7)) drop-shadow(0 0 160px rgba(255,255,255,0.4));
}

.hero-badge {
  display: inline-block;
  margin-bottom: 24px;
}

.hero-badge span {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--primary);
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 50px;
  backdrop-filter: blur(4px);
  background: rgba(37, 99, 235, 0.08);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  padding-bottom: 40px;
}

.hero-scroll a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-indicator {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 10px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Hero floating stats */
.hero-float-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(15, 15, 26, 0.6);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.float-stat {
  flex: 1;
  max-width: 300px;
  padding: 30px 40px;
  text-align: center;
  color: var(--white);
  border-right: 1px solid rgba(255,255,255,0.08);
}

.float-stat:last-child {
  border-right: none;
}

.float-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.float-plus {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
}

.float-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ================================================
   ABOUT
   ================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
}

.about-img-secondary img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  background: var(--primary);
  color: var(--dark);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.exp-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.exp-text {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text {
  font-size: 1.02rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.about-feature h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ================================================
   SERVICES
   ================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--dark-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  z-index: 2;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.service-card.featured {
  border-color: rgba(37, 99, 235, 0.3);
}

.service-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.08);
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,15,26,0.8));
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.service-overlay i {
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.8;
}

.service-body {
  padding: 28px;
}

.service-body h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.service-body p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-list {
  margin-bottom: 24px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  padding: 6px 0;
}

.service-list li i {
  color: var(--primary);
  font-size: 0.75rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
}

.service-link:hover {
  gap: 14px;
}

/* ================================================
   PROJECTS / PORTFOLIO
   ================================================ */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--border);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-light);
}

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

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.project-card.hidden {
  display: none;
}

.project-img {
  height: 240px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.08);
}

.project-info {
  padding: 24px;
}

.project-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.project-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-meta {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-lighter);
}

.project-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-meta i {
  color: var(--primary);
  font-size: 0.75rem;
}

/* ================================================
   STATS / WHY US
   ================================================ */
.stats-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.stats-text p {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-top: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-number::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 48px;
  background: var(--light-bg);
  border-radius: var(--radius-xl);
  text-align: center;
}

.testimonial-stars {
  color: var(--primary);
  font-size: 1.1rem;
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 24px;
}

.testimonial-text {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.author-avatar {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 1.3rem;
}

.testimonial-author h4 {
  font-size: 1rem;
  font-weight: 700;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.test-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--transition);
}

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

.test-dots {
  display: flex;
  gap: 8px;
}

.test-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

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

/* ================================================
   CTA BANNER
   ================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.cta-content p {
  font-size: 1.05rem;
  color: rgba(0,0,0,0.6);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

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

.cta-buttons .btn-white {
  border-color: var(--dark);
  color: var(--dark);
}

.cta-buttons .btn-white:hover {
  background: var(--dark);
  color: var(--white);
}

/* ================================================
   CONTACT
   ================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.contact-info p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-name {
  font-weight: 700;
  color: var(--text);
  display: inline-block;
  min-width: 110px;
}

.contact-item p,
.contact-item a {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 8px;
}

.contact-item p:last-child {
  margin-bottom: 0;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-socials {
  display: flex;
  gap: 12px;
}

.contact-socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
}

.contact-socials a:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--text);
  transition: var(--transition);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-result {
  margin-top: 16px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-result.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-result.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ================================================
   FOOTER
   ================================================ */
#footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
  margin-bottom: 16px;
  color: var(--white);
}

.footer-brand {
  max-width: 400px;
}

.footer-text .logo-name {
  font-size: 1.5rem;
}

.footer-text .logo-sub {
  font-size: 0.85rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

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

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--primary);
  margin-top: 10px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 6px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px !important;
}

.footer-contact li i {
  color: var(--primary);
  margin-top: 3px;
  min-width: 16px;
}

.footer-contact li span,
.footer-contact li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.footer-bottom {
  text-align: right;
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 768px) {
  .footer-bottom {
    text-align: center;
  }
}

/* ================================================
   RESPONSIVE — MOBILE/TABLET
   ================================================ */

/* Hide project filters on mobile */
@media (max-width: 768px) {
  .project-filters {
    display: none;
  }
}

/* ================================================
   BACK TO TOP
   ================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--dark);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* ================================================
   ANIMATIONS
   Only hide elements when JS has loaded (progressive enhancement)
   ================================================ */
body.js-loaded .animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

body.js-loaded .animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
body.js-loaded .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
body.js-loaded .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
body.js-loaded .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
body.js-loaded .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
body.js-loaded .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ================================================
   DOWNLOADS SECTION
   ================================================ */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.download-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.download-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.download-card:hover .download-icon {
  transform: scale(1.1);
}

.download-card:hover .btn {
  transform: scale(1.05);
}

.download-card:active {
  transform: translateY(-4px);
}

.download-file-badge {
  display: inline-block;
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.download-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2.5rem;
  color: var(--white);
  transition: transform 0.3s ease;
}

.download-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.download-card p {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.6;
  flex-grow: 1;
}

.download-btn-area {
  margin-top: auto;
}

.download-card .btn {
  transition: transform 0.3s ease, background 0.3s ease;
  pointer-events: none;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-images {
    max-width: 500px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .logo-name {
    font-size: 3rem;
  }

  .logo-sub {
    font-size: 1.8rem;
  }

  .nav-links {
    display: none;
  }

  .nav-phone {
    display: none;
  }

  .btn-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-logo-img {
    height: 160px;
  }

  .hero-title {
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
    width: 100%;
  }

  .hero-float-stats {
    display: none;
  }

  .hero-scroll {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-col h4::after {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-form-wrapper {
    padding: 24px;
  }

  /* BBB Section Mobile Fix */
  .bbb-card {
    padding: 20px;
  }

  [style*="grid-template-columns: 1fr 1.5fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  [style*="display: flex; align-items: center; justify-content: center; gap: 30px;"] {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .bbb-logo {
    margin-bottom: 0 !important;
  }

  .bbb-rating h3 {
    font-size: 48px !important;
  }

  .bbb-details {
    text-align: center;
  }

  .bbb-details h3 {
    font-size: 20px !important;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 28px 20px;
  }

  .about-img-secondary {
    width: 160px;
    right: -10px;
    bottom: -20px;
  }

  .about-experience-badge {
    width: 100px;
    height: 100px;
    left: -10px;
    top: -10px;
  }

  .exp-number {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .logo-name {
    font-size: 2rem;
  }

  .logo-sub {
    font-size: 1.2rem;
  }

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

  .download-card {
    padding: 24px 16px;
  }

  .download-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .download-card h3 {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .project-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
