:root {
  --primary: #00b5c8;
  --primary-light: #00e6ff;
  --primary-dark: #008c9e;
  --secondary: #0a0a0a;
  --light: #f8f9fa;
  --gray: #5f6c7b;
  --light-gray: #e2e8f0;
  --white: #ffffff;
  --black: #121212;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--secondary);
  background-color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  list-style: none;
}

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  text-align: center;
}

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

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

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--secondary);
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: var(--gray);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

#preloader.loaded {
  opacity: 0;
  pointer-events: none;
}

/* Cube Container */
.cube-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 3D Cube */
.cube {
  width: 60px;
  height: 60px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 2s infinite ease-in-out;
  margin-bottom: 20px;
}

/* Cube Sides */
.side {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--primary);
  opacity: 0.9;
  border-radius: 3px;
  border: 2px solid var(--white);
  box-shadow: 0 0 10px rgba(0, 181, 200, 0.5);
}

/* Positioning Sides */
.front {
  transform: translateZ(30px);
}
.back {
  transform: rotateY(180deg) translateZ(30px);
}
.left {
  transform: rotateY(-90deg) translateZ(30px);
}
.right {
  transform: rotateY(90deg) translateZ(30px);
}
.top {
  transform: rotateX(90deg) translateZ(30px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(30px);
}

/* Loading Text */
.loading-text {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.2rem;
  text-align: center;
  margin-top: 20px;
}

/* Cube Rotation Animation */
@keyframes rotateCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: rotateX(180deg) rotateY(180deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}
/* Header */
#mainHeader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
}

.logo img {
  height: 80px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  z-index: 1001;
}

/* Navigation */
#mainNav ul {
  display: flex;
  gap: 25px;
}

#mainNav ul li a {
  font-weight: 600;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

#mainNav ul li a:hover {
  color: var(--primary);
}

#mainNav ul li a.active {
  color: var(--primary);
}

#mainNav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

#mainNav ul li a:hover::after,
#mainNav ul li a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* Add these properties for opacity */
  background-color: rgba(0, 0, 0, 0.4);
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  mix-blend-mode: multiply;
}

.hero-desktop {
  display: block;
}

