:root {
  --primary-color: #1a1a1a;
  --secondary-color: #2c2c2c;
  --accent-color: #2a2d3d;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --bg-light: #f8f8f8;
  --bg-white: #ffffff;
  --border-color: #e5e5e5;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.8;
}

li {
  font-weight: 200;
  font-style: italic;
}

.navbar li,
.nav li,
.pagination li,
.breadcrumb li {
  font-style: normal;
  font-weight: inherit;
}

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

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .lead {
    font-size: 1.1rem;
  }
}

/* Navigation */
.navbar {
  padding: 1.5rem 0;
  background: var(--bg-white) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  margin-right: 2rem;
}

/* Modern Header Styles */
.modern-header {
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  padding: 1.5rem 0;
}

.modern-logo {
  display: flex;
  align-items: center;
  color: var(--text-dark) !important;
}

.navbar-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

@media (max-width: 991px) {
  .navbar-logo {
    height: 50px;
  }
}

.modern-nav .nav-link {
  color: #000000 !important;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

.modern-nav .nav-link:hover,
.modern-nav .nav-link.active {
  color: var(--accent-color) !important;
  opacity: 1;
}

.modern-nav .nav-link::after {
  display: none;
}

.modern-icon {
  padding: 0.5rem !important;
  color: #000000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-icon:hover {
  opacity: 0.7;
}

.modern-icon svg {
  width: 18px;
  height: 18px;
}

.modern-header .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.3);
}

.modern-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.modern-nav {
  gap: 2.5rem;
}

.navbar-brand img {
  object-fit: contain;
}

.navbar-brand img[src=""],
.navbar-brand img:not([src]) {
  display: none;
}

