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

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--white);
  opacity: 0;
  animation: fadeIn 0.8s ease-in-out forwards;
}

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

/* Color Variables */
:root {
  --primary-yellow: #ffd700;
  --secondary-yellow: #ffa500;
  --accent-yellow: #ffff00;
  --dark-gray: #333333;
  --light-gray: #666666;
  --white: #ffffff;
  --black: #000000;
  --dark-bg: #1a1a1a;
}

/* Utility Classes */
.yellow {
  color: var(--primary-yellow);
}
.accent-yellow {
  color: var(--accent-yellow);
}
.underline {
  width: 60px;
  height: 3px;
  background-color: var(--primary-yellow);
  margin: 10px auto;
}

/* Top Header */
.top-header {
  background-color: var(--black);
  color: var(--white);
  padding: 20px 0;
  min-height: 150px;
}

.top-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  min-height: 100px;
}

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

.logo-image {
  height: 100px;
  width: auto;
  max-width: 300px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
  animation: twinkle 2s ease-in-out infinite alternate;
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

@keyframes twinkle {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.02);
  }
}

.contact-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  padding: 8px 12px;
  height: 60px;
}

.contact-item i {
  font-size: 16px;
  color: var(--primary-yellow);
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 12px;
  font-weight: bold;
}

.contact-value {
  font-size: 11px;
}

/* Navigation Bar */
.navbar {
  background-color: var(--primary-yellow);
  padding: 0;
}

.navbar .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  justify-content: center;
  align-items: center;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  padding: 15px 20px;
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color 0.3s;
  font-size: 12px;
  letter-spacing: 1px;
}

.nav-link:hover {
  background-color: var(--black);
  color: var(--white);
}

.nav-link.active {
  background-color: var(--black);
  color: var(--white);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  color: var(--dark-gray);
  text-decoration: none;
  padding: 12px 20px;
  display: block;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s;
}

.dropdown-menu a:hover {
  background-color: var(--primary-yellow);
  color: var(--black);
}

