/* ========================================
   JEDDAH EXPERT - LUXURY CONSTRUCTION
   Premium Jeddah-Level Website
   Theme: Blue, Red, White, Gold & Black
======================================== */

/* CSS Variables - Modern Light Mode Theme (Red, Blue, White) */
:root {
  /* Primary Colors - Emerald Slate Palette (Green & Grey Mix) */
  --primary-blue: #1E293B;
  /* Deep Slate Blue-Grey */
  --primary-red: #334155;
  /* Slate Charcoal */
  --primary-white: #F8FAFC;
  --accent-blue: #A8E6CF;
  /* Pastel Mint */
  --accent-red: #94A3B8;
  /* Cool Slate Grey */
  --deep-blue: #0F172A;
  /* Midnight Slate */
  --vibrant-red: #CBD5E1;
  /* Light Silver Slate */
  --light-blue: rgba(30, 41, 59, 0.4);
  --light-red: rgba(148, 163, 184, 0.1);

  /* Background Colors */
  --bg-color: #0F1419;
  /* Deep Slate Background */
  --bg-secondary: #0A0F14;
  /* Darker Charcoal Slate */
  --bg-gradient-start: #1A202C;
  --bg-gradient-end: #0F172A;

  /* Text Colors */
  --text-color: #F8FAFC;
  --text-secondary: #CBD5E1;
  /* Lighter slate for better contrast on dark */
  --text-muted: #94A3B8;
  /* Lighter muted text */
  --text-light: #64748B;

  /* Card & Component Colors */
  --card-bg: #1A1F26;
  /* Slate Card Background */
  --card-border: rgba(148, 163, 184, 0.1);
  --glass-bg: rgba(15, 20, 25, 0.8);
  --glass-border: rgba(168, 230, 207, 0.1);

  /* Navigation */
  --nav-bg: rgba(15, 20, 25, 0.95);
  --nav-shadow: rgba(0, 0, 0, 0.6);

  /* Shadows & Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
  --shadow-red: 0 8px 24px rgba(51, 65, 85, 0.3);
  --shadow-blue: 0 8px 24px rgba(30, 41, 59, 0.3);

  /* Border Colors */
  --border-light: rgba(148, 163, 184, 0.05);
  --border-medium: rgba(148, 163, 184, 0.1);

  /* Gradient Colors - Mixing Green with slate greys */
  --gradient-blue: linear-gradient(135deg, #2D5A27 0%, #1E293B 100%);
  --gradient-red: linear-gradient(135deg, #334155 0%, #2D5A27 100%);
  --gradient-mixed: linear-gradient(135deg, #A8E6CF 0%, #334155 100%);
  --gradient-light: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);

  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* Subpage Specific Variables (Centralized) */
  --royal-blue: #0F172A;
  --matte-black: #0F1419;
  --metallic-gold: #A8E6CF;
  --gold-dark: #94A3B8;
  --deep-red: #334155;
  --dark-gray: #1A1F26;

  /* Pure Colors */
  --pure-white: #FFFFFF;
  --pure-blue: #0F172A;
  /* Mixed Theme Tokens */
  --slate-mint-glow: 0 0 20px rgba(168, 230, 207, 0.2);
  --gradient-green-pastel: linear-gradient(135deg, #A8E6CF 0%, #334155 100%);
}

/* Light Mode Overrides */
body.light-mode {
  --bg-color: #F1F5F9;
  /* Slate White */
  --bg-secondary: #FFFFFF;
  --bg-gradient-start: #E2E8F0;
  --bg-gradient-end: #F8FAFC;

  --text-color: #0F172A;
  /* Midnight Slate for maximum contrast */
  --text-secondary: #1E293B;
  /* Deep Slate Blue-Grey */
  --text-muted: #334155;
  /* Darker Slate */
  --text-light: #475569;
  /* Medium Slate */

  --card-bg: #FFFFFF;
  --card-border: rgba(30, 41, 59, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(168, 230, 207, 0.2);

  --nav-bg: rgba(255, 255, 255, 0.98);
  --nav-shadow: rgba(30, 41, 59, 0.1);

  --border-light: rgba(30, 41, 59, 0.05);
  --border-medium: rgba(30, 41, 59, 0.1);

  --light-blue: #F1F5F9;
  --light-red: #E2E8F0;

  --gradient-light: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);

  /* Light overrides for subpage variables */
  --royal-blue: #1E293B;
  --matte-black: #FFFFFF;
  --metallic-gold: #1A3C16;
  /* Dark Metal Green */
  --gold-dark: #2D5A27;
  --deep-red: #334155;
  --dark-gray: #F1F5F9;

  /* Theme Overrides for Light Mode */
  --pastel-green-light: #1E293B;
  --pastel-green-dark: #0F172A;

  /* Gradient Overrides for Light Mode */
  --gradient-blue: linear-gradient(135deg, #1A3C16 0%, #2D5A27 100%);
  --gradient-red: linear-gradient(135deg, #2D5A27 0%, #1A3C16 100%);
  --gradient-mixed: linear-gradient(135deg, #1A3C16 0%, #2D5A27 100%);
  --gradient-green-pastel: linear-gradient(135deg, #2D5A27 0%, #F1F5F9 100%);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-text,
.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(48px, 8vw, 84px);
  line-height: 0.9;
  margin-bottom: 30px;
}

h2 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin-bottom: 25px;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--light-blue);
  border: 1px solid var(--border-medium);
  width: 45px;
  height: 45px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-blue);
  font-size: 18px;
  transition: all 0.3s ease;
  margin-left: 15px;
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  background: var(--primary-blue);
  color: var(--pure-white);
  transform: translateY(-2px) rotate(15deg);
  box-shadow: var(--shadow-md);
}

.theme-toggle i {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.theme-toggle:hover i {
  transform: scale(1.2);
}

/* Light mode overrides for toggle */
body.light-mode .theme-toggle {
  background: var(--light-blue);
  color: var(--primary-blue);
}

body:not(.light-mode) .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fbbf24;
  /* Amber for sun/moon */
}

body:not(.light-mode) .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fcd34d;
}

/* ========================================
   CUSTOM SCROLLBAR
======================================== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--light-blue);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-blue);
  border-radius: var(--radius-xl);
  border: 2px solid var(--light-blue);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-mixed);
}

/* ========================================
   NAVIGATION BAR
======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  background: var(--nav-bg);
  box-shadow: 0 4px 30px rgba(59, 130, 246, 0.4);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 40px rgba(59, 130, 246, 0.5);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-icon:hover {
  transform: rotate(5deg) scale(1.1);
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links .cta-btn {
  background: var(--gradient-blue);
  color: white;
  padding: 18px 40px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.cta-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-mixed);
  transition: width 0.3s ease;
  border-radius: 3px;
}

.nav-links a:hover {
  color: var(--primary-blue);
  background: var(--light-blue);
}

.nav-links a:hover::before {
  width: 100%;
}

.nav-links a i {
  font-size: 16px;
  color: var(--primary-red);
  transition: all 0.3s ease;
}

.nav-links a:hover i {
  transform: scale(1.2);
  color: var(--accent-red);
}

/* CTA Button */
.nav-cta {
  background: var(--gradient-red);
  color: white !important;
  padding: 12px 28px !important;
  border-radius: var(--radius-lg);
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px !important;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}


.nav-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
  background: var(--vibrant-red);
}


.nav-cta::before {
  display: none !important;
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.mobile-toggle span {
  width: 28px;
  height: 3px;
  background: var(--gradient-blue);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: black;
  /* Dark base for transitions */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Hero Background Slider */
.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation:
    bgCrossfade 18s ease-in-out infinite,
    kenBurns 45s linear infinite;
}

.slide-1 {
  background-image: url('../p1.jpg');
  animation-delay: 0s;
}

.slide-2 {
  background-image: url('../p2.jpg');
  animation-delay: 6s;
}

.slide-3 {
  background-image: url('../p3.jpg');
  animation-delay: 12s;
}

@keyframes bgCrossfade {

  0%,
  100% {
    opacity: 0;
  }

  5%,
  28% {
    opacity: 1;
  }

  38%,
  95% {
    opacity: 0;
  }
}

@keyframes kenBurns {
  0% {
    transform: scale(1.1) translate(0, 0) rotate(0deg);
  }

  50% {
    transform: scale(1.2) translate(1%, 1%) rotate(0.5deg);
  }

  100% {
    transform: scale(1.1) translate(0, 0) rotate(0deg);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(30, 64, 175, 0.2), rgba(0, 0, 0, 0.7));
  z-index: 2;
  backdrop-filter: brightness(0.8) contrast(1.1);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 30px;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gradient-mixed);
  border-radius: 50%;
  opacity: 0.5;
  animation: float 15s infinite;
  box-shadow: 0 0 15px var(--primary-blue);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 30px;
}

.hero-subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--pastel-green-light);
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.3s;
}

