/* ==========================================================================
   IDC - Italian Design & Construction Stylesheet
   Design Language: Premium Italian, Elegant, High-Contrast Modern
   ========================================================================== */

/* Design Tokens & Variables */
:root {
  /* Colors */
  --primary: #0D2A26;           /* Deep Forest Olive Green */
  --primary-light: #1A3E39;
  --primary-dark: #061513;
  --secondary: #D4AF37;         /* Classic Metallic Gold */
  --secondary-light: #E9C967;
  --secondary-dark: #A9851E;
  
  --bg-light: #FAF8F5;          /* Warm Cream Ivory */
  --bg-dark: #111B19;           /* Sophisticated Forest Dark */
  --bg-white: #FFFFFF;
  --bg-dark-card: #1B2926;
  
  --text-dark: #1A2E2A;
  --text-muted: #6B7C79;
  --text-light: #E4ECEB;
  --text-white: #FFFFFF;
  --text-gold: #D4AF37;
  
  --success: #2E7D32;           /* Subtle Italian Green */
  --danger: #C62828;            /* Subtle Italian Red */
  
  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', 'Inter', sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  
  /* Animation */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 4px 10px rgba(13, 42, 38, 0.05);
  --shadow-md: 0 10px 30px rgba(13, 42, 38, 0.08);
  --shadow-lg: 0 20px 40px rgba(13, 42, 38, 0.12);
  --shadow-gold: 0 10px 25px rgba(212, 175, 55, 0.2);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
}

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

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

li {
  list-style: none;
}

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

.section-padding {
  padding: 100px 0;
}

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

.bg-light {
  background-color: #F2EFEA;
}

.text-gold {
  color: var(--text-gold);
}

.text-white {
  color: var(--text-white);
}

.text-gray {
  color: var(--text-muted);
}

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

/* Grid Layouts */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2-cols { grid-template-columns: repeat(2, 1fr); }
.grid-3-cols { grid-template-columns: repeat(3, 1fr); }
.grid-4-cols { grid-template-columns: repeat(4, 1fr); }
.grid-12-cols { grid-template-columns: repeat(12, 1fr); }

.col-span-5 { grid-column: span 5; }
.col-span-7 { grid-column: span 7; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  gap: 8px;
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

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

.btn-primary:hover {
  background-color: var(--secondary-light);
  border-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-white);
  border-color: var(--text-white);
}

.btn-secondary:hover {
  background-color: var(--text-white);
  color: var(--primary);
  transform: translateY(-2px);
}

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

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

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

.btn-outline-gold:hover {
  background-color: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

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

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

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-dark);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(212, 175, 55, 0.1);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin: 0 auto 20px;
}

.loader-logo {
  font-family: var(--font-serif);
  color: var(--text-white);
  font-size: 2rem;
  letter-spacing: 4px;
  font-weight: 700;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Navigation Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
  background-color: rgba(13, 42, 38, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--secondary);
  transition: var(--transition);
}

.navbar.scrolled .logo-img {
  height: 40px;
  width: 40px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 1px;
  line-height: 1;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-subtext {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary);
  line-height: 1;
  margin-top: 4px;
}

.gold-dot {
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  position: relative;
  padding: 8px 0;
}

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

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

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

.nav-cta-mobile {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  background-image: url('hero_villa_costa_sol.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-white);
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(5, 19, 17, 0.95) 0%, rgba(13, 42, 38, 0.6) 100%);
  z-index: 1;
}

.hero-content-container {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s forwards 0.2s;
}

.badge-line {
  width: 20px;
  height: 1px;
  background-color: var(--secondary);
}

.badge-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
}

.hero-title {
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  opacity: 0;
  animation: fadeInUp 0.8s forwards 0.4s;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  opacity: 0;
  animation: fadeInUp 0.8s forwards 0.6s;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
  opacity: 0;
  animation: fadeInUp 0.8s forwards 0.8s;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s forwards 1s;
}

.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-feat-item i {
  color: var(--secondary);
  width: 18px;
  height: 18px;
}

.hero-separator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  z-index: 2;
}

.hero-separator svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 48px;
}

.hero-separator .shape-fill {
  fill: var(--bg-light);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Title Wrapper */
.section-title-wrapper {
  margin-bottom: 60px;
}

.sub-title {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-light);
  margin-bottom: 12px;
  position: relative;
  padding-left: 28px;
}

.sub-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 2px;
  background-color: var(--secondary);
}

.section-title {
  font-size: 2.8rem;
  font-weight: 600;
  color: inherit;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* About Section Styles */
.about-image-wrapper {
  position: relative;
  padding-right: 30px;
  padding-bottom: 30px;
}

.about-image-card {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.about-image-card:hover .about-img {
  transform: scale(1.05);
}

.about-image-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 90%;
  height: 90%;
  border: 1px solid var(--secondary);
  border-radius: var(--radius-md);
  z-index: 1;
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background-color: var(--primary);
  color: var(--text-white);
  padding: 24px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 4px solid var(--secondary);
  box-shadow: var(--shadow-md);
}

.exp-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--secondary);
}

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

