/* --- THEME SYSTEM --- */
:root {
  /* Default Theme (Kurumsal - Koyu Lacivert & Bakır/Bronz) */
  --primary-color: #0a1628;
  --secondary-color: #c98a4b;
  --bg-color: #f5f3ef;
  --text-color: #2c2c2c;
  --header-bg: #0a1628;
  --card-bg: #ffffff;
  --border-color: #d9d3cb;
  --footer-bg: #0a1628;
  --hero-overlay: rgba(10, 22, 40, 0.55);
  --accent-light: #f0e6d8;
  --section-alt: #eae5dd;
}

/* Theme: Elite (Siyah & Altın) */
[data-theme="elite"] {
  --primary-color: #1a1a1a;
  --secondary-color: #c9a84c;
  --bg-color: #111111;
  --text-color: #e0e0e0;
  --header-bg: #000;
  --card-bg: #1e1e1e;
  --border-color: #333;
  --footer-bg: #000;
  --hero-overlay: rgba(0, 0, 0, 0.6);
  --accent-light: #2a2a2a;
  --section-alt: #1a1a1a;
}

/* Theme: Modern (Beyaz & Mavi) */
[data-theme="modern"] {
  --primary-color: #1a3a5c;
  --secondary-color: #2980b9;
  --bg-color: #fafafa;
  --text-color: #212529;
  --header-bg: #1a3a5c;
  --card-bg: #ffffff;
  --border-color: #dee2e6;
  --footer-bg: #15304d;
  --hero-overlay: rgba(26, 58, 92, 0.45);
  --accent-light: #e8f0f8;
  --section-alt: #f0f4f8;
}

/* Theme: Industrial (Koyu Gri & Kehribar) */
[data-theme="industrial"] {
  --primary-color: #2d3436;
  --secondary-color: #d4a017;
  --bg-color: #ecede9;
  --text-color: #212529;
  --header-bg: #2d3436;
  --card-bg: #fff;
  --border-color: #ced4da;
  --footer-bg: #1e2122;
  --hero-overlay: rgba(45, 52, 54, 0.55);
  --accent-light: #f5f0e0;
  --section-alt: #e0ddd5;
}

/* Theme: Nature (Yeşil & Toprak) */
[data-theme="nature"] {
  --primary-color: #2d6a4f;
  --secondary-color: #b5834a;
  --bg-color: #f7f4ed;
  --text-color: #283618;
  --header-bg: #2d6a4f;
  --card-bg: #fff;
  --border-color: #ccd5ae;
  --footer-bg: #1b4332;
  --hero-overlay: rgba(45, 106, 79, 0.45);
  --accent-light: #eef0e0;
  --section-alt: #e8e5d8;
}

/* Theme: Minimalist (Siyah & Beyaz) */
[data-theme="minimalist"] {
  --primary-color: #111111;
  --secondary-color: #c0392b;
  --bg-color: #ffffff;
  --text-color: #333333;
  --header-bg: #ffffff;
  --card-bg: #f8f8f8;
  --border-color: #e0e0e0;
  --footer-bg: #111111;
  --hero-overlay: rgba(0, 0, 0, 0.25);
  --accent-light: #f5f5f5;
  --section-alt: #f0f0f0;
}

/* Override default header text color for light headers like Minimalist */
[data-theme="minimalist"] header {
  color: #000;
  border-bottom: 1px solid #eee;
}

[data-theme="minimalist"] nav a {
  color: #000;
}

[data-theme="minimalist"] nav a:hover,
[data-theme="minimalist"] nav a.active {
  color: var(--secondary-color);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
}

header {
  background: var(--header-bg);
  color: #fff;
  padding: 5px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary-color);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.logo-text span {
  color: #fff;
  font-weight: 400;
}

[data-theme="minimalist"] .logo-text span {
  color: #000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.info-icon {
  font-size: 2rem;
  background: var(--accent-light);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--secondary-color);
}