body.light-mode .hero-subtitle {
  color: #FFFFFF;
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  background: var(--gradient-green-pastel);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.5s;
  filter: drop-shadow(0 2px 8px rgba(53, 94, 59, 0.3));
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.7s;
  border-left: 3px solid var(--pastel-green-dark);
  padding-left: 20px;
}

body.light-mode .hero-description {
  color: #FFFFFF;
  border-left-color: #FFFFFF;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.9s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Scroll Reveal */
.fade-in {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1),
    transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.4s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background: var(--gradient-red);
  color: white;
  box-shadow: var(--shadow-red);
}

body.light-mode .btn-gold {
  color: #FFFFFF;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.btn-gold:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-xl);
  background: var(--gradient-mixed);
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

body.light-mode .btn-outline {
  background: var(--primary-blue);
  color: #FFFFFF;
}

/* ========================================
   SECTION STYLES
======================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--primary-red);
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-blue));
}

.section-label::after {
  background: linear-gradient(90deg, var(--primary-red), transparent);
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
}

.section-title span {
  background: var(--gradient-mixed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ========================================
   SERVICES SECTION - 3D CARDS
======================================== */
.services-section {
  background: var(--bg-color);
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(45, 90, 39, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(53, 94, 59, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  perspective: 1000px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px 30px;
  text-align: center;
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.5s ease;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-mixed);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.service-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 32px;
  color: white;
  box-shadow: var(--shadow-blue);
  transition: all 0.4s ease;
}

body.light-mode .service-icon {
  color: var(--text-color);
  box-shadow: none;
  background: var(--light-blue);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotateY(360deg);
  box-shadow: var(--shadow-xl);
  background: var(--gradient-mixed);
}

.service-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-color);
}

