@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Constant colors */
  --accent: #3271a7; /* Corporate blue from logo */
  --accent-light: #4c8dc3; /* Lighter blue for highlights */
  --accent-glow: rgba(50, 113, 167, 0.4);
  --text-light: #f8fafc;
  --primary-dark: #020617; /* Slate black */
  
  /* Dynamic Light Theme variables */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc; /* Slate-50 alternative background */
  --bg-card: #ffffff;
  --text-dark: #0f172a; /* Slate-900 main text */
  --text-muted: #475569; /* Slate-600 secondary text */
  --border-color: #cbd5e1; /* Slate-300 */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.08);
  
  /* Fonts */
  --font-primary: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;

  /* Layout & Transitions */
  --max-width: 1280px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  --box-shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.15);
  --box-shadow-md: 0 8px 20px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --box-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* Dark Theme Overrides */
body.dark-mode {
  --bg-primary: #0b0f19; /* Deep midnight slate */
  --bg-secondary: #111827; /* Slate-900 alternative background */
  --bg-card: #1f2937; /* Slate-800 card background */
  --text-dark: #f8fafc; /* Slate-50 main text */
  --text-muted: #9ca3af; /* Gray-400 secondary text */
  --border-color: #374151; /* Slate-700 */
  --glass-bg: rgba(11, 15, 25, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --box-shadow-md: 0 8px 20px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color var(--transition-medium);
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-medium), color var(--transition-medium);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  transition: color var(--transition-medium);
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

h2.accent-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
  transition: width var(--transition-medium);
}

h2.accent-underline:hover::after {
  width: 100px;
}

p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  transition: color var(--transition-medium);
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--primary-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

/* Common Layout Components */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 7rem 0;
  transition: background-color var(--transition-medium);
}

.section-bg-dark {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.section-bg-dark h2, 
.section-bg-dark h3 {
  color: var(--text-light);
}

.section-bg-dark p {
  color: #94a3b8;
}

.section-bg-light {
  background-color: var(--bg-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-light);
  border: 2px solid var(--accent);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-light);
  transition: left var(--transition-fast);
  z-index: -1;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  border-color: var(--accent-light);
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-light);
  color: #0f172a;
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
}

.btn-outline-dark:hover {
  background-color: var(--text-dark);
  color: var(--bg-primary);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: all var(--transition-medium);
}

header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--box-shadow-md);
  border-bottom: 1px solid var(--glass-border);
}

header.scrolled .nav-container {
  padding: 1rem 1.5rem;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-emblem {
  height: 55px;
  width: auto;
  display: block;
}

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

.logo-title {
  font-family: var(--font-primary);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.12em;
  transition: color var(--transition-medium);
}

.logo-subtitle {
  font-family: var(--font-primary);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.3em;
  transition: color var(--transition-medium);
}

/* Adjust logo title colors based on background states */
header:not(.scrolled) .logo-title {
  color: var(--text-light); /* white text on transparent dark backdrop */
}

body.dark-mode header.scrolled .logo-title {
  color: var(--text-light);
}

header.scrolled .logo-title {
  color: var(--text-dark); /* black text on white scrolled background */
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-wrapper .logo-emblem {
  height: 50px;
}

.footer-logo-wrapper .logo-title {
  color: var(--text-light);
}

.footer-logo-wrapper .logo-subtitle {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-light);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-medium);
}

header.scrolled .nav-link {
  color: var(--text-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent) !important;
}

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

.nav-link.active {
  color: var(--accent) !important;
}

.nav-contact-btn {
  display: inline-flex;
  align-items: center;
  background-color: var(--accent);
  color: var(--text-light) !important;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.15rem;
}

.nav-contact-btn:hover {
  background-color: var(--accent-light);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Light / Dark Mode Toggle Button */
.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--text-light);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: background-color var(--transition-fast), color var(--transition-medium);
}

header.scrolled .theme-toggle-btn {
  color: var(--text-dark);
}

.theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

header.scrolled .theme-toggle-btn:hover {
  background-color: var(--border-color);
}

.theme-toggle-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: transform var(--transition-medium);
}

.theme-toggle-btn:hover svg {
  transform: rotate(15deg);
}

body.dark-mode .theme-toggle-btn .sun-icon {
  display: block;
}
body.dark-mode .theme-toggle-btn .moon-icon {
  display: none;
}
body:not(.dark-mode) .theme-toggle-btn .sun-icon {
  display: none;
}
body:not(.dark-mode) .theme-toggle-btn .moon-icon {
  display: block;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  position: relative;
  transition: background var(--transition-fast);
}