.about-content {
  padding-left: 40px;
}

.about-text-lead {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.about-bullets {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.bullet-item {
  display: flex;
  gap: 20px;
}

.bullet-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-dark);
}

.bullet-icon i {
  width: 20px;
  height: 20px;
}

.bullet-content h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.bullet-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Why Choose Us Section Styles */
.why-choose .sub-title::before {
  background-color: var(--secondary);
}

.why-choose .sub-title {
  color: var(--secondary);
}

.feature-card {
  position: relative;
  background-color: var(--bg-dark-card);
  padding: 50px 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-lg);
}

.card-icon-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.card-icon-wrapper i {
  color: var(--secondary);
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.card-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.feature-card:hover .card-number {
  color: rgba(212, 175, 55, 0.15);
}

.card-title {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 16px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.feature-card:hover .card-border {
  width: 100%;
}

.why-callout {
  margin-top: 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  padding: 50px 80px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.callout-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-white);
  text-align: left;
  line-height: 1.4;
  flex: 1;
}

/* Services Section Filters & Cards */
.services-filter {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: transparent;
  border: 1px solid #E2E8F0;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.services-grid {
  transition: var(--transition);
}

.service-item-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid #F1F5F9;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-item-card.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.9);
}

.service-item-card.show {
  display: flex;
  animation: fadeInScale 0.4s forwards;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.service-item-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 42, 38, 0.1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(13, 42, 38, 0.05);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-item-card:hover .service-icon {
  background-color: var(--primary);
  color: var(--text-white);
}

.service-icon i {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.service-title {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Portfolio Section Styles */
.portfolio-grid {
  gap: 40px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--bg-white);
}

.portfolio-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 480px;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(5, 19, 17, 0.95) 0%, rgba(13, 42, 38, 0.5) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  opacity: 0;
  transition: var(--transition);
  transform: translateY(10px);
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-tag {
  align-self: flex-start;
  background-color: var(--secondary);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-white);
  margin-bottom: 12px;
}

.project-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 300;
}

/* Calculator Section Styles */
.calculator {
  background-color: var(--bg-light);
}

.calc-info {
  padding-right: 40px;
}

.calc-text {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.calc-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.calc-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.calc-info-item i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.calc-badge {
  background-color: rgba(13, 42, 38, 0.04);
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 14px;
}

.calc-badge i {
  color: var(--primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.calc-badge p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Calculator Card */
.calc-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(13, 42, 38, 0.05);
}

.calc-card-title {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 30px;
  border-bottom: 1px solid #ECEFF1;
  padding-bottom: 16px;
}

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.form-select, .form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #CFD8DC;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: #FAFBFB;
  transition: var(--transition-fast);
  outline: none;
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 42, 38, 0.1);
  background-color: var(--bg-white);
}

.slider-value {
  color: var(--secondary-dark);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Range Slider Styling */
.form-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #ECEFF1;
  outline: none;
  margin: 15px 0;
}

.form-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.form-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Checkbox Grid Custom Design */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.checkbox-container {
  display: block;
  position: relative;
  padding-left: 30px;
  margin-bottom: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
  color: var(--text-dark);
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 1px;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #FAFBFB;
  border: 1px solid #CFD8DC;
  border-radius: 3px;
  transition: var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
  display: block;
}