.service-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   ABOUT PREVIEW SECTION
======================================== */
.about-preview {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.about-preview::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(45, 90, 39, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: all 0.5s ease;
}

.about-image:hover {
  transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.1);
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45, 90, 39, 0.15), rgba(53, 94, 59, 0.1));
  pointer-events: none;
}

.about-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--text-color);
}

.about-content h2 span {
  background: var(--gradient-mixed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.8;
}

/* Statistics */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--light-blue);
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary-blue);
  transition: all 0.4s ease;
}

.stat-item:hover {
  background: var(--light-red);
  border-color: var(--primary-red);
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   FEATURED PROJECTS SECTION
======================================== */
.projects-section {
  background: var(--bg-gradient-start);
  position: relative;
}

.projects-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(45, 90, 39, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(53, 94, 59, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 400px;
  transform-style: preserve-3d;
  transition: all 0.5s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: perspective(1000px) rotateY(5deg) rotateX(-3deg) translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.15);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, var(--card-bg) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(30, 64, 175, 0.95) 100%);
}

.project-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--vibrant-red);
  font-weight: 700;
  margin-bottom: 10px;
}

.project-title {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.project-location {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Gold Border Glow Effect */
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: var(--radius-xl);
  transition: all 0.4s ease;
  pointer-events: none;
  z-index: 10;
}

.project-card:hover::before {
  border-image: var(--gradient-mixed) 1;
  box-shadow: inset 0 0 30px rgba(59, 130, 246, 0.2);
}

/* ========================================
   WHY CHOOSE US SECTION
======================================== */
.why-section {
  background: var(--bg-secondary);
  position: relative;
}

.why-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 40%, rgba(220, 38, 38, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-box {
  background: var(--card-bg);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px 30px;
  text-align: center;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: all 0.5s ease;
}

.feature-box:hover::before {
  opacity: 1;
}

.feature-box:hover {
  border-color: var(--primary-blue);
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 90px;
  height: 90px;
  background: var(--light-blue);
  border: 3px solid var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 36px;
  color: var(--primary-blue);
  transition: all 0.4s ease;
}

.feature-box:hover .feature-icon {
  background: var(--gradient-red);
  border-color: var(--primary-red);
  color: white;
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-red);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-color);
}