/* Base hamburger colors dynamically checking for background hero overlays */
body:has(.hero, .page-hero) header:not(.scrolled) .hamburger,
body:has(.hero, .page-hero) header:not(.scrolled) .hamburger::before,
body:has(.hero, .page-hero) header:not(.scrolled) .hamburger::after {
  background: var(--text-light);
}

body:not(:has(.hero, .page-hero)) header:not(.scrolled) .hamburger,
body:not(:has(.hero, .page-hero)) header:not(.scrolled) .hamburger::before,
body:not(:has(.hero, .page-hero)) header:not(.scrolled) .hamburger::after {
  background: var(--text-dark);
}

header.scrolled .hamburger,
header.scrolled .hamburger::before,
header.scrolled .hamburger::after {
  background: var(--text-dark);
}

body.dark-mode .hamburger,
body.dark-mode .hamburger::before,
body.dark-mode .hamburger::after {
  background: var(--text-light) !important;
}

.hamburger::before, 
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  transition: transform var(--transition-fast), top var(--transition-fast);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.nav-toggle.open .hamburger {
  background: transparent !important;
}

.nav-toggle.open .hamburger::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--text-light) !important;
}

.nav-toggle.open .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--text-light) !important;
}

/* General Page Hero Banner */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  color: var(--text-light);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.5));
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-hero h1 {
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.page-hero .breadcrumbs {
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* Home Page Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  color: var(--text-light);
  background-image: url('../images/hero_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(2, 6, 23, 0.85), rgba(15, 23, 42, 0.45));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 700px;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  font-size: 4rem;
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
}

/* Floating Badges */
.hero-badge-container {
  position: absolute;
  bottom: 2rem;
  right: 5%;
  z-index: 2;
  display: flex;
  gap: 1.5rem;
}

.badge-card {
  background-color: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge-card svg {
  width: 35px;
  height: 35px;
  fill: var(--accent);
}

.badge-text h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 600;
}

.badge-text p {
  font-size: 0.8rem;
  margin: 0;
  color: #94a3b8;
}

/* Stats Section */
.stats {
  background-color: var(--primary-dark);
  padding: 4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  color: var(--text-light);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* About Intro Section (Home Page) */
.about-intro {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.about-intro-text {
  flex: 1;
}

.about-intro-image {
  flex: 1;
  position: relative;
}

.about-intro-image img {
  border-radius: 8px;
  box-shadow: var(--box-shadow-lg);
  object-fit: cover;
  height: 450px;
  width: 100%;
}

.image-accent-border {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--accent);
  border-radius: 8px;
  z-index: -1;
  pointer-events: none;
}

.experience-tag {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: var(--accent);
  color: var(--text-light);
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: var(--box-shadow-lg);
  text-align: center;
}

.experience-tag span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.experience-tag label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Services Section */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-card {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  padding: 3rem 2.25rem;
  transition: all var(--transition-medium);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-lg);
  background-color: var(--bg-card);
  border-color: transparent;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  margin-bottom: 2rem;
}

.service-icon svg {
  width: 50px;
  height: 50px;
  fill: var(--accent);
  transition: transform var(--transition-medium);
}

.service-card:hover .service-icon svg {
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  margin-top: 1rem;
}

.service-link svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
  transition: transform var(--transition-fast);
}

.service-card:hover .service-link svg {
  transform: translateX(5px);
}

/* Recent Projects Section (Home Page) */
.projects-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 400px;
  box-shadow: var(--box-shadow-md);
  cursor: pointer;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.3) 60%, rgba(2, 6, 23, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.25rem;
  transition: background var(--transition-medium);
}

.project-card-tag {
  align-self: flex-start;
  background-color: var(--accent);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-medium);
}

.project-card-title {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  transform: translateY(20px);
  transition: all var(--transition-medium) 0.05s;
}

.project-card-loc {
  color: #cbd5e1;
  font-size: 0.85rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-medium) 0.1s;
}

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

.project-card:hover .project-card-overlay {
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.5) 60%, rgba(2, 6, 23, 0.2) 100%);
}

.project-card:hover .project-card-tag,
.project-card:hover .project-card-title,
.project-card:hover .project-card-loc {
  transform: translateY(0);
  opacity: 1;
}

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

/* Testimonials Section */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slide {
  background-color: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 3rem 3rem 3rem;
  border-radius: 8px;
  text-align: center;
  position: relative;
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn var(--transition-medium) forwards;
}

.quote-icon {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--box-shadow-md);
}