.modern-container {
  width: min(1180px, calc(100% - 120px));
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.navbar .modern-container {
  justify-content: space-between;
}

.navbar-nav .nav-link {
  color: #373B4D !important;
  font-weight: 500;
  padding: 0.5rem 1.25rem !important;
  transition: var(--transition);
  position: relative;
}

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

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

.navbar-nav .nav-link:hover {
  color: #d3d3d3 !important;
}

.navbar-nav .btn {
  margin-left: 1rem;
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.navbar-nav .btn:hover {
  background: var(--primary-color);
  color: var(--bg-white);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 120px;
}

.modern-hero {
  padding-top: 140px;
  padding-bottom: 80px;
}

.modern-hero-frame {
  width: min(1180px, calc(100% - 120px));
  margin: 0 auto;
  position: relative;
}

.modern-hero-img {
  width: 100%;
  height: 70vh;
  min-height: 480px;
  object-fit: cover;
  display: block;
}

.modern-caption {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  width: min(640px, calc(100% - 120px));
  padding: 2.5rem 3rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.modern-caption .caption-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 1.25rem;
}

.modern-caption h1 {
  font-size: 2.75rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.modern-caption .lead {
  font-size: 1.05rem;
  font-weight: 400;
  color: #333333;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Modern Hero Controls */
.modern-hero .carousel-control-prev,
.modern-hero .carousel-control-next {
  width: 50px;
  height: 50px;
  background: #ffffff !important;
  border: none;
  border-radius: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modern-hero .carousel-control-prev:hover,
.modern-hero .carousel-control-next:hover {
  background: #f5f5f5 !important;
  opacity: 1;
}

.modern-hero .carousel-control-prev {
  left: 20px;
}

.modern-hero .carousel-control-next {
  right: 20px;
}

.modern-control-icon {
  font-size: 2.5rem;
  font-weight: 300;
  color: #000000;
  line-height: 1;
  display: block;
}

.modern-hero .carousel-control-prev-icon,
.modern-hero .carousel-control-next-icon {
  display: none;
}

@media (max-width: 992px) {

  .modern-container,
  .modern-hero-frame {
    width: calc(100% - 60px);
  }

  .modern-header .navbar-collapse {
    margin-top: 1.25rem;
  }

  .modern-nav {
    gap: 1.5rem;
  }

  .modern-hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .modern-hero-img {
    height: 60vh;
    min-height: 360px;
  }

  .modern-caption {
    width: 80%;
    padding: 2.5rem 3rem;
  }

  .modern-caption h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {

  .modern-container,
  .modern-hero-frame {
    width: calc(100% - 40px);
  }

  .modern-hero {
    padding-top: 110px;
    padding-bottom: 50px;
  }

  .modern-hero-img {
    height: 55vh;
    min-height: 300px;
  }

  .modern-caption {
    width: 90%;
    padding: 2rem;
    bottom: 5%;
  }

  .modern-caption h1 {
    font-size: 1.75rem;
  }

  .modern-caption .lead {
    font-size: 0.95rem;
  }

  .modern-hero .carousel-control-prev,
  .modern-hero .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .modern-hero .carousel-control-prev {
    left: 10px;
  }

  .modern-hero .carousel-control-next {
    right: 10px;
  }

  .modern-control-icon {
    font-size: 2rem;
  }
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-color);
}

.section-title .lead {
  margin-top: 1.5rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: var(--transition);
  background: var(--bg-white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

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

.card-body {
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card-text {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Feature Cards */
.feature-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 0;
  border: 1px solid var(--border-color);
  min-height: 200px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover::before {
  left: 0;
}

.feature-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card h5 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* Buttons */
.btn {
  border-radius: 0;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent-color);
  border-color: var(--accent-color);
  /* color: var(--text-dark); */
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

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

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

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* Background Sections */
.bg-light {
  background: var(--bg-light) !important;
}

.bg-dark {
  background: var(--primary-color) !important;
}

/* Statistics Section */
.stats-section {
  background: var(--primary-color);
  color: var(--bg-white);
  padding: 5rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */
footer {
  background: var(--primary-color) !important;
  color: var(--bg-white);
  padding: 3rem 0 2rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--accent-color);
}

/* Forms */
.form-control {
  border-radius: 0;
  border: 2px solid var(--border-color);
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease;
}

/* Utility Classes */
.text-accent {
  color: var(--accent-color);
}

.shadow-sm {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Container */
.container {
  max-width: 1200px;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Accessibility */
a:focus,
button:focus,
input:focus {
  outline: 3px solid rgba(212, 175, 55, 0.5);
  outline-offset: 2px;
}

/* Grid Spacing */
.g-4>* {
  padding: 1rem;
}

/* Project Filter Buttons */
.project-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.project-filter button {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-dark);
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  transition: var(--transition);
  cursor: pointer;
}

.project-filter button:hover,
.project-filter button.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--bg-white);
}

/* Testimonials */
.testimonial-item {
  padding: 2rem;
  background: var(--bg-white);
  border-left: 4px solid var(--accent-color);
  margin-bottom: 2rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text-dark);
}

/* Blog Cards */
.blog-card {
  background: var(--bg-white);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-date {
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Utilities */
@media (max-width: 576px) {
  section {
    padding: 3rem 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

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

/* Material Cards Hover Effect */
.material-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none !important;
  /* Remove border to look cleaner with image */
}

.material-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: -1;
}

.material-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  /* Dark overlay for text readability */
}

.material-content {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.material-card:hover .material-bg {
  opacity: 1;
}

.material-card:hover .material-content h5,
.material-card:hover .material-content p {
  color: #ffffff !important;
}

.material-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Remove the default before pseudo-element on hover for these specific cards if desired, 
   or keep it. Let's keep it but maybe adjust color if needed. 
   Actually, the image covers everything, so the top border might be hidden or look weird.
   Let's hide the top border accent on hover for material cards to let the image shine.
*/
.material-card:hover::before {
  opacity: 0;
}

/* =========================================
   LATEST PROJECTS SECTION REDESIGN
   ========================================= */

.latest-projects-section {
  background-color: #fff;
  padding-bottom: 6rem;
}

.section-heading {
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  color: #000;
}

.heading-line {
  width: 60px;
  height: 4px;
  background-color: #000;
  margin-bottom: 2rem;
}

.project-categories {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
}

.project-categories a {
  text-decoration: none;
  color: #000;
  transition: color 0.3s ease;
}

.project-categories a.active,
.project-categories a:hover {
  color: #d4af37;
  /* Gold accent color or use var(--accent-color) if preferred */
}

.project-categories .separator {
  margin: 0 10px;
  color: #ccc;
}

/* Grid Layout */
.project-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  height: 600px;
  /* Fixed height for the strip look */
}

.project-item {
  position: relative;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

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

/* Hover Effects */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* Dark overlay */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-content {
  color: #fff;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.project-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.project-content p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  line-height: 1.4;
}

.read-more-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background-color: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background-color: #000;
  color: #fff;
}

/* Hover States */
.project-item:hover img {
  transform: scale(1.1);
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-item:hover .project-content {
  transform: translateY(0);
}

/* Navigation Buttons */
.project-nav {
  display: flex;
  gap: 10px;
}

.nav-btn {
  width: 40px;
  height: 40px;
  background: #999;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.nav-btn:hover {
  background: #000;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
    height: auto;
  }

  .project-item {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .section-heading {
    font-size: 2rem;
  }

  .project-categories {
    text-align: left;
    margin-top: 1rem;
    font-size: 0.9rem;
  }

  .col-md-6.text-md-end {
    text-align: left !important;
  }
}

/* =========================================
   HEADER & NAVIGATION REDESIGN
   ========================================= */

.modern-header-white {
  background: #ffffff !important;
  box-shadow: none !important;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

.modern-header-white.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05) !important;
  padding: 1rem 0;
}

/* Logo Dark Mode (Invert White Logo) */
.modern-logo-dark .navbar-logo {
  filter: invert(1);
  /* Turns white logo to black */
  height: 40px;
  /* Adjust size as needed */
}

/* Navigation Links */
.modern-nav-dark .nav-link {
  color: #000000 !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  /* Small font size */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  /* Wide spacing */
  padding: 0.5rem 1rem !important;
  transition: opacity 0.3s ease;
}

.modern-nav-dark .nav-link:hover,
.modern-nav-dark .nav-link.active {
  opacity: 0.6;
  color: #000000 !important;
}

/* Icons in Nav */
.modern-nav-dark .icon-item .nav-link {
  padding: 0.5rem 0.75rem !important;
}

.modern-nav-dark .icon-item svg {
  width: 14px;
  height: 14px;
}

/* =========================================
   HERO SECTION REDESIGN
   ========================================= */

.modern-hero-section {
  position: relative;
  /* Remove top padding as header is transparent/white but we want image to start below or at top? 
     Image shows header is separate white bar. So hero starts after header. */
  padding-top: 90px;
  /* Adjust based on header height */
  padding-bottom: 0;
  background: #fff;
}

.modern-hero-section .carousel-item {
  height: 85vh;
  /* Tall hero */
  min-height: 600px;
  position: relative;
}

.modern-hero-section .modern-hero-img {
  height: 100%;
  object-fit: cover;
}

/* Caption Box - White Box Overlapping Bottom */
.modern-caption-box {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  /* Center horizontally */
  width: min(900px, 90%);
  background: #ffffff;
  padding: 4rem 5rem;
  text-align: center;
  z-index: 10;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.03);
  /* Subtle shadow */
}

.modern-caption-box .caption-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1.5rem;
}

.modern-caption-box h1 {
  font-family: 'Inter', sans-serif;
  /* Or a serif if desired like 'Playfair Display' */
  font-size: 3.5rem;
  font-weight: 300;
  /* Lighter weight for elegance */
  color: #000;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.modern-caption-box .lead {
  font-size: 1rem;
  color: #666;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Controls - White Squares on Edges */
.modern-hero-control {
  width: 60px;
  height: 60px;
  background: #ffffff !important;
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modern-hero-control:hover {
  background: #f0f0f0 !important;
}

.modern-hero-control.carousel-control-prev {
  left: 0;
}

.modern-hero-control.carousel-control-next {
  right: 0;
}

.modern-hero-control .modern-control-icon {
  color: #000;
  font-size: 1.5rem;
  font-weight: 300;
}

/* Responsive Adjustments for Hero */
@media (max-width: 992px) {
  .modern-caption-box {
    width: 90%;
    padding: 3rem 2rem;
  }

  .modern-caption-box h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .modern-hero-section {
    padding-top: 70px;
  }

  .modern-hero-section .carousel-item {
    height: 70vh;
  }

  .modern-caption-box {
    width: 100%;
    padding: 2rem 1.5rem;
    bottom: 0;
  }

  .modern-caption-box h1 {
    font-size: 2rem;
  }

  .modern-hero-control {
    width: 40px;
    height: 40px;
  }
}

/* =========================================
   WELCOME SECTION REDESIGN
   ========================================= */

.welcome-section {
  background-color: #f9f9f9;
  /* Light gray background like reference */
  padding: 6rem 0;
}

.welcome-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #333;
  margin-bottom: 1rem;
}

.welcome-heading {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: #000;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.welcome-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
  text-transform: uppercase;
  /* Reference has uppercase small text */
  font-weight: 400;
  max-width: 90%;
}

.btn-black {
  background-color: #000;
  color: #fff;
  padding: 1rem 2.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  border: none;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-black:hover {
  background-color: #333;
  color: #fff;
  transform: translateY(-2px);
}

/* Image Frame & Layout */
.welcome-image-wrapper {
  position: relative;
  z-index: 2;
  padding-left: 2rem;
  /* Space for the frame offset */
  padding-bottom: 2rem;
}

.welcome-image-frame {
  position: absolute;
  top: 2rem;
  left: 0;
  width: 80%;
  /* Frame doesn't cover full width */
  height: 100%;
  border: 15px solid #e0e0e0;
  /* Thick light gray border */
  z-index: -1;
}

.welcome-img {
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Watermark Experience */
.experience-watermark {
  position: absolute;
  bottom: -40px;
  right: 0;
  display: flex;
  align-items: flex-end;
  z-index: 3;
}

.exp-content {
  text-align: right;
  margin-right: 15px;
}

.exp-number {
  display: block;
  font-size: 6rem;
  font-weight: 800;
  line-height: 0.8;
  color: #e0e0e0;
  /* Very light gray */
}

.exp-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.exp-bar {
  width: 6px;
  height: 80px;
  background-color: #000;
}

/* Responsive Welcome */
@media (max-width: 992px) {
  .welcome-heading {
    font-size: 2.5rem;
  }

  .welcome-image-wrapper {
    margin-top: 3rem;
    padding-left: 1rem;
  }

  .welcome-image-frame {
    width: 90%;
    border-width: 10px;
  }
}

@media (max-width: 768px) {
  .welcome-heading {
    font-size: 2rem;
  }

  .experience-watermark {
    position: relative;
    bottom: 0;
    margin-top: 2rem;
    justify-content: flex-end;
  }
}

/* Parallax CTA */
.parallax-cta {
  background-image: url('../img/paneles-metalicos-arquitectonicos.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  color: #ffffff;
  padding: 6rem 0;
}

.parallax-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  /* Dark overlay for text readability */
  z-index: 1;
}

.parallax-cta .container {
  position: relative;
  z-index: 2;
}

.parallax-cta h3,
.parallax-cta .lead {
  color: #ffffff;
}

@media (max-width: 768px) {
  .parallax-cta {
    background-attachment: scroll;
    /* Better mobile support */
  }
}