.info-text h4 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.contact-form .form-row {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

nav a:hover,
nav a.active {
  color: var(--secondary-color);
}

.contact-btn {
  background: var(--secondary-color);
  color: #fff;
  /* Buton yazısı her zaman beyaz kalsın */
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.contact-btn:hover {
  background: var(--primary-color);
}

section {
  padding: 100px 40px;
  text-align: center;
  min-height: 60vh;
}

section h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  margin: 12px auto 0;
  border-radius: 2px;
}

section>p {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  opacity: 0.85;
}

/* Stats Section */
.stats-banner {
  background: var(--primary-color);
  color: #fff;
  padding: 60px 40px;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  overflow: hidden;
}

.stat-item {
  text-align: center;
  min-width: 150px;
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.stat-item:nth-child(2) {
  transform: translateX(80px);
  transition-delay: 0.15s;
}

.stat-item:nth-child(3) {
  transform: translateX(-80px);
  transition-delay: 0.3s;
}

.stat-item:nth-child(4) {
  transform: translateX(80px);
  transition-delay: 0.45s;
}

.stats-banner.stats-visible .stat-item {
  opacity: 1;
  transform: translateX(0);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary-color);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  margin-top: 8px;
  opacity: 0.85;
  font-weight: 300;
}

/* Why Choose Us */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.feature-card {
  background: var(--card-bg);
  padding: 40px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 3px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border-bottom-color: var(--secondary-color);
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 18px;
  display: block;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.8;
}

/* CTA Band */
.cta-band {
  background: linear-gradient(135deg, var(--primary-color) 0%, #162d4a 100%);
  color: #fff;
  padding: 80px 40px;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.cta-band h2::after {
  background: var(--secondary-color);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta-band .btn {
  background: var(--secondary-color);
  font-size: 1.1rem;
  padding: 15px 40px;
}

#hero {
  height: 90vh;
  background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('../img/hero_bg.jpg') no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Hero with media (video/image) */
#hero.hero-with-media {
  background: var(--primary-color);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(0.7);
  z-index: 0;
  object-fit: contain;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#hero h1 {
  font-size: 5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 3px 3px 15px #000;
  animation: slideUp 1.5s ease-out forwards;
}

#hero p {
  font-size: 1.8rem;
  max-width: 900px;
  margin-bottom: 50px;
}

.btn {
  background: var(--secondary-color);
  color: #fff;
  padding: 18px 50px;
  font-size: 1.4rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

/* Hizmetler Sekme Stili */
.services-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  overflow-x: auto;
  padding: 0 10px 10px;
}

.services-tab-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  min-width: 160px;
  white-space: nowrap;
  font-size: 1rem;
}

.services-tab-btn.active {
  background: var(--secondary-color);
  color: #fff;
  border: 2px solid #fff;
}

.services-tab-btn:hover {
  background: var(--secondary-color);
  opacity: 0.9;
}

.services-tab-content {
  display: none;
}

.services-tab-content.active {
  display: block;
}

.services-tab-image {
  width: 70%;
  max-width: 900px;
  max-height: 400px;
  object-fit: cover;
  border-radius: 16px;
  margin: 20px auto 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: block;
}

.services-description {
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.8;
}

.services-description strong {
  color: var(--primary-color);
}

/* Projeler Sekme Stili */
.project-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  overflow-x: auto;
  padding-bottom: 10px;
}

.project-tab-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  min-width: 180px;
  white-space: nowrap;
}

.project-tab-btn.active {
  background: var(--secondary-color);
  color: #fff;
  border: 2px solid #fff;
}

.project-tab-btn:hover {
  background: var(--secondary-color);
  opacity: 0.9;
}

.project-tab-content {
  display: none;
}

.project-tab-content.active {
  display: block;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Slider Specific Styles */
.project-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.project-slider-container {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

#projeler .project-grid {
  display: flex;
  grid-template-columns: none;
  gap: 30px;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  width: max-content;
  margin: 0;
}

#projeler .project-card {
  width: 350px;
  flex-shrink: 0;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(128, 128, 128, 0.8); /* Sleek gray as requested */
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-arrow:hover {
  background: rgba(80, 80, 80, 1);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
  left: 0;
}

.slider-arrow.next {
  right: 0;
}

@media (max-width: 768px) {
  .project-slider-wrapper {
    padding: 0 10px;
  }
  
  .slider-arrow {
    display: none; /* Hide arrows on mobile, use native scroll */
  }
  
  .project-slider-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  #projeler .project-card {
    width: 280px;
  }
}

.project-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: 0.4s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 4px solid var(--secondary-color);
}

.project-info {
  padding: 20px;
  text-align: left;
}

.project-info h4 {
  margin: 0 0 10px;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.project-info p {
  margin: 0;
  color: var(--text-color);
  font-size: 1rem;
}

/* Floating Buttons */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: var(--primary-color);
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

/* Grid for Images */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.grid img:hover {
  transform: scale(1.05);
}

.grid img:nth-child(1) {
  transition-delay: 0.2s;
}

.grid img:nth-child(2) {
  transition-delay: 0.4s;
}

.grid img:nth-child(3) {
  transition-delay: 0.6s;
}

/* Scroll Trigger Styles */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  will-change: transform, opacity;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation Variants */
.animate-zoom {
  transform: scale(0.8) translateY(100px);
}

.animate-zoom.visible {
  animation: zoomIn 1.2s ease-out forwards;
}

.animate-left {
  transform: translateX(-150px);
}

.animate-left.visible {
  animation: slideFromLeft 1.2s ease-out forwards;
}

.animate-right {
  transform: translateX(150px);
}

.animate-right.visible {
  animation: slideFromRight 1.2s ease-out forwards;
}

/* Corner Animation Variants */
.animate-corner-tl {
  opacity: 0;
  transform: translate(-150px, -150px);
}

.animate-corner-tl.visible {
  animation: slideFromTopLeft 1.2s ease-out forwards;
}

.animate-corner-tr {
  opacity: 0;
  transform: translate(150px, -150px);
}

.animate-corner-tr.visible {
  animation: slideFromTopRight 1.2s ease-out forwards;
}

.animate-corner-bl {
  opacity: 0;
  transform: translate(-150px, 150px);
}

.animate-corner-bl.visible {
  animation: slideFromBottomLeft 1.2s ease-out forwards;
}

.animate-corner-br {
  opacity: 0;
  transform: translate(150px, 150px);
}

.animate-corner-br.visible {
  animation: slideFromBottomRight 1.2s ease-out forwards;
}

/* Grid Delays */
.grid .animate-on-scroll.visible:nth-child(1) {
  transition-delay: 0.1s;
  animation-delay: 0.1s;
}

.grid .animate-on-scroll.visible:nth-child(2) {
  transition-delay: 0.3s;
  animation-delay: 0.3s;
}

.grid .animate-on-scroll.visible:nth-child(3) {
  transition-delay: 0.5s;
  animation-delay: 0.5s;
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  gap: 25px;
}

.contact-form input,
.contact-form textarea {
  padding: 18px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  width: 100%;
}

.contact-form textarea {
  min-height: 150px;
}

footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 60px 40px;
  text-align: center;
}