.hero-mobile {
  display: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

/* Mobile styles */
@media (max-width: 768px) {
  .hero-desktop {
    display: none;
  }

  .hero-mobile {
    display: block;
  }

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

/* Hero Jot Notes */
.hero-jot-notes {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.jot-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
}

.jot-note i {
  font-size: 1.5rem;
  color: var(--primary-light);
}

/* Quick Estimate Form */
.quick-estimate {
  background-color: var(--white);
  border-radius: 8px;
  padding: 25px;
  margin: 40px auto;
  max-width: 700px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quick-estimate h3 {
  margin-bottom: 20px;
  color: var(--secondary);
}

.quick-estimate-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

/* Dropdown/Select styling */
select.form-control {
  color: var(--secondary);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

select.form-control option {
  color: var(--secondary);
  background-color: var(--white);
}

/* For iOS devices to fix blue color issue */
select.form-control,
select.form-control option {
  -webkit-text-fill-color: var(--secondary);
}

/* Call Button Styles */
.call-button-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.call-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: #28a745;
  color: white;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.call-button:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

.call-button i {
  font-size: 1.2rem;
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: var(--light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(0, 181, 200, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
  font-size: 1.8rem;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--secondary);
}

.feature-card p {
  color: var(--gray);
}

/* Stats Section */
.stats {
  padding: 60px 0;
  background-color: var(--primary);
  color: var(--white);
}

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

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Services Section */
#services {
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

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

.service-card ul {
  text-align: left;
  margin-top: 20px;
}

.service-card ul li {
  margin-bottom: 10px;
  color: var(--gray);
  position: relative;
  padding-left: 20px;
}

.service-card ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Partners Section */
.partners {
  padding: 60px 0;
  background-color: var(--white);
}

.partners-carousel {
  overflow: hidden;
  position: relative;
  margin-top: 40px;
}

.partners-track {
  display: flex;
  animation: scroll 20s linear infinite;
  width: calc(200% + 60px); /* Double width + gap */
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-item {
  min-width: calc(16.666% - 20px); /* 6 items per row with gap */
  margin: 0 10px;
  background-color: var(--white);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.partner-item img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .partner-item {
    min-width: calc(25% - 20px); /* 4 items per row */
  }
}

@media (max-width: 768px) {
  .partner-item {
    min-width: calc(33.333% - 20px); /* 3 items per row */
    height: 100px;
    padding: 15px;
  }
  .partner-item img {
    max-height: 60px;
  }
}

@media (max-width: 480px) {
  .partner-item {
    min-width: calc(50% - 20px); /* 2 items per row */
  }
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background-color: var(--light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
  margin-bottom: 20px;
  color: var(--gray);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.author-info h4 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 5px;
}

.author-info p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Cost Estimator Section */
#estimator {
  padding: 80px 0;
  background-color: var(--white);
}

.estimator-container {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.estimator-form {
  flex: 1;
  background-color: var(--light);
  padding: 30px;
  border-radius: 8px;
}

.estimator-form .form-group {
  margin-bottom: 20px;
}

.estimator-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--secondary);
}

.estimator-results {
  flex: 1;
  background-color: var(--light);
  padding: 30px;
  border-radius: 8px;
}

.results-placeholder {
  text-align: center;
  color: var(--gray);
  padding: 40px 20px;
}

.results-placeholder i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.estimate-result {
  color: var(--secondary);
}

.estimate-details {
  margin-bottom: 20px;
}

.estimate-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--light-gray);
}

.estimate-label {
  font-weight: 600;
}

.price-range {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--primary);
  margin: 30px 0;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.time-estimate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gray);
  margin-bottom: 20px;
}

.time-estimate i {
  color: var(--primary);
}

.note {
  font-size: 0.9rem;
  color: var(--gray);
  padding: 15px;
  background-color: rgba(0, 181, 200, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.note i {
  color: var(--primary);
  margin-top: 2px;
}

/* Contact Section */
#contact {
  padding: 80px 0;
  background-color: var(--light);
}

.contact-container {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  margin-bottom: 20px;
  color: var(--secondary);
}

.contact-info p {
  margin-bottom: 30px;
  color: var(--gray);
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--primary);
  margin-top: 3px;
}

.contact-item h4 {
  margin-bottom: 5px;
  color: var(--secondary);
}

.map-container {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  text-align: center;
  background-color: var(--primary);
  color: var(--white);
}

.cta h2 {
  margin-bottom: 20px;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.cta-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.cta .btn {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.cta .btn:hover {
  background-color: transparent;
  color: var(--white);
}

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

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

/* Footer */
footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col {
  padding: 0 15px;
}

.footer-logo img {
  height: 70px;
  margin-bottom: 20px;
  border-radius: 10px;
}

.footer-about {
  margin-bottom: 20px;
  color: var(--light-gray);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--white);
}

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

.footer-links a {
  color: var(--light-gray);
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--light-gray);
  font-size: 0.95rem;
}

.footer-contact-item i {
  color: var(--primary);
  margin-top: 3px;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: var(--light-gray);
}

.footer-bottom a {
  color: var(--primary-light);
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .features-grid,
  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .estimator-container,
  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-btns,
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 300px;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Mobile Menu */
  .mobile-menu-btn {
    display: block;
  }
  #mainNav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #mainNav.active {
    right: 0;
  }
  #mainNav ul {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  #mainNav ul li a {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .features-grid,
  .services-grid,
  .testimonials-grid,
  .stats-container {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .quick-estimate-form {
    flex-direction: column;
  }
  .form-group {
    min-width: 100%;
  }
}

/* Custom Alert Styles */
.custom-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}

.custom-alert-content {
  background-color: var(--white);
  border-radius: 8px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: alertFadeIn 0.3s ease;
}

@keyframes alertFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-alert-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.custom-alert-message {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 25px;
  line-height: 1.5;
}

.custom-alert-button {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.custom-alert-button:hover {
  background-color: var(--primary-dark);
}