.feature-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
  background: var(--gradient-mixed);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}

body.light-mode .cta-section {
  background: #F1F5F9;
  /* Light Grey */
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
  background-size: 100px 100px;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 100px 100px;
  }
}

.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.cta-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 20px;
  text-shadow: none;
}

body.light-mode .cta-title {
  color: #0F172A;
}

.cta-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  background: var(--metallic-gold);
  color: var(--royal-blue);
  padding: 18px 45px;
  font-size: 16px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-xl);
  animation: pulse 2s infinite;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  }

  50% {
    box-shadow: 0 5px 40px rgba(10, 31, 68, 0.5);
  }
}

/* ========================================
   SUBPAGE SHARED HERO STYLES
======================================== */
.page-hero {
  min-height: 40vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--royal-blue);
  margin-top: 0;
  padding-top: 80px;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  opacity: 0.2;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(45, 90, 39, 0.3) 50%, rgba(10, 15, 20, 0.95) 100%);
}

body.light-mode .page-hero-overlay {
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.95) 0%, rgba(203, 213, 225, 0.8) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 0 30px;
  width: 100%;
}

.page-hero-subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--metallic-gold);
  margin-bottom: 20px;
}

.page-hero-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
}

.page-hero-title span {
  color: var(--metallic-gold);
}

.page-hero-description {
  font-size: 18px;
  color: var(--text-secondary);
}

/* ========================================
   SECTION STYLES
======================================== */
.cta-btn:hover {
  transform: translateY(-5px) scale(1.05);
  background: var(--primary-blue);
  color: white;
  box-shadow: var(--shadow-blue);
}

body.light-mode .cta-btn {
  color: white;
}

/* ========================================
   FOOTER
======================================== */
.footer {
  background: var(--bg-secondary);
  padding: 80px 0 30px;
  border-top: 3px solid var(--metallic-gold);
  transition: all 0.4s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

body.light-mode .footer-title {
  background: none;
  -webkit-text-fill-color: initial;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--primary-blue);
  padding-left: 5px;
}

.footer-links a i {
  font-size: 12px;
  color: var(--primary-red);
}

.footer-contact p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact i {
  color: var(--primary-blue);
  margin-top: 3px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: var(--light-blue);
  border: 2px solid var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 18px;
  transition: all 0.4s ease;
}

.social-links a:hover {
  background: var(--gradient-red);
  border-color: var(--primary-red);
  color: white;
  transform: translateY(-5px) rotate(5deg);
  box-shadow: var(--shadow-red);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 14px;
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
}

body.light-mode .powered-by {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

.powered-by:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--metallic-gold);
}

body.light-mode .powered-by:hover {
  background: rgba(0, 0, 0, 0.05);
}

.powered-by span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.powered-by img {
  height: 25px;
  width: auto;
  filter: grayscale(1) brightness(1.5);
  transition: all 0.3s ease;
}

body.light-mode .powered-by img {
  filter: grayscale(1) brightness(0.5);
}

.powered-by:hover img {
  filter: grayscale(0) brightness(1);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wireframe-container {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ANIMATIONS
======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Glassmorphism Effect */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* Gold Glow */
.gold-glow {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* Red Accent Line */
.red-accent {
  position: relative;
}

.red-accent::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--deep-red);
}