.quote-icon svg {
  width: 25px;
  height: 25px;
  fill: var(--text-light);
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.5;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.client-info h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.client-info p {
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.control-dot.active, 
.control-dot:hover {
  background-color: var(--accent);
  transform: scale(1.2);
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0f172a 100%);
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(50, 113, 167, 0.15) 0%, transparent 60%);
  z-index: 1;
}

.cta-banner .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.cta-banner h2 {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.cta-banner p {
  color: #cbd5e1;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.cta-banner .phone-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-top: 1rem;
  transition: color var(--transition-fast);
}

.cta-banner .phone-number:hover {
  color: var(--accent-light);
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-col h3 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 1.75rem;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.85rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: #cbd5e1;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.footer-contact svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-credentials {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-credentials span {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* About Page Specific Styles */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-story-text p {
  margin-bottom: 1.5rem;
}

.about-story-media {
  position: relative;
}

.about-story-media img {
  border-radius: 8px;
  box-shadow: var(--box-shadow-lg);
  object-fit: cover;
  height: 500px;
  width: 100%;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background-color: var(--bg-secondary);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-medium);
}

.value-card:hover {
  transform: translateY(-5px);
  background-color: var(--bg-card);
  box-shadow: var(--box-shadow-md);
}

.value-icon {
  margin-bottom: 1.5rem;
}

.value-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--accent);
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* Services Page Specific Styles */
.service-detail-section {
  display: flex;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.service-detail-section:last-child {
  margin-bottom: 0;
}

.service-detail-section:nth-child(even) {
  flex-direction: row-reverse;
}

.service-detail-text {
  flex: 1;
}

.service-detail-text h3 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  transition: color var(--transition-medium);
}

.service-detail-text ul {
  list-style: none;
  margin-top: 1.5rem;
}

.service-detail-text li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
  font-size: 1rem;
}

.service-detail-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

.service-detail-img {
  flex: 1;
}

.service-detail-img img {
  border-radius: 8px;
  box-shadow: var(--box-shadow-lg);
  height: 400px;
  width: 100%;
  object-fit: cover;
}

/* Timeline/Process Section - Interactive Animation Grid */
.process-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3.5rem;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.process-step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.process-step-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: transparent;
  transition: background-color var(--transition-medium);
}

.process-step-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-md);
}

.process-step-card.active {
  border-color: var(--accent);
  box-shadow: var(--box-shadow-lg);
  background-color: var(--bg-primary);
}

.process-step-card.active::before {
  background-color: var(--accent);
}

.process-step-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.5rem;
}

.process-step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.process-step-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Animation Player Styling */
.anim-player-panel {
  position: sticky;
  top: 130px; /* Aligns with header height */
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--box-shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#animCanvas, #homeCanvas {
  width: 100%;
  height: auto;
  aspect-ratio: 5/3;
  background-color: #0b1329; /* Blueprint dark blue */
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.player-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.player-row-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-play-pause {
  background-color: var(--accent);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  flex-shrink: 0;
}

.btn-play-pause:hover {
  transform: scale(1.05);
  background-color: var(--accent);
}

.btn-play-pause svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.timeline-slider-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.timeline-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg-card);
  box-shadow: var(--box-shadow-sm);
  transition: transform var(--transition-fast);
}

.timeline-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.player-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.player-status-tag {
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsiveness for Process Timeline Grid */
@media (max-width: 992px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .anim-player-panel {
    position: static;
  }
}

/* Projects Page Filter and Grid */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: none;
  border: 2px solid var(--border-color);
  padding: 0.65rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.filter-btn.active, 
.filter-btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--text-light);
}

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