/* ===== GALLERY PAGE ===== */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.gallery-tab-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  font-size: 1rem;
}

.gallery-tab-btn.active {
  background: var(--secondary-color);
  border: 2px solid #fff;
}

.gallery-tab-btn:hover {
  background: var(--secondary-color);
  opacity: 0.9;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px 15px 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
}

.gallery-item-title {
  color: #fff;
  font-weight: bold;
  display: block;
  font-size: 1rem;
}

.gallery-item-category {
  color: var(--secondary-color);
  font-size: 0.85rem;
  display: block;
  margin-top: 4px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--secondary-color);
}

.lightbox-title {
  color: #fff;
  margin-top: 15px;
  font-size: 1.1rem;
  text-align: center;
}

/* Contact Container */
.contact-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Image Link Wrapper */
.img-link-wrapper {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.img-link-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.img-link-wrapper:hover img {
  transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 9999;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hamburger X Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Minimalist theme hamburger color */
[data-theme="minimalist"] .hamburger span {
  background: #000;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {

  .hamburger {
    display: flex;
  }

  header {
    padding: 10px 15px;
  }

  #main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 63, 0.97);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  #main-nav.nav-open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  #main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  #main-nav ul li a {
    font-size: 1.4rem;
    padding: 10px 20px;
  }

  .contact-btn {
    display: none;
  }

  .logo img {
    height: 60px;
  }

  section {
    padding: 60px 20px;
    min-height: auto;
  }

  #hero {
    height: 70vh;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  #hero p {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
  }

  .services-tabs,
  .project-tabs {
    gap: 8px;
    padding: 0 5px;
  }

  .services-tab-btn,
  .project-tab-btn {
    min-width: 120px;
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .services-tab-image {
    width: 100%;
    max-height: 250px;
  }

  .services-description {
    font-size: 1rem;
    padding: 0 10px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card img {
    height: 200px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .grid img {
    height: 220px;
  }

  footer {
    padding: 30px 20px;
  }

  footer p {
    font-size: 0.9rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 14px;
    font-size: 1rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .gallery-item img {
    height: 180px;
  }

  .gallery-item-overlay {
    transform: translateY(0);
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.7));
    padding: 10px;
  }

  .gallery-tab-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .lightbox img {
    max-width: 95%;
    max-height: 70vh;
  }

  .stats-banner {
    padding: 40px 20px;
    gap: 30px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .feature-card {
    padding: 25px 15px;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .feature-card h3 {
    font-size: 1rem;
  }

  .feature-card p {
    font-size: 0.85rem;
  }

  .cta-band {
    padding: 50px 20px;
  }

  .cta-band h2 {
    font-size: 1.6rem;
  }

  .cta-band p {
    font-size: 1rem;
  }

  section h2 {
    font-size: 1.8rem;
  }

  section h2::after {
    width: 45px;
    height: 3px;
  }
}

/* Extra Small Screens */
@media (max-width: 480px) {

  #hero {
    height: 60vh;
  }

  #hero h1 {
    font-size: 1.8rem;
  }

  #hero p {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .btn {
    padding: 10px 25px;
    font-size: 1rem;
  }

  .services-tab-btn,
  .project-tab-btn {
    min-width: 100px;
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 40px 15px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(100px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-150px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(150px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(150px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideFromTopLeft {
  from {
    opacity: 0;
    transform: translate(-150px, -150px);
  }

  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes slideFromTopRight {
  from {
    opacity: 0;
    transform: translate(150px, -150px);
  }

  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes slideFromBottomLeft {
  from {
    opacity: 0;
    transform: translate(-150px, 150px);
  }

  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes slideFromBottomRight {
  from {
    opacity: 0;
    transform: translate(150px, 150px);
  }

  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}