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

:root {
  --primary-color: #0088cc;
  --dark-color: #1a1a1a;
  --light-color: #ffffff;
  --gray-color: #f5f5f5;
  --text-dark: #333333;
  --text-light: #666666;
  --overlay-dark: rgba(0, 0, 0, 0.7);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

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

/* Updated page loader styles for logo drop animation */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  color: var(--light-color);
}

/* Logo animation - drops from top while rotating */
.loader-logo {
  width: 250px;
  height: auto;
  animation: logoDrop 1s ease-out forwards;
}

@keyframes logoDrop {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 0;
  }
  60% {
    transform: translateY(20px) rotate(360deg);
    opacity: 1;
  }
  80% {
    transform: translateY(-10px) rotate(360deg);
  }
  100% {
    transform: translateY(0) rotate(360deg);
    opacity: 1;
  }
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--dark-color);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  /* Fixed white bar issue by ensuring minimum height */
  min-height: 70px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  /* Added minimum height to prevent layout shift */
  min-height: 70px;
}

.logo img {
  max-width: 200px;
  height: auto;
  /* Fixed height to prevent layout shift on load */
  display: block;
}

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

nav a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--light-color);
  transition: all 0.3s ease;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: 70px;
}

.slider-container {
  position: relative;
  height: 100%;
}

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

.slide.active {
  opacity: 1;
}

/* Reduced overlay opacity from 0.7 to 0.4 for lighter background */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--light-color);
  padding: 20px;
}

.slide-subtitle {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.slide-title {
  font-size: 72px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.slide-title .highlight {
  color: var(--primary-color);
  position: relative;
}

.slide-text {
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 300;
}

.slide-subtext {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.btn-primary:hover {
  background: #006699;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 136, 204, 0.4);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: var(--light-color);
  border: none;
  font-size: 48px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 0.4);
}

.slider-nav.prev {
  left: 20px;
}

.slider-nav.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.slider-dots button {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--light-color);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots button.active {
  background: var(--light-color);
}

/* Services Section */
.services-section {
  background: var(--primary-color);
  padding: 80px 0;
  color: var(--light-color);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 18px;
  opacity: 0.9;
}

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

.service-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-card p {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.9;
}

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

.projects-section .section-header h2,
.projects-section .section-header p {
  color: var(--text-dark);
}

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

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 136, 204, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.project-icon {
  color: var(--light-color);
  font-size: 48px;
  font-weight: 300;
}

/* About Section */
.about-section {
  position: relative;
  padding: 80px 0;
  background-image: url('img/karot-kesme.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--light-color);
}

.about-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.about-section .container {
  position: relative;
  z-index: 2;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  min-height: 250px;
}

.about-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.about-text.active {
  opacity: 1;
}

.about-text p {
  font-size: 24px;
  line-height: 1.8;
  margin-bottom: 30px;
}

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

.about-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--light-color);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.about-dot.active {
  background: var(--light-color);
}

/* Contact Section */
.contact-section {
  background: var(--gray-color);
}

.map-container {
  width: 100%;
}

.map-container iframe {
  display: block;
}

.contact-info {
  background: var(--primary-color);
  padding: 60px 0;
  color: var(--light-color);
}

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

.contact-item {
  padding: 20px;
}

.contact-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.contact-item h5 {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.8;
  font-weight: 400;
}

.contact-item a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: opacity 0.3s ease;
}

.contact-item a:hover {
  opacity: 0.8;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Footer */
footer {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 30px 0;
  text-align: center;
}

footer p {
  margin: 5px 0;
}

footer a {
  color: var(--light-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* Call Float (left of WhatsApp) */
.call-float {
  position: fixed;
  bottom: 30px;
  right: 100px; /* 30px (gap from viewport) + 60px (whatsapp width) + 10px gap = 100px */
  width: 60px;
  height: 60px;
  background: #007bff; /* blue phone button */
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.call-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 123, 255, 0.45);
}

/* Call button popup */
.call-float .call-popup {
  position: absolute;
  right: 72px; /* place to the left of the button */
  top: 50%;
  transform: translateY(-50%) translateY(10px) scale(0.95);
  background: #ffffff;
  color: #111;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  display: inline-block;
  line-height: 1;
  letter-spacing: 0.5px;
  animation: callPopupAnim 2.5s linear infinite;
}

@keyframes callPopupAnim {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateY(10px) scale(0.95);
  }
  8% {
    opacity: 1;
    transform: translateY(-50%) translateY(0) scale(1);
  }
  28% {
    opacity: 1;
    transform: translateY(-50%) translateY(0) scale(1);
  }
  36% {
    opacity: 0;
    transform: translateY(-50%) translateY(10px) scale(0.95);
  }
  100% {
    opacity: 0;
  }
}

/* small arrow for popup */
.call-float .call-popup::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

@media (max-width: 480px) {
  .call-float .call-popup {
    right: 50%;
    left: auto;
    bottom: 86px; /* place above when stacked */
    top: auto;
    transform: translateX(50%) translateY(0) scale(1);
  }
  .call-float .call-popup::after {
    display: none;
  }
}
/* Responsive: when screen is narrow stack buttons */
@media (max-width: 480px) {
  .whatsapp-float {
    right: 20px;
    bottom: 20px;
    width: 54px;
    height: 54px;
  }
  .call-float {
    right: 20px;
    bottom: 86px; /* place above whatsapp on small screens */
    width: 54px;
    height: 54px;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: var(--light-color);
  font-size: 50px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 2001;
}

.lightbox-close:hover {
  color: var(--primary-color);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: var(--light-color);
  border: none;
  font-size: 48px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 2001;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

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

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.active {
    max-height: 400px;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .slide-title {
    font-size: 48px;
  }

  .slide-text {
    font-size: 20px;
  }

  .slide-subtext {
    font-size: 16px;
  }

  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 32px;
  }

  .section-header h2 {
    font-size: 32px;
  }

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

  .about-text p {
    font-size: 18px;
  }

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

  .lightbox-close {
    top: 15px;
    right: 20px;
    font-size: 40px;
  }

  .lightbox-nav {
    width: 45px;
    height: 45px;
    font-size: 36px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .logo img {
    max-width: 150px;
  }

  .slide-title {
    font-size: 36px;
  }

  .slide-subtitle {
    font-size: 18px;
  }

  .btn {
    padding: 12px 30px;
    font-size: 14px;
  }
}