.mobile-menu-toggle {
  display: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 70vh;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide:nth-child(1) {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("./images/construction-site-cranes.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide:nth-child(2) {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("./images/construction-sunset.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide:nth-child(3) {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("./images/architectural-blueprint.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1a2e; /* Fallback color if image doesn't load */
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-text {
  flex: 1;
  color: var(--white);
  z-index: 2;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.hero-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.nav-arrow {
  background-color: var(--dark-gray);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  pointer-events: all;
  transition: background-color 0.3s;
}

.nav-arrow:hover {
  background-color: var(--primary-yellow);
}

/* Hero Dots */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--primary-yellow);
}

.dot:hover {
  background-color: var(--white);
}

/* Services Intro Section */
.services-intro {
  background-color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.services-icon {
  font-size: 48px;
  color: var(--primary-yellow);
  margin-bottom: 20px;
}

.services-intro h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--dark-gray);
  margin-bottom: 20px;
}

.services-intro p {
  font-size: 1.1rem;
  color: var(--light-gray);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Service Cards Section */
.service-cards {
  background-color: var(--white);
  padding: 60px 0;
}

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

/* Hide additional services by default */
.hidden-service {
  display: none;
}

/* Show all services when expanded */
.service-grid.show-all .hidden-service {
  display: block;
}

.service-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

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

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  padding: 30px 20px 20px;
  text-align: center;
}

.service-overlay h3 {
  font-size: 1.2rem;
  font-weight: bold;
}

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

.btn-primary {
  background-color: var(--primary-yellow);
  color: var(--black);
  border: none;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: var(--secondary-yellow);
}

/* Success Rate Section */
.success-rate {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("images/construction-sunset.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.success-rate h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

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

.stat-icon {
  font-size: 48px;
  color: var(--primary-yellow);
  margin-bottom: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.stat-number.animated {
  color: var(--primary-yellow);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

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

/* Testimonials Section */
.testimonials {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("images/architectural-blueprint.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  margin-top: 60px;
}

.testimonials h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.testimonials-slider {
  position: relative;
  margin: 60px 0;
}

.testimonials-container {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin: 60px 0;
}

.testimonial-card {
  background-color: var(--white);
  color: var(--dark-gray);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.testimonial-card.active {
  display: block;
  opacity: 1;
}

.testimonial-card p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

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

.author-avatar {
  width: 50px;
  height: 50px;
  background-color: var(--primary-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: 20px;
}

.author-name {
  font-weight: bold;
  font-size: 1rem;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.testimonial-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.testimonial-dots .dot.active {
  background-color: var(--primary-yellow);
}

.testimonial-dots .dot:hover {
  background-color: var(--white);
}

/* Why Choose Us Section */
.why-choose-us {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.why-choose-us h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--dark-gray);
  text-align: center;
  margin-bottom: 20px;
}

.why-choose-us h3 {
  font-size: 1.5rem;
  color: var(--dark-gray);
  text-align: center;
  margin-bottom: 20px;
}

.why-choose-us p {
  font-size: 1.1rem;
  color: var(--light-gray);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  line-height: 1.8;
}

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

.feature-item {
  text-align: center;
  padding: 30px 20px;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--black);
  font-size: 24px;
}

.feature-item h4 {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--dark-gray);
  margin-bottom: 15px;
}

.feature-item p {
  color: var(--light-gray);
  line-height: 1.6;
  text-align: left;
}

/* Recent Projects Section */
.recent-projects {
  background-color: var(--white);
  padding: 80px 0;
}

.recent-projects h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--dark-gray);
  text-align: center;
  margin-bottom: 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.project-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

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

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  padding: 30px 20px 20px;
  text-align: center;
}

.project-overlay h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}


/* Contact Form Section */
.contact-form-section {
  background-color: var(--white);
  padding: 80px 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-form h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--dark-gray);
  margin-bottom: 20px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-yellow);
}

.contact-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--white);
}

.contact-details p {
  margin-bottom: 10px;
  line-height: 1.6;
}

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

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

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #555;
  flex-wrap: wrap;
  gap: 20px;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--white);
  color: var(--dark-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: var(--primary-yellow);
  color: var(--black);
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--dark-gray);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s;
  z-index: 1000;
}

.scroll-to-top:hover {
  background-color: var(--primary-yellow);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .top-header .container {
    flex-direction: column;
    gap: 15px;
  }

  .contact-info {
    justify-content: center;
  }

  .mobile-menu-toggle {
    display: block;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-yellow);
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .nav-menu.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background-color: var(--primary-yellow) !important;
    flex-direction: column !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    z-index: 1000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-menu .nav-link {
    padding: 15px 20px;
    color: var(--black);
    text-align: center;
    border-bottom: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    display: block;
    text-decoration: none;
    min-height: 20px;
    line-height: 1.2;
  }
  
  .nav-menu .nav-link.active {
    background-color: var(--black);
    color: var(--white);
  }

  .nav-menu .nav-link:hover {
    background-color: var(--black);
    color: var(--white);
  }

  .dropdown-menu {
    position: static;
    display: none;
    background-color: rgba(0, 0, 0, 0.05);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }



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

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

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

  .hero-text p {
    font-size: 1rem;
  }

  .hero-navigation {
    display: none;
  }

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

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

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

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

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

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .services-intro h2,
  .success-rate h2,
  .testimonials h2,
  .why-choose-us h2,
  .recent-projects h2,
  .contact-form h2 {
    font-size: 2rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }

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

  .logo-image {
    height: 100px;
  }
}

/* Smooth scrolling and transitions */
html {
  scroll-behavior: smooth;
}

* {
  transition: all 0.3s ease;
}

/* Smooth page load */

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

/* Smooth hover effects */
.service-card,
.project-card,
.testimonial-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Smooth text animations */
.hero-text h1 {
  animation: slideInLeft 1s ease-out;
}

.hero-text p {
  animation: slideInLeft 1s ease-out 0.3s both;
}

.hero-image {
  animation: slideInRight 1s ease-out 0.2s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Loading animation for images */
img {
  transition: opacity 0.3s;
}

img[src=""] {
  opacity: 0;
}


