/* ===== CITEMEX DESIGN SYSTEM ===== */
/* Modern foundation engineering website with reddish tones */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Primary - Reddish tones from CITEMEX logo #BD202E */
  --primary-50: #fef2f2;
  --primary-100: #fde3e4;
  --primary-200: #fdcbcd;
  --primary-300: #fba6aa;
  --primary-400: #f6727a;
  --primary-500: #ec454f;
  --primary-600: #d92636;
  --primary-700: #bd202e;   /* Main brand color */
  --primary-800: #9b1e2a;
  --primary-900: #811f28;
  --primary-950: #470b11;

  /* Neutral */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --neutral-950: #0a0a0a;

  /* Dark mode overlay */
  --dark-bg: #0f0f0f;
  --dark-surface: #1a1a1a;
  --dark-surface-2: #242424;
  --dark-border: #2a2a2a;

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

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1280px;
  --container-padding: 0 40px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s var(--ease-out-expo);
  --transition-medium: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
  --transition-extra-slow: 1.2s var(--ease-out-expo);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 40px rgba(189, 32, 46, 0.3);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark-bg);
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 3rem;
  color: var(--primary-700);
  letter-spacing: 0.1em;
  animation: pulse-logo 1.5s ease-in-out infinite;
}
@keyframes pulse-logo {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.95); }
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  color: #fff;
}

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

.nav-logo-icon {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.nav-links a.active {
  color: var(--primary-500);
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--primary-700) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: all var(--transition-fast) !important;
}
.nav-cta:hover {
  background: var(--primary-600) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow) !important;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15,15,15,0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}
.mobile-menu a:hover {
  color: var(--primary-500);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(1.1);
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, var(--dark-bg) 0%, transparent 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(189, 32, 46, 0.25) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(189, 32, 46, 0.15);
  border: 1px solid rgba(189, 32, 46, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-400);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-500);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(189,32,46,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(189,32,46,0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-stats {
  position: absolute;
  right: 40px;
  bottom: 120px;
  z-index: 2;
  display: flex;
  gap: 24px;
}

.stat-card {
  padding: 24px 32px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  text-align: center;
  min-width: 140px;
  transition: all var(--transition-medium);
}
.stat-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  border-color: rgba(189,32,46,0.3);
}
.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--primary-500);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}
.hero-scroll-indicator:hover { opacity: 1; }
.hero-scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary-500), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--primary-700);
  color: #fff;
  box-shadow: 0 4px 15px rgba(189, 32, 46, 0.3);
}
.btn-primary:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(189, 32, 46, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-400);
  padding: 8px 0;
}
.btn-ghost:hover {
  color: var(--primary-300);
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}
.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ===== SECTION STYLES ===== */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-dark {
  background: var(--dark-bg);
}

.section-darker {
  background: var(--dark-surface);
}

.section-gradient {
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(189, 32, 46, 0.1);
  border: 1px solid rgba(189, 32, 46, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.service-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 420px;
  cursor: pointer;
  group: true;
}

.service-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}
.service-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.service-card:hover .service-card-bg img {
  transform: scale(1.1);
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
  transition: background var(--transition-medium);
}
.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(189,32,46,0.85) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 32px;
  z-index: 2;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition-medium);
}
.service-card:hover .service-icon {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.2);
}
.service-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.service-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.service-card-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium), opacity var(--transition-medium);
  opacity: 0;
}
.service-card:hover .service-card-desc {
  max-height: 100px;
  opacity: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-300);
  transition: all var(--transition-fast);
}
.service-card-link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}
.service-card:hover .service-card-link svg {
  transform: translateX(6px);
}

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

.about-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}
.about-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 24px;
}
.about-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  border-radius: 0 0 24px 24px;
}

.about-experience-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: rgba(189, 32, 46, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(189, 32, 46, 0.3);
  border-radius: 16px;
}
.about-experience-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 3rem;
  color: var(--primary-500);
  line-height: 1;
}
.about-experience-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.about-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(189, 32, 46, 0.1);
  border: 1px solid rgba(189, 32, 46, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.about-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.about-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--dark-surface-2);
  border-radius: 12px;
  border: 1px solid var(--dark-border);
  transition: all var(--transition-fast);
}
.about-feature:hover {
  border-color: rgba(189, 32, 46, 0.3);
  background: rgba(189, 32, 46, 0.05);
}
.about-feature-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-500);
  flex-shrink: 0;
}
.about-feature-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}

/* ===== PROJECTS SECTION ===== */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid var(--dark-border);
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: #fff;
}

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

.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 380px;
  cursor: pointer;
  transition: all var(--transition-medium);
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.project-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.project-card:hover .project-card-image img {
  transform: scale(1.08);
}

.project-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 60%);
  transition: background var(--transition-medium);
}
.project-card:hover .project-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 60%);
}

.project-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px;
  z-index: 2;
}

.project-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(189, 32, 46, 0.2);
  border: 1px solid rgba(189, 32, 46, 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-400);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-card-details {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}
