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

:root {
  --accent-color: #3498db;
  --container-width: 1920px;
  --light-bg: #f9f9f9;
  --primary-color: #e63946;
  --secondary-color: #2c3e50;
  --text-color: #333;
}

body {
  color: var(--text-color);
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.fixed-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--container-width);
  padding: 0 20px;
}

.logo {
  flex: 0 0 auto;
  margin-left: 20px;
  padding: 10px;
}

.navigation {
  align-items: center;
  background: transparent;
  display: flex;
  flex: 0 0 auto;
  gap: 20px;
  margin-right: 20px;
  padding: 0;
}

@media (max-width: 768px) {
  .navigation {
    background: transparent;
  }
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: 20px;
}

.desktop-nav-list {
  background: #fff;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0px 10px;
}

.desktop-nav-list>li>a {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 10px 20px;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.desktop-nav-list>li>a:hover {
  color: var(--primary-color);
}

/* Navigation Dropdown (Desktop) */
.nav-item-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-chevron {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

.desktop-nav .nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 1100;
  margin-top: 10px;
}

/* Arrow indicator */
.desktop-nav .nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.desktop-nav .nav-dropdown-menu li {
  padding: 0;
  margin: 0;
}

.desktop-nav .nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.25s ease;
  text-align: left;
  border-radius: 0;
  white-space: nowrap;
}