/* Project Lightbox Popup */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2, 6, 23, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px;
  box-shadow: var(--box-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.lightbox-close svg {
  width: 30px;
  height: 30px;
  fill: var(--text-light);
}

.lightbox-caption {
  color: var(--text-light);
  text-align: center;
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Contact Page Specific Styles */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 4rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-detail-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-detail-card .icon-box {
  background-color: rgba(50, 113, 167, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.dark-mode .contact-detail-card .icon-box {
  background-color: rgba(50, 113, 167, 0.25);
}

.contact-detail-card .icon-box svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

.contact-detail-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-detail-card p, 
.contact-detail-card a {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-detail-card a:hover {
  color: var(--accent);
}

.contact-form-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3.5rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow-lg);
  transition: background-color var(--transition-medium), border-color var(--transition-medium);
}

.contact-form-panel h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-medium);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  background-color: var(--bg-secondary);
  transition: all var(--transition-fast);
  color: var(--text-dark);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(50, 113, 167, 0.15);
}

/* Map Container */
.map-container {
  margin-top: 5rem;
  border-radius: 8px;
  overflow: hidden;
  height: 480px;
  box-shadow: var(--box-shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
}

.map-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #cbd5e1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: radial-gradient(#94a3b8 1px, transparent 1px);
  background-size: 20px 20px;
}

body.dark-mode .map-placeholder {
  background-color: #1f2937;
  background-image: radial-gradient(#4b5563 1px, transparent 1px);
}

.map-card {
  position: absolute;
  right: 2rem;
  top: 2rem;
  left: auto;
  transform: none;
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow-lg);
  max-width: 380px;
  text-align: center;
  z-index: 10;
  border: 1px solid var(--border-color);
  transition: background-color var(--transition-medium), border-color var(--transition-medium);
}

@media (max-width: 768px) {
  .map-container {
    height: 540px;
  }
  .map-card {
    position: absolute;
    left: 50%;
    right: auto;
    top: auto;
    bottom: 1.5rem;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 380px;
    padding: 1.5rem;
  }
}

.map-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.map-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* 3D Scanner Component */
.scanner-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--box-shadow-md);
  transition: background-color var(--transition-medium), border-color var(--transition-medium);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scanner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.scanner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  background-color: var(--accent-glow);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.badge-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: scanner-pulse 1.5s infinite ease-in-out;
}

@keyframes scanner-pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

.scanner-canvas-wrapper {
  position: relative;
  width: 100%;
  background-color: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

body.dark-mode .scanner-canvas-wrapper {
  background-color: #0b111e;
}

.scanner-info-box {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  min-height: 80px;
  transition: all 0.3s ease;
}

body.dark-mode .scanner-info-box {
  background-color: #0f172a;
}

.scanner-info-box h5 {
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scanner-info-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}


/* Modal Styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2, 6, 23, 0.8);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-card);
  padding: 3rem;
  border-radius: 8px;
  max-width: 500px;
  text-align: center;
  box-shadow: var(--box-shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-medium), background-color var(--transition-medium), border-color var(--transition-medium);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-icon-box {
  width: 70px;
  height: 70px;
  background-color: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.modal-icon-box svg {
  width: 40px;
  height: 40px;
  fill: #10b981;
}

.modal-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.modal-content p {
  margin-bottom: 2rem;
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active, 
.reveal-left.active, 
.reveal-right.active, 
.reveal-scale.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 1024px) {
  h2 {
    font-size: 2rem;
  }
  
  .section {
    padding: 5rem 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--primary-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: right var(--transition-medium);
    z-index: 1050;
    padding: 2rem;
    border-left: 1px solid var(--glass-border);
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    background: var(--text-light) !important;
  }

  /* Ensure menu links and theme toggle are always white inside the mobile drawer menu */
  .nav-links .nav-link,
  header.scrolled .nav-links .nav-link,
  .nav-links .theme-toggle-btn,
  header.scrolled .nav-links .theme-toggle-btn {
    color: var(--text-light) !important;
  }
  
  .hero h1 {
    font-size: 3.25rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .projects-showcase-grid, 
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-story {
    gap: 3rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail-section {
    gap: 3rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-badge-container {
    display: none; /* Hide on mobile devices to save space */
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .about-intro {
    flex-direction: column-reverse;
    gap: 3rem;
  }

  .about-intro-image img {
    height: 350px;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .about-story {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-story-media img {
    height: 350px;
  }

  .service-detail-section,
  .service-detail-section:nth-child(even) {
    flex-direction: column;
    gap: 2rem;
  }

  .service-detail-img img {
    height: 300px;
  }

  .process-timeline::before {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content {
    width: calc(100% - 50px);
    left: 50px !important;
    text-align: left !important;
  }

  .contact-form-panel {
    padding: 2rem;
  }

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

@media (max-width: 480px) {
  h2 {
    font-size: 1.75rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

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

  .stat-number {
    font-size: 3rem;
  }

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

  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-container {
    flex-wrap: wrap;
  }
  
  .filter-btn {
    width: calc(50% - 0.5rem);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    text-align: center;
  }
}

/* FAQ Accordion Styling */
.contact-faq-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3.5rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow-lg);
  transition: background-color var(--transition-medium), border-color var(--transition-medium);
}

.contact-faq-panel h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  transition: border-color var(--transition-medium);
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform var(--transition-medium);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium) ease-out;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-top: 1rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .contact-faq-panel {
    padding: 2rem;
  }
}

/* Home Page Extension Visualizer Section */
.visualizer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3.5rem;
}

.visualizer-desc {
  text-align: left;
}

.visualizer-desc h3 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
  font-family: var(--font-secondary);
}

.visualizer-desc p {
  margin-bottom: 2rem;
  line-height: 1.7;
}

.visualizer-steps-indicator {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.visualizer-step-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.visualizer-step-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.visualizer-step-row.active {
  background-color: rgba(255, 255, 255, 0.08);
}

.visualizer-step-row .step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background-color: transparent;
  transition: background-color var(--transition-fast);
}

.visualizer-step-row.active .step-dot {
  background-color: var(--accent);
}

.visualizer-step-row span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.visualizer-step-row.active span {
  color: var(--text-dark);
  font-weight: 700;
}

/* Dark mode adjustment for active step card labels */
body.dark-mode .visualizer-step-row.active span {
  color: var(--text-light);
}

@media (max-width: 992px) {
  .visualizer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ==========================================================================
   Bespoke Home Planner & Cost Estimator
   ========================================================================== */
#costEstimatorSection {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 3rem;
  align-items: start;
}

.estimator-controls-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--box-shadow-md);
}

.panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.control-group {
  margin-bottom: 1.75rem;
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

/* Radio toggle group (horizontal pill switch) */
.radio-toggle-group {
  display: flex;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px;
}

.radio-toggle-label {
  flex: 1;
  text-align: center;
  position: relative;
  cursor: pointer;
}

.radio-toggle-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-toggle-label span {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.radio-toggle-label input:checked + span {
  background-color: var(--accent);
  color: var(--text-light);
  box-shadow: var(--box-shadow-sm);
}

/* Vertical radio list for finish level */
.radio-toggle-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-toggle-label-v {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.radio-toggle-label-v input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

.radio-v-content strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.radio-v-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.radio-toggle-label-v:has(input:checked) {
  border-color: var(--accent);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 12px var(--accent-glow);
}

/* Custom styled range slider */
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.slider-value-display {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.estimator-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  margin: 10px 0;
}

.estimator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform var(--transition-fast);
  box-shadow: var(--box-shadow-sm);
}

.estimator-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.estimator-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform var(--transition-fast);
  box-shadow: var(--box-shadow-sm);
}

.estimator-slider::-moz-range-thumb:hover {
  transform: scale(1.25);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Color Picker Circles */
.color-picker-grid {
  display: flex;
  gap: 0.75rem;
}

.color-option-label {
  cursor: pointer;
  position: relative;
}

.color-option-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.color-circle {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}

.color-option-label input:checked + .color-circle {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 5px var(--accent);
}

/* Right side preview and metrics */
.estimator-visualizer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.estimator-canvas-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow-md);
}

.canvas-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
}