.checkbox-container .checkmark::after {
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Live Estimate Box */
.live-estimate-box {
  background-color: rgba(13, 42, 38, 0.05);
  border: 1px dashed rgba(13, 42, 38, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin: 30px 0;
}

.estimate-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.estimate-price {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.estimate-info {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calc-form-actions {
  display: flex;
  gap: 16px;
}

.calc-form-actions button {
  flex: 1;
}

/* Contact Section Grid & Details */
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-card {
  display: flex;
  gap: 20px;
  background-color: var(--bg-dark-card);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.contact-detail-card:not(.no-link):hover {
  border-color: var(--secondary);
  transform: translateX(5px);
  background-color: rgba(13, 42, 38, 0.4);
}

.detail-icon {
  width: 52px;
  height: 52px;
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-icon i {
  width: 22px;
  height: 22px;
}

.detail-content h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 6px;
}

.detail-val {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 4px;
  word-break: break-all;
}

.detail-action {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-form-box {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.contact-form-box .form-input, .contact-form-box .form-textarea {
  background-color: #F8F9FA;
}

.form-title {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ECEFF1;
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

/* Footer Styles */
.footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand .logo-link {
  margin-bottom: 20px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-white);
  padding-left: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-info li {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-info li i {
  width: 18px;
  height: 18px;
  color: var(--secondary);
  flex-shrink: 0;
}

.footer-contact-info a:hover {
  color: var(--text-white);
}

.footer-bottom {
  padding-top: 30px;
  text-align: center;
}

.copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: var(--text-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128C7E;
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
}

.whatsapp-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--danger);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--text-white);
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsive Breakpoints */

@media (max-width: 1024px) {
  h1.hero-title {
    font-size: 3.2rem;
  }
  .grid-3-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-12-cols {
    display: flex;
    flex-direction: column;
  }
  .calc-info {
    padding-right: 0;
    margin-bottom: 40px;
  }
  .about-img {
    height: 440px;
  }
  .why-callout {
    flex-direction: column;
    padding: 40px;
    text-align: center;
    gap: 24px;
  }
  .callout-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Navigation Mobile */
  .menu-toggle {
    display: block;
    z-index: 1001;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--primary-dark);
    flex-direction: column;
    padding: 100px 40px 40px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    transition: var(--transition);
    z-index: 1000;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 24px;
    width: 100%;
    margin-bottom: 40px;
  }
  
  .nav-link {
    font-size: 1.1rem;
    display: block;
  }
  
  .nav-cta {
    display: none;
  }
  
  .nav-cta-mobile {
    display: block;
    width: 100%;
  }
  
  /* Layout modifications */
  .grid-2-cols, .grid-3-cols, .grid-4-cols {
    grid-template-columns: 1fr;
  }
  
  .section-padding {
    padding: 70px 0;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  /* Hero */
  .hero {
    height: auto;
    padding: 120px 0 80px;
  }
  
  h1.hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 16px;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  
  /* About */
  .about-content {
    padding-left: 0;
    margin-top: 40px;
  }
  
  .about-image-wrapper {
    padding-right: 0;
    padding-bottom: 0;
  }
  
  .about-image-accent {
    display: none;
  }
  
  .experience-badge {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 20px;
    justify-content: center;
  }
  
  /* Portfolio */
  .portfolio-img-wrapper {
    height: 350px;
  }
  
  .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
    padding: 24px;
  }
  
  .project-title {
    font-size: 1.4rem;
  }
  
  /* Calculator Card */
  .calc-card {
    padding: 24px;
  }
  
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-form-actions {
    flex-direction: column;
  }
  
  /* Contact Form */
  .contact-form-box {
    padding: 24px;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-icon {
    width: 26px;
    height: 26px;
  }
}

/* Footer Social Links */
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icon-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon-link:hover {
  background-color: var(--secondary);
  color: var(--primary-dark);
  border-color: var(--secondary);
  transform: translateY(-3px);
}

/* ==========================================================================
   Portfolio Dynamic, Filters, Video & Lightbox Styles
   ========================================================================== */

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.portfolio-load-more {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.portfolio-load-more.hidden {
  display: none;
}

/* Video items play overlay icon */
.portfolio-item.video-item {
  cursor: pointer;
}

.portfolio-item.video-item .portfolio-img-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background-color: rgba(13, 42, 38, 0.85);
  border: 2px solid var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23D4AF37' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='5 3 19 12 5 21 5 3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(50% + 2.5px) center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.portfolio-item.video-item:hover .portfolio-img-wrapper::after {
  background-color: var(--secondary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%230D2A26' stroke='%230D2A26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='5 3 19 12 5 21 5 3'/%3E%3C/svg%3E");
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: var(--shadow-gold);
}

/* Lightbox Premium Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 19, 17, 0.96);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 10000;
  display: none;
  opacity: 0;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
  padding: 20px;
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10010;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  background-color: var(--danger);
  border-color: var(--danger);
  transform: rotate(90deg);
}

.lightbox-close i {
  width: 24px;
  height: 24px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10010;
  transition: var(--transition-fast);
}

.lightbox-nav:hover {
  background-color: var(--secondary);
  color: var(--primary-dark);
  border-color: var(--secondary);
  box-shadow: var(--shadow-gold);
}

.lightbox-nav i {
  width: 28px;
  height: 28px;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-content-wrapper {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10005;
}

.lightbox-media-container {
  width: 100%;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  background-color: rgba(0, 0, 0, 0.4);
}

.lightbox-media-container img,
.lightbox-media-container video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: lightboxZoom 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lightbox-caption {
  margin-top: 24px;
  text-align: center;
  color: var(--text-white);
  width: 100%;
}

.lightbox-caption h3 {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--secondary);
}

.lightbox-caption p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

@keyframes lightboxZoom {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Lightbox Responsive Adjustments */
@media (max-width: 768px) {
  .lightbox {
    padding: 10px;
  }
  .lightbox-nav {
    width: 46px;
    height: 46px;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
  .lightbox-media-container {
    height: 60vh;
  }
  .lightbox-caption h3 {
    font-size: 1.1rem;
  }
  .lightbox-caption p {
    font-size: 0.85rem;
  }
}