.desktop-nav .nav-dropdown-menu a:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
  padding-left: 24px;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.fixed-header {
  background: transparent;
  box-shadow: none;
  left: 0;
  padding: 20px 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

@media (max-width: 768px) {
  .fixed-header {
    position: absolute;
    top: auto;
  }
}

.fixed-header.scrolled {
  background: #fff;
  box-shadow: 0 2px 10px #0000001a;
}

/* Header themes for white background */
.fixed-header.scrolled .desktop-nav-list a,
.legal-header .desktop-nav-list a {
  color: var(--secondary-color);
}

.fixed-header.scrolled .desktop-nav-list a:hover,
.legal-header .desktop-nav-list a:hover {
  color: var(--primary-color);
}

.fixed-header.scrolled .lines-button span,
.fixed-header.scrolled .lines-button span::before,
.fixed-header.scrolled .lines-button span::after,
.legal-header .lines-button span,
.legal-header .lines-button span::before,
.legal-header .lines-button span::after {
  background-color: var(--secondary-color);
}

/* White hamburger when menu is open on dark headers */
.fixed-header.scrolled .lines.close span::before,
.fixed-header.scrolled .lines.close span::after,
.legal-header .lines.close span::before,
.legal-header .lines.close span::after {
  background-color: #fff;
}

/* Ensure middle line is transparent when menu is open */
.fixed-header.scrolled .lines.close span,
.legal-header .lines.close span {
  background-color: transparent;
}

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

.logo img {
  max-height: 60px;
  transition: opacity 0.3s ease;
}

.banner {
  align-items: center;
  background-image: url(/images/celbert_banner-min.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: center;
  width: 100%;
}

/* TODO maybe we can use it */
/* .banner::before {
  background: linear-gradient(
    to bottom,
    #0000004d 0%,
    #00000080 100%
  );
  content: '';
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
} */

.banner-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: 800px;
  min-height: 100vh;
  padding: 2rem;
  padding-bottom: 4rem;
  padding-top: 4rem;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 1;
}

@media (max-width: 400px) {
  .banner-content {
    justify-content: space-between;
    padding: 2rem 1rem;
    padding: 2rem 1rem;
    padding-top: 8rem;
    padding-top: 8rem;
  }

  .facts-container {
    bottom: 1rem;
    gap: 1rem;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
  }

  .fact-circle {
    height: 150px;
    width: 150px;
  }

  .banner-heading {
    margin-bottom: auto;
  }
}

.banner-heading {
  backdrop-filter: blur(8px);
  background: #2c3e50b3;
  border-radius: 100px;
  box-shadow: 0 4px 20px #0000004d;
  display: inline-block;
  margin-bottom: 20px;
  overflow: hidden;
  padding: 1rem 2rem;
  position: relative;
  z-index: 1;
}

.banner h1 {
  color: #fff;
  font-size: 2.5rem;
  margin: 0;
  text-shadow: 2px 2px 4px #0000004d;
}

.facts-container {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  position: relative;
}

@media (max-width: 400px) {
  .facts-container {
    gap: 1rem;
  }

  .fact-circle {
    height: 150px;
    width: 150px;
  }

  .fact-number-container {
    top: 45%;
  }

  .fact-label-container {
    bottom: 20%;
  }

  .banner-heading {
    padding: 0.8rem 1.5rem;
  }

  .banner h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
}

@media (max-width: 576px) {
  .banner h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
}

@media (max-width: 740px) {
  .banner h1 {
    line-height: 1.2;
  }
}

@media (max-width: 360px) {
  .banner h1 {
    font-size: 1.5rem;
  }
}

.fact-item {
  position: relative;
  text-align: center;
}

.fact-circle {
  animation: circleOpacity 1s ease-out forwards;
  backdrop-filter: blur(5px);
  background: #0000;
  border-radius: 50%;
  box-shadow: 0 8px 32px #0000004d;
  height: 175px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  position: relative;
  width: 175px;
}

@media (max-width: 400px) {
  .fact-circle {
    height: 160px;
    width: 160px;
  }
}

@keyframes circleOpacity {
  0% {
    background-color: #0000;
  }

  100% {
    background-color: #00000066;
  }
}

.fact-circle::after {
  animation: borderDraw 1s ease-out forwards;
  border: 2px solid #ffffff4d;
  border-radius: 50%;
  content: '';
  height: 0;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
}

@keyframes borderDraw {
  to {
    height: 100%;
    width: 100%;
  }
}

.fact-circle::before {
  animation: solidBorder 1s ease-out forwards 1s;
  border: 1px solid #fff0;
  border-radius: 50%;
  content: '';
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

@keyframes solidBorder {
  0% {
    border-color: #0000;
  }

  100% {
    border-color: #ffffff33;
  }
}

.fact-circle-progress {
  animation: circleDraw 2s ease-out forwards;
  border-radius: 50%;
  clip: rect(0, 200px, 200px, 100px);
  height: 100%;
  position: absolute;
  width: 100%;
}

.fact-circle-progress::before {
  background: conic-gradient(var(--circle-color) 0%,
      var(--circle-color) 50%,
      transparent 50%);
  border-radius: 50%;
  content: '';
  height: 100%;
  position: absolute;
  width: 100%;
}

.fact-number-container {
  align-items: center;
  display: flex;
  gap: 0.2rem;
  justify-content: center;
  left: 50%;
  padding: 0 1rem;
  position: absolute;
  text-align: center;
  top: 40%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.fact-number {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 2px 2px 4px #0000004d;
}

.fact-plus {
  color: #fff;
  display: none;
  font-size: 3.5rem;
  margin-left: 0.2rem;
  text-shadow: 2px 2px 4px #0000004d;
}

.fact-label-container {
  bottom: 10%;
  left: 50%;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1;
}

.experience .fact-label-container {
  bottom: 25%;
}

.fact-label {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px #0000004d;
}

.experience .fact-circle-progress {
  --circle-color: #007bff;
}

.projects .fact-circle-progress {
  --circle-color: #28a745;
}

@keyframes circleDraw {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes numberPulse {
  50% {
    transform: scale(1.1);
  }

  0%,
  100% {
    transform: scale(1);
  }
}

@keyframes iconFloat {
  50% {
    transform: translateY(-10px) rotateX(5deg);
  }

  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }
}

@keyframes experienceIcon {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes projectsIcon {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

.mobile-nav {
  display: none;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  padding: 10px;
}

.bar {
  background: var(--text-color);
  display: block;
  height: 3px;
  margin: 5px 0;
  transition: all 0.3s ease;
  width: 25px;
}

/* .desktop-nav {
  display: block;
} */

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary-color);
}

.hero {
  background: linear-gradient(135deg,
      var(--primary-color) 0%,
      var(--accent-color) 100%);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 80px;
  position: relative;
  text-align: center;
}

.hero::before {
  animation: float 10s ease-in-out infinite;
  background: #ffffff1a;
  border-radius: 50%;
  content: '';
  height: 200px;
  position: absolute;
  right: -200px;
  top: 0;
  width: 200px;
}

.hero::after {
  animation: float 10s ease-in-out 5s infinite;
  background: #ffffff1a;
  border-radius: 50%;
  bottom: 0;
  content: '';
  height: 200px;
  left: -200px;
  position: absolute;
  width: 200px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 40px;
}

.stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 40px;
}

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

.stat-number {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1em;
  opacity: 0.9;
}

.services {
  padding: 80px 0;
  position: relative;
}

.services::before {
  background: var(--light-bg);
  border-radius: 50%;
  content: '';
  height: 200px;
  opacity: 0.1;
  position: absolute;
  right: 0;
  top: 0;
  width: 200px;
}

.services h2 {
  margin-bottom: 50px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px #0000000d;
  padding: 30px;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.service-card li::before {
  color: var(--primary-color);
  content: '•';
  left: 0;
  position: absolute;
}

.portfolio {
  background: var(--light-bg);
  padding: 80px 0;
}

.contact {
  padding: 80px 0;
}

.contact-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px #0000000d;
  padding: 30px;
}

.contact-card p {
  margin-bottom: 15px;
}

.contact-card a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

footer {
  background: var(--secondary-color);
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

.services-grid,
.portfolio-grid,
.contact-info {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card h3,
.contact-card h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact h1,
.portfolio h1,
.portfolio h2,
.contact h2 {
  margin-bottom: 50px;
  text-align: center;
}

@keyframes float {
  50% {
    transform: translateY(-20px);
  }

  0%,
  100% {
    transform: translateY(0px);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    align-items: center;
    background: transparent;
    display: flex;
    justify-content: space-between;
  }

  .lines-button {
    -moz-appearance: none;
    -webkit-appearance: none;
    -webkit-transition: background 0.3s;
    appearance: none;
    border: none;
    border-radius: none;
    box-shadow: none;
    cursor: pointer;
    float: right;
    font-size: 0;
    height: 40px;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-indent: -9999px;
    transition: background 0.3s;
    width: 60px;
    z-index: 1000;
  }

  .lines-button:focus {
    outline: none;
  }

  .lines-button span {
    background: #fff;
    border-radius: 0.57143rem;
    display: block;
    height: 6px;
    left: 12px;
    position: absolute;
    right: 12px;
  }

  .lines-button span::before,
  .lines-button span::after {
    background-color: #fff;
    border-radius: 0.57143rem;
    content: '';
    display: block;
    height: 6px;
    left: 0;
    position: absolute;
    width: 100%;
  }

  .lines-button span::before {
    top: -12px;
  }

  .lines-button span::after {
    bottom: -12px;
  }

  .lines span {
    -webkit-transition: background 0s 0.3s;
    transition: background 0s 0.3s;
  }

  .lines span::before,
  .lines span::after {
    -webkit-transition-delay: 0.3s, 0s;
    -webkit-transition-duration: 0.3s, 0.3s;
    transition-delay: 0.3s, 0s;
    transition-duration: 0.3s, 0.3s;
  }

  .lines span::before {
    -webkit-transition-property: top, -webkit-transform;
    transition-property: top, transform;
  }

  .lines span::after {
    -webkit-transition-property: bottom, -webkit-transform;
    transition-property: bottom, transform;
  }

  .lines.close span::before {
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    top: 0;
    transform: rotate(45deg);
  }

  .lines.close span::after {
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    bottom: 0;
    transform: rotate(-45deg);
  }

  .lines.close span::before,
  .lines.close span::after {
    -webkit-transition-delay: 0s, 0.3s;
    transition-delay: 0s, 0.3s;
  }

  .mobile-nav .logo img {
    max-height: 40px;
  }

  .mobile-menu {
    background: #000c;
    display: none;
    height: 100%;
    left: 0;
    overflow-y: auto;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
  }

  .lines,
  .lines.close,
  .lines.close span {
    background: none;
  }

  @media (max-width: 767px) {
    .mobile-menu.active {
      display: block;
    }
  }

  .mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
  }

  .close-menu {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
  }

  .close-menu span {
    background: #fff;
    display: block;
    height: 2px;
    margin: 4px 0;
    transition: all 0.3s ease;
    width: 20px;
  }

  .menu-content {
    padding: 2rem;
    padding-top: 150px;
  }

  .menu-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .menu-content > ul > li {
    border-bottom: 1px solid #ffffff1a;
    margin-bottom: 0;
  }

  .menu-content a {
    color: #fff;
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 1.1rem 0;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .menu-content a:hover {
    color: var(--primary-color);
  }

  /* Mobile Dropdown Styles */
  .mobile-dropdown-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-dropdown-trigger a {
    border-bottom: none !important;
    padding: 1.1rem 0 !important;
    flex: 1;
  }

  .mobile-dropdown-toggle {
    background: none !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.2rem !important;
    padding: 1.1rem !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-dropdown.open .mobile-dropdown-toggle {
    transform: rotate(180deg);
  }

  .mobile-dropdown-menu {
    list-style: none;
    padding-left: 20px !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .mobile-dropdown-menu li {
    margin-bottom: 8px;
  }

  .mobile-dropdown-menu li:last-child {
    margin-bottom: 0;
  }

  .mobile-dropdown.open .mobile-dropdown-menu {
    max-height: 200px;
    margin-top: 5px;
    margin-bottom: 10px;
  }

  .mobile-dropdown-menu a {
    font-size: 1.05rem !important;
    opacity: 0.8;
    border-bottom: none !important;
    padding: 8px 0 !important;
  }

  .mobile-dropdown-menu a:hover {
    opacity: 1;
    color: var(--primary-color) !important;
  }

  .mobile-nav button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
  }

  .mobile-nav .logo img {
    max-height: 40px;
  }
}

/* .container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
} */

header {
  align-items: center;
  background: #fff;
  box-shadow: 0 2px 5px #0000001a;
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
}

.logo img {
  max-height: 80px;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.hero {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.services-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px #0000001a;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card i {
  color: #007bff;
  font-size: 2.5em;
  margin-bottom: 20px;
}

.portfolio {
  background: #f9f9f9;
  padding: 80px 0;
}

.portfolio-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.subpage-main {
  padding-bottom: 60px;
  padding-top: 150px;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  max-width: 900px;
}

#contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.banner-cta-wrap {
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.banner-cta {
  background: var(--primary-color);
  border-radius: 999px;
  box-shadow: 0 4px 16px #00000040;
  color: #fff;
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}

.banner-cta:hover {
  background: #c1121f;
  color: #fff;
  transform: translateY(-3px);
}

#contact-form input,
#contact-form textarea {
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  padding: 15px;
}

#contact-form textarea {
  height: 150px;
  resize: vertical;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

#contact-form button {
  /* background: #007bff;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-size: 1em;
  padding: 15px;
  transition: background 0.3s ease; */

  background: var(--primary-color);
  color: #ffffff;
  width: auto;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 40px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#contact-form button:hover {
  background: #0056b3;
}

footer {
  background: #333;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

.social-links {
  margin-bottom: 20px;
}

.social-links a {
  color: #fff;
  font-size: 1.5em;
  margin: 0 15px;
  transition: color 0.3s ease;
}

nav a:hover,
.social-links a:hover {
  color: #007bff;
}

.services,
.contact {
  padding: 80px 0;
}

.contact h1,
.services h2,
.portfolio h1,
.portfolio h2,
.contact h2 {
  margin-bottom: 50px;
  text-align: center;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero h1 {
    font-size: 2em;
  }

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

.contact {
  margin-bottom: 50px;
}

.contact-card p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-card p i {
  color: var(--primary-color);
  font-size: 1.2rem;
  width: 20px;
}

.contact-card p a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card p a:hover {
  color: var(--primary-color);
}

footer {
  background-color: var(--primary-color);
  color: white;
  padding: 20px 0;
  text-align: center;
}

footer a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 0.8;
}

.footer-legal {
  margin-top: 12px;
}

/* --- Final CTA on Home Page --- */
.final-cta {
  padding: 60px 0;
  text-align: center;
  background-color: var(--light-bg);
}

.centered-cta {
  display: inline-block;
  float: none;
  margin: 0 auto;
}

/* --- Contact Page Redesign --- */
.contact-hero {
  background-color: #fff;
  padding: 120px 0 60px;
  text-align: center;
}

.hero-text h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
  font-weight: 300;
}

.hero-text h1 span {
  color: var(--primary-color);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2.5rem;
}

.contact-box-wrapper {
  background-color: #eef2f6;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 4rem 0;
}

.contact-box {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  text-align: left;
  margin-bottom: 2rem;
}

.profile-image {
  flex: 0 0 auto;
  text-align: center;
}

.profile-image img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-image h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.profile-content {
  flex: 1;
}

.profile-content h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
  font-weight: 700;
}

.profile-content p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.quick-contact-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.contact-link i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.contact-link .fab.fa-facebook-messenger {
  color: #0084ff;
}

.contact-link:hover {
  color: var(--primary-color);
}

.action-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.action-btn {
  padding: 0.8rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
}

.action-btn:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
}

.btn-outline {
  background-color: #fff;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

/* Contact Form Section */
.contact-form-section {
  padding: 60px 0;
}

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-wrapper h2 {
  margin-bottom: 2rem;
  text-align: center;
}

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

.contact-form-section .form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form-section .form-group label {
  color: #333333;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  display: block;
}

.contact-form-section .form-group input,
.contact-form-section .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-section .form-group input::placeholder,
.contact-form-section .form-group textarea::placeholder {
  color: #a0a0a0;
  opacity: 1;
}

.contact-form-section .form-group input:focus,
.contact-form-section .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.contact-form-section .form-group textarea {
  height: 150px;
  resize: vertical;
}

/* Shared checkbox label styling for consent and quote lists */
.contact-form-section .checkbox-label,
.consent-group .checkbox-label,
.checkbox-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  cursor: pointer;
  user-select: none;
}

.contact-form-section .checkbox-label input[type="checkbox"],
.consent-group .checkbox-label input[type="checkbox"],
.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.contact-form-section .checkbox-label span,
.consent-group .checkbox-label span,
.checkbox-row span {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.45;
  position: relative;
  top: -4px;
  margin-left: 5px;
}

.contact-form-section .checkbox-label span a,
.consent-group .checkbox-label span a,
.checkbox-row span a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-form-section .checkbox-label span a:hover,
.consent-group .checkbox-label span a:hover,
.checkbox-row span a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .contact-form-section .checkbox-label span,
  .consent-group .checkbox-label span,
  .checkbox-row span {
    top: -4px;
  }
}

.contact-form-section .checkbox-label {
  margin-bottom: 2rem;
}

.contact-form-section .submit-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.contact-form-section .submit-btn {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  width: auto !important;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 40px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-form-section .submit-btn:hover {
  background: #d62839 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.contact-form-section .submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(230, 57, 70, 0.3);
}

.contact-form-section .submit-btn i {
  transition: transform 0.3s ease;
}

.contact-form-section .submit-btn:hover i {
  transform: translateX(4px);
}


/* Contact Details Section */
.contact-details-section {
  padding: 60px 0 100px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.details-info-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.details-item h3 {
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  font-size: 1.4rem;
  font-weight: 700;
}

.details-item p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.details-item i {
  color: var(--primary-color);
}

.details-item a {
  text-decoration: none;
  color: inherit;
}

.company-info-box {
  padding: 0;
}

.company-info-box h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.map-wrapper {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .quick-contact-row {
    justify-content: center;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .action-btn {
    width: 100%;
  }

  .contact-box {
    padding: 1.5rem;
  }

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



  .hero-text h1 {
    font-size: 1.8rem;
  }
}