.status-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10b981; /* green */
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.status-indicator-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.canvas-wrapper {
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

#estimatorCanvas {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--box-shadow-sm);
  background-color: #ffffff;
  display: block;
}

/* Outputs stats cards */
.estimator-outputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.output-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  box-shadow: var(--box-shadow-md);
  align-items: center;
  transition: transform var(--transition-fast);
}

.output-card:hover {
  transform: translateY(-2px);
}

.output-card.highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(50, 113, 167, 0.05) 100%);
  box-shadow: 0 10px 25px -5px rgba(50, 113, 167, 0.1);
}

.output-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(50, 113, 167, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.output-card.highlight .output-card-icon {
  background-color: var(--accent);
}

.output-card-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

.output-card.highlight .output-card-icon svg {
  fill: var(--text-light);
}

.output-card-content {
  flex: 1;
}

.output-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.output-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.output-card.highlight .output-value {
  color: var(--accent);
}

.output-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* Climate tips */
.climate-tips-card {
  border-left: 4px solid var(--accent);
  background-color: rgba(50, 113, 167, 0.05);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
  box-shadow: var(--box-shadow-sm);
}

.tips-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.tip-icon {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.tips-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tip-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* Dark mode overrides for color picker */
body.dark-mode #estimatorCanvas {
  background-color: #121824;
}

body.dark-mode .radio-toggle-label-v:has(input:checked) {
  background-color: rgba(50, 113, 167, 0.1);
  border-color: var(--accent);
}

/* Responsive Estimator */
@media (max-width: 992px) {
  .estimator-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  .estimator-outputs-grid {
    grid-template-columns: 1fr;
  }
  .output-card {
    padding: 1.25rem;
  }
}

/* Handover Card Layout */
.handover-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--box-shadow-md);
  transition: background-color var(--transition-medium), border-color var(--transition-medium);
  text-align: center;
}

.handover-canvas-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 340;
  background-color: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

body.dark-mode .handover-canvas-wrapper {
  background-color: #0b111e;
}

.handover-success-box {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.handover-success-box.active {
  opacity: 1;
  max-height: 250px;
  margin-top: 1.5rem;
}