.project-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.project-status.completed .status-dot {
  background: #22c55e;
}
.project-status.in-progress .status-dot {
  background: #f59e0b;
  animation: dot-pulse 2s ease-in-out infinite;
}
.project-status.completed { color: #22c55e; }
.project-status.in-progress { color: #f59e0b; }

/* Featured project - larger card */
.project-card.featured {
  grid-column: span 2;
  height: 480px;
}

.projects-cta {
  text-align: center;
  margin-top: 60px;
}

/* ===== VALUES SECTION ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  padding: 40px 32px;
  background: var(--dark-surface-2);
  border-radius: 20px;
  border: 1px solid var(--dark-border);
  text-align: center;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-700), var(--primary-400));
  transform: scaleX(0);
  transition: transform var(--transition-medium);
}
.value-card:hover::before {
  transform: scaleX(1);
}
.value-card:hover {
  border-color: rgba(189, 32, 46, 0.2);
  transform: translateY(-6px);
  background: rgba(189, 32, 46, 0.03);
}

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(189, 32, 46, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--primary-500);
  transition: all var(--transition-medium);
}
.value-card:hover .value-icon {
  background: rgba(189, 32, 46, 0.2);
  transform: scale(1.1);
}
.value-icon svg {
  width: 28px;
  height: 28px;
}

.value-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.value-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ===== COUNTER SECTION ===== */
.counter-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.counter-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.counter-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.2) saturate(0.8);
}
.counter-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(189, 32, 46, 0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.counter-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.counter-item {
  padding: 32px;
}
.counter-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.counter-number .plus {
  color: var(--primary-500);
}
.counter-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-950) 100%);
  border-radius: 32px;
  padding: 80px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(189, 32, 46, 0.3);
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189, 32, 46, 0.3) 0%, transparent 70%);
}
.cta-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189, 32, 46, 0.15) 0%, transparent 70%);
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.cta-text {
  max-width: 600px;
}
.cta-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
}
.cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.cta-actions .btn-primary {
  background: #fff;
  color: var(--primary-800);
}
.cta-actions .btn-primary:hover {
  background: var(--neutral-100);
  box-shadow: 0 8px 30px rgba(255,255,255,0.2);
}
.cta-actions .btn-outline {
  border-color: rgba(255,255,255,0.3);
}
.cta-actions .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 320px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.footer-logo svg {
  width: 36px;
  height: 36px;
}
.footer-brand-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--dark-surface-2);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition-fast);
}
.footer-social a:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: #fff;
  transform: translateY(-3px);
}
.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.9);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  transition: all var(--transition-fast);
}
.footer-links a:hover {
  color: var(--primary-400);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}
.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ===== PARTICLE BG ===== */
.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary-500);
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle linear infinite;
}
@keyframes float-particle {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

/* ===== ANIMATED COUNTER ===== */
.count-up {
  display: inline-block;
}

/* ===== MODAL - Project Detail ===== */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}
.project-modal.open {
  opacity: 1;
  visibility: visible;
}
.project-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
}
.project-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: var(--dark-surface);
  border-radius: 24px;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(30px) scale(0.95);
  transition: all var(--transition-medium);
  border: 1px solid var(--dark-border);
}
.project-modal.open .project-modal-content {
  transform: translateY(0) scale(1);
}
.project-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  font-size: 1.2rem;
}
.project-modal-close:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
}
.project-modal-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
}
.project-modal-body {
  padding: 40px;
}
.project-modal-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(189, 32, 46, 0.15);
  border: 1px solid rgba(189, 32, 46, 0.3);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-400);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.project-modal-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 16px;
}
.project-modal-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 32px;
}
.project-modal-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.project-modal-spec {
  padding: 20px;
  background: var(--dark-surface-2);
  border-radius: 12px;
  border: 1px solid var(--dark-border);
}
.project-modal-spec-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.project-modal-spec-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-400);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
    --container-padding: 0 24px;
  }

  .hero-stats {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 40px;
    flex-wrap: wrap;
  }

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

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

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-card.featured {
    grid-column: span 2;
  }

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

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

  .cta-content {
    flex-direction: column;
    text-align: center;
  }

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

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

  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .mobile-menu { display: flex; }

  .hero { min-height: 100svh; }
  .hero-content { padding-top: 100px; }
  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }
  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }
  .stat-card {
    padding: 16px 24px;
    min-width: 120px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    height: 320px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-card.featured {
    grid-column: span 1;
    height: 380px;
  }

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

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

  .cta-card {
    padding: 48px 32px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .project-modal-specs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .counter-grid {
    grid-template-columns: 1fr;
  }
  .cta-actions {
    flex-direction: column;
  }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--dark-surface-2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-800);
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(189, 32, 46, 0.3);
  color: #fff;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: whatsapp-entrance 0.6s ease 2s both;
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.3);
  animation: whatsapp-pulse 2s ease-in-out infinite;
}
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #fff;
  color: #333;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all 0.3s ease;
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #fff;
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}
@keyframes whatsapp-entrance {
  from { opacity: 0; transform: scale(0) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes whatsapp-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 0; }
}
@media (max-width: 768px) {
  .whatsapp-float { width: 52px; height: 52px; bottom: 20px; right: 20px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .whatsapp-tooltip { display: none; }
}
