/* HTEC Website - Mobile Responsive CSS with Bootstrap Integration */

/* ===== GLOBAL STYLES ===== */
:root {
  --primary-color: #0076FF;
  --primary-hover: #005bb5;
  --dark-bg: #0A1324;
  --dark-secondary: #101A2B;
  --dark-tertiary: #18243A;
  --light-bg: #F5F8FA;
  --light-secondary: #FFFFFF;
  --text-primary: #FFFFFF;
  --text-secondary: #B9C2D0;
  --text-muted: #667383;
  --border-color: #B9C2D0;
  --shadow-light: rgba(0,118,255,0.08);
  --shadow-medium: rgba(0,118,255,0.22);
  --shadow-dark: rgba(10,19,36,0.20);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.5s cubic-bezier(.77,0,.18,1), color 0.5s cubic-bezier(.77,0,.18,1);
}

/* Bootstrap Integration - Override some Bootstrap defaults */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  padding: 0 15px;
}

/* ===== THEME TOGGLE ===== */
#theme-toggle {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 2000;
  background: var(--dark-secondary);
  color: #FFD100;
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, transform 0.4s cubic-bezier(.77,0,.18,1);
  outline: none;
  padding: 0;
  box-shadow: 0 2px 8px var(--shadow-dark);
}

#theme-toggle:active {
  transform: scale(0.92) rotate(20deg);
}

#theme-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
}

body.light-mode #theme-toggle svg {
  transform: rotate(180deg);
}

#theme-toggle:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: scale(1.05);
}

/* ===== HERO SECTION ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 4rem 1rem 3rem 1rem;
  transition: background 0.5s cubic-bezier(.77,0,.18,1), color 0.5s cubic-bezier(.77,0,.18,1);
}

.logo {
  display: block;
  margin: 0 auto 2rem auto;
  max-width: 340px;
  width: 100%;
  height: auto;
}

.hero h1 {
  color: var(--primary-color);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0.5rem 0 0.2rem 0;
  letter-spacing: 2px;
  font-weight: 700;
}

.tagline {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 2rem;
  font-weight: 500;
}

.cta-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 16px var(--shadow-medium);
  display: inline-block;
  min-width: 200px;
}

.cta-btn:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0.7rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--shadow-dark);
  transition: background 0.5s cubic-bezier(.77,0,.18,1), color 0.5s cubic-bezier(.77,0,.18,1);
}

.navbar-logo {
  flex: 0 0 auto;
  margin-right: 1.5rem;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  position: relative;
}

.navbar-logo.show-sticky-logo {
  opacity: 1;
  pointer-events: auto;
}

#sticky-logo {
  max-height: 80px;
  width: auto;
  margin: 0.5rem 0 0.5rem 0;
  display: block;
  transition: var(--transition);
}

.navbar-links {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.navbar a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.navbar a:hover {
  color: var(--primary-color);
  background: rgba(0,118,255,0.1);
}

/* ===== SECTIONS ===== */
section {
  padding: 4rem 0;
  position: relative;
}

section h2 {
  color: var(--primary-color);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 2rem;
  letter-spacing: 1px;
  font-weight: 800;
  text-align: center;
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--dark-secondary);
  margin: 0;
  padding: 4rem 0;
  transition: background 0.5s cubic-bezier(.77,0,.18,1), color 0.5s cubic-bezier(.77,0,.18,1);
}

.about-flex {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about-image {
  flex: 1 1 400px;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 8px 40px var(--shadow-medium);
  object-fit: cover;
  transition: var(--transition);
}

.about-image img:hover {
  transform: scale(1.02);
}

.about-content {
  flex: 2 1 500px;
  min-width: 300px;
  max-width: 700px;
}

.about h2 {
  color: var(--primary-color);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-align: left;
}

.about-subtitle {
  color: var(--text-muted);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.about-list {
  margin: 1.5rem 0;
  padding-left: 1.5em;
  color: var(--primary-color);
  font-size: 1.08rem;
}

.about-list li {
  margin-bottom: 0.8em;
  color: var(--text-secondary);
  font-weight: 500;
}

.about-list strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ===== SERVICES SECTION ===== */
.services {
  background: var(--dark-bg);
  padding: 4rem 0;
  transition: background 0.5s cubic-bezier(.77,0,.18,1), color 0.5s cubic-bezier(.77,0,.18,1);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem;
  background: var(--dark-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: var(--transition);
  text-align: center;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--shadow-medium);
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  background: var(--dark-tertiary);
  box-shadow: 0 4px 20px var(--shadow-medium);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary-color);
  transform: scale(1.1);
}

.service-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* ===== TEAM SECTION ===== */
.team {
  background: var(--dark-secondary);
  padding: 4rem 0;
  transition: background 0.5s cubic-bezier(.77,0,.18,1), color 0.5s cubic-bezier(.77,0,.18,1);
}

.team-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.team-card {
  background: var(--dark-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-medium);
  border-color: var(--primary-color);
}

.team-card h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.team-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* ===== CLIENTS SECTION ===== */
.client-section {
  background: var(--dark-bg);
  padding-top: 2.5rem;
  padding-bottom: 5rem;
  overflow: hidden;
  transition: background 0.5s cubic-bezier(.77,0,.18,1), color 0.5s cubic-bezier(.77,0,.18,1);
}

.client-title {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.client-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 500;
}

.client-slider {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  width: max-content;
  animation: client-scroll 40s linear infinite;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
}

.slider-track img {
  height: 100px;
  max-width: 200px;
  min-width: 120px;
  padding: 16px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
  background: #fff;
  filter: grayscale(100%);
  border-radius: 12px;
  transition: filter 0.3s, transform 0.3s, background 0.3s;
  object-fit: contain;
}

body:not(.light-mode) .slider-track img {
  background: rgba(255,255,255,0.92);
}

.slider-track img:hover {
  filter: grayscale(0%);
  transform: scale(1.07);
  z-index: 2;
}

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

/* Side fade effect for client slider */
.client-slider::before,
.client-slider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.client-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--fade-bg, #fff) 0%, transparent 100%);
}
.client-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--fade-bg, #fff) 0%, transparent 100%);
}
body.light-mode .client-slider::before,
body.light-mode .client-slider::after {
  --fade-bg: #f5f8fa;
}
body:not(.light-mode) .client-slider::before,
body:not(.light-mode) .client-slider::after {
  --fade-bg: #101A2B;
}

/* ===== WORKS SECTION ===== */
.our-works-section {
  background: var(--dark-secondary);
  padding: 4rem 0;
  transition: background 0.5s cubic-bezier(.77,0,.18,1), color 0.5s cubic-bezier(.77,0,.18,1);
}

/* --- Masonry Layout for Works Gallery --- */
.works-gallery {
  column-count: 4;
  column-gap: 1.5rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.works-gallery-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.works-gallery-item img {
  width: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  transition: transform 0.2s;
}

.works-gallery-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,118,255,0.18);
  z-index: 2;
}

/* Responsive Masonry Columns */
@media (max-width: 1200px) {
  .works-gallery {
    column-count: 3;
  }
}
@media (max-width: 900px) {
  .works-gallery {
    column-count: 2;
  }
}
@media (max-width: 600px) {
  .works-gallery {
    column-count: 1;
  }
}

.load-more-btn {
  display: block;
  margin: 2rem auto 0 auto;
  padding: 1rem 2.5rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--shadow-medium);
  transition: var(--transition);
  min-width: 200px;
}

.load-more-btn:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--dark-bg);
  padding: 4rem 0;
  transition: background 0.5s cubic-bezier(.77,0,.18,1), color 0.5s cubic-bezier(.77,0,.18,1);
}

.contact-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-info {
  color: var(--text-secondary);
  font-size: 1.08rem;
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: underline;
  word-break: break-all;
  transition: var(--transition);
}

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

.map-embed {
  position: relative;
  text-align: center;
  margin-top: 2rem;
}

.map-embed iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 15px;
  box-shadow: 0 4px 20px var(--shadow-medium);
}

.directions-btn {
  display: inline-block;
  margin: 1.5rem auto 0 auto;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: #fff !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 4px 16px var(--shadow-medium);
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  text-align: center;
  min-width: 200px;
  text-decoration: none !important;
}

.directions-btn:hover,
.directions-btn:focus,
.directions-btn:active {
  background: var(--primary-hover);
  color: #fff !important;
  box-shadow: 0 6px 20px var(--shadow-medium);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.contact-form {
  background: var(--dark-secondary);
  border-radius: 20px;
  box-shadow: 0 8px 40px var(--shadow-medium);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem 1rem 1.2rem 3rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--dark-tertiary);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  resize: none;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  background: var(--dark-bg);
  box-shadow: 0 0 0 3px rgba(0,118,255,0.1);
}

.form-group label {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1rem;
  pointer-events: none;
  background: var(--dark-secondary);
  transition: var(--transition);
  padding: 0 0.5rem;
  z-index: 3;
  border-radius: 6px;
}

.form-group input:not(:placeholder-shown) + label,
.form-group input:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group textarea:focus + label {
  top: -0.5rem;
  left: 1rem;
  font-size: 0.9rem;
  color: var(--primary-color);
  background: var(--dark-secondary);
  padding: 0 0.5rem;
}

.contact-form button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 16px var(--shadow-medium);
}

.contact-form button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

.form-note {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 1rem;
  text-align: center;
}

#form-status {
  margin-top: 1rem;
  font-size: 1.05rem;
  text-align: center;
  min-height: 1.5em;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-secondary);
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem 0;
  font-size: 1rem;
  border-top: 1px solid var(--border-color);
  transition: background 0.5s cubic-bezier(.77,0,.18,1), color 0.5s cubic-bezier(.77,0,.18,1);
}

/* ===== MOBILE SIDEBAR ===== */
.navbar-hamburger, .mobile-sidebar {
  display: none;
}

.navbar-hamburger {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  border: none;
  outline: none;
  z-index: 2001;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s;
}

.navbar-hamburger span {
  display: block;
  position: absolute;
  left: 12px;
  right: 12px;
  height: 4px;
  background: #0076FF;
  border-radius: 2px;
  transition: 0.3s;
}

.navbar-hamburger span:nth-child(1) { top: 14px; }
.navbar-hamburger span:nth-child(2) { top: 22px; }
.navbar-hamburger span:nth-child(3) { top: 30px; }

/* Hamburger open animation (add .open class to .navbar-hamburger when sidebar is open) */
.navbar-hamburger.open span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}
.navbar-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.navbar-hamburger.open span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

@media (max-width: 992px) {
  .navbar-hamburger {
    display: flex;
  }
  .navbar-links {
    display: none !important;
  }
  }

  .mobile-sidebar {
    position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 82vw;
  max-width: 340px;
  background: rgba(255,255,255,0.97);
  box-shadow: 4px 0 32px 0 rgba(0,0,0,0.12);
  border-top-right-radius: 28px;
  border-bottom-right-radius: 28px;
  z-index: 2100;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.77,0,.18,1), box-shadow 0.3s;
  will-change: transform;
  display: flex;
  flex-direction: column;
  }
  .mobile-sidebar.open {
  transform: translateX(0);
  box-shadow: 8px 0 40px 0 rgba(0,0,0,0.18);
  }
  .mobile-sidebar-content {
  padding: 3.5rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
  gap: 2.2rem;
  }
  .mobile-sidebar-content a {
    font-size: 1.35rem;
    font-weight: 700;
  color: #101A2B;
    letter-spacing: 1px;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none !important;
}
.mobile-sidebar-content a:hover,
.mobile-sidebar-content a:focus,
.mobile-sidebar-content a:active {
  text-decoration: none !important;
}
.sidebar-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2.1rem;
    color: #0076FF;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2110;
  transition: color 0.2s, transform 0.2s;
}
.sidebar-close:hover {
  color: #005bb5;
  transform: rotate(90deg) scale(1.1);
  }
  .sidebar-overlay {
    position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,19,36,0.18);
  z-index: 2090;
    opacity: 0;
    pointer-events: none;
  transition: opacity 0.32s;
  }
.mobile-sidebar.open + .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }
/* Optional: glassmorphism */
.mobile-sidebar {
  backdrop-filter: blur(12px);
}

/* ===== LIGHT MODE STYLES ===== */
body.light-mode {
  background: var(--light-bg);
  color: var(--dark-bg);
}

body.light-mode .hero {
  background: var(--light-secondary);
}

body.light-mode .tagline {
  color: var(--text-muted);
}

body.light-mode .navbar {
  background: var(--light-secondary);
  border-bottom: 1px solid var(--border-color);
}

body.light-mode .navbar a {
  color: var(--dark-bg);
}

body.light-mode .navbar a:hover {
  color: var(--primary-color);
  background: rgba(0,118,255,0.1);
}

body.light-mode .about {
  background: var(--light-secondary);
}

body.light-mode .about-content p {
  color: var(--text-muted);
}

body.light-mode .about-list li {
  color: var(--text-muted);
}

body.light-mode .about-list strong {
  color: var(--dark-bg);
}

body.light-mode .services {
  background: var(--light-bg);
}

body.light-mode .service-card {
  background: var(--light-secondary);
  border: 1px solid var(--border-color);
}

body.light-mode .service-card:hover {
  box-shadow: 0 12px 40px rgba(0,118,255,0.15);
}

body.light-mode .service-card p {
  color: var(--text-muted);
}

body.light-mode .service-icon {
  background: var(--light-bg);
}

body.light-mode .team {
  background: var(--light-secondary);
}

body.light-mode .team-card {
  background: var(--light-bg);
  border: 1px solid var(--border-color);
}

body.light-mode .team-card p {
  color: var(--text-muted);
}

body.light-mode .client-section {
  background: var(--light-bg);
}

body.light-mode .client-subtitle {
  color: var(--text-muted);
}

body.light-mode .slider-track img {
  background: var(--light-secondary);
  border: 1px solid var(--border-color);
}

body.light-mode .our-works-section {
  background: var(--light-secondary);
}

body.light-mode .works-gallery-item {
  background: var(--light-bg);
}

body.light-mode .contact {
  background: var(--light-bg);
}

body.light-mode .contact-info {
  color: var(--text-muted);
}

body.light-mode .contact-form {
  background: var(--light-secondary);
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
  background: var(--light-bg);
  color: var(--dark-bg);
  border: 2px solid var(--border-color);
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus {
  background: var(--light-secondary);
  border-color: var(--primary-color);
}

body.light-mode .form-group label {
  color: var(--text-muted);
  background: var(--light-secondary);
}

body.light-mode .form-group input:not(:placeholder-shown) + label,
body.light-mode .form-group input:focus + label,
body.light-mode .form-group textarea:not(:placeholder-shown) + label,
body.light-mode .form-group textarea:focus + label {
  color: var(--primary-color);
  background: var(--light-secondary);
}

body.light-mode .form-note {
  color: var(--text-muted);
}

body.light-mode .footer {
  background: var(--light-secondary);
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}

body.light-mode #theme-toggle {
  background: var(--light-secondary);
  border: 1.5px solid var(--border-color);
}

body.light-mode .mobile-sidebar-content {
  background: var(--light-secondary);
}

body.light-mode .mobile-sidebar-content a {
  color: var(--dark-bg);
}

body.light-mode .mobile-sidebar-content a:hover,
body.light-mode .mobile-sidebar-content a:focus,
body.light-mode .mobile-sidebar-content a:active {
  background: var(--light-bg);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1200px) {
  .works-gallery {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 992px) {
  .navbar-links {
    display: none;
  }
  
  .navbar-hamburger, .mobile-sidebar {
  display: block;
  }
  
  .about-flex {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1.5rem;
  }
  
  .contact-flex {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }
  
  .service-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
  
  .works-gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 0 1.5rem;
  }
  
  .team-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem 2rem 1rem;
    min-height: 80vh;
  }
  
  .logo {
    width: 280px;
    margin-bottom: 1.5rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .tagline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .cta-btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    min-width: 180px;
  }
  
  .navbar {
    padding: 0.5rem 1rem;
  }
  
  #sticky-logo {
    max-height: 50px;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .about-flex {
    padding: 0 1rem;
  }
  
  .about-image img {
    max-width: 100%;
  }
  
  .service-list {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .service-card {
    padding: 2rem 1rem;
  }
  
  .works-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .team-list {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .contact-flex {
    padding: 0 1rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 1rem 1rem 1rem 2.5rem;
  }
  
  .form-group label {
    left: 2.5rem;
  }
  
  .form-group input:not(:placeholder-shown) + label,
  .form-group input:focus + label,
  .form-group textarea:not(:placeholder-shown) + label,
  .form-group textarea:focus + label {
    left: 0.8rem;
  }
  
  .directions-btn {
  width: 100%;
    margin: 1rem 0 0 0;
  }
  
  .map-embed iframe {
    height: 200px;
  }
  
  #theme-toggle {
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }
  
  #theme-toggle svg {
    width: 20px;
    height: 20px;
  }
  
  .mobile-sidebar-content {
    width: 80vw;
    max-width: 300px;
    padding: 3rem 1.5rem 2rem 1.5rem;
  }
  
  .mobile-sidebar-content a {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 2rem 1rem 1.5rem 1rem;
    min-height: 70vh;
  }
  
  .logo {
    width: 240px;
    margin-bottom: 1rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
    margin: 0.3rem 0 0.1rem 0;
  }
  
  .tagline {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }
  
  .cta-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    min-width: 160px;
  }
  
  .navbar {
    padding: 0.4rem 0.8rem;
  }
  
  #sticky-logo {
    max-height: 40px;
  }
  
  section {
    padding: 2rem 0;
  }
  
  section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
  
  .about h2 {
    font-size: 1.6rem;
  }
  
  .about-subtitle {
    font-size: 1rem;
  }
  
  .about-content p {
    font-size: 1rem;
  }
  
  .service-card {
    padding: 1.5rem 1rem;
  }
  
  .service-card h3 {
    font-size: 1.1rem;
  }
  
  .service-card p {
    font-size: 0.95rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .team-card {
    padding: 1.2rem;
  }
  
  .team-card h4 {
    font-size: 1.1rem;
  }
  
  .team-card p {
    font-size: 0.9rem;
  }
  
  .client-title {
    font-size: 1.6rem;
  }
  
  .client-subtitle {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }
  
  .slider-track img {
    height: 60px;
    min-width: 80px;
    padding: 8px;
  }
  
  .contact-form {
    padding: 1.5rem 1rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.9rem 1rem 0.9rem 2.3rem;
    font-size: 0.95rem;
  }
  
  .form-group label {
    font-size: 0.95rem;
    left: 2.3rem;
  }
  
  .contact-form button {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .directions-btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
  
  .footer {
    padding: 1.5rem 0;
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  #theme-toggle {
    position: fixed;
    top: 74px;
    right: 18px;
    z-index: 2002;
  }
  .navbar-hamburger {
    position: fixed;
    top: 18px;
    right: 18px;
    left: auto;
    z-index: 2003;
  }
  #sticky-logo {
    max-height: 64px;
    width: auto;
    margin: 0.3rem 0 0.3rem 0;
  }
  .navbar-logo {
    margin-right: 1.2rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.email-list {
  list-style: none;
  margin: 0.5em 0;
  padding: 0;
}

.email-list li {
  margin-bottom: 0.3em;
}

.email-list a {
  color: var(--primary-color);
  text-decoration: underline;
  word-break: break-all;
  font-size: 1.05em;
  transition: var(--transition);
}

.email-list a:hover {
  color: var(--primary-hover);
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-right: 0.5em;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.success-check {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5em;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .mobile-sidebar,
  #theme-toggle,
  .cta-btn,
  .load-more-btn,
  .contact-form button,
  .directions-btn {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero {
    background: white !important;
    color: black !important;
  }
}

/* --- Hamburger & Close Button: Dark Mode --- */
body:not(.light-mode) .navbar-hamburger {
  background: rgba(30,40,60,0.92);
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.18);
  border-radius: 16px;
}
body:not(.light-mode) .navbar-hamburger span {
  background: #fff;
}
body:not(.light-mode) .navbar-hamburger.open span {
  background: #FFD100;
}
body:not(.light-mode) .sidebar-close {
  color: #FFD100;
}
body:not(.light-mode) .sidebar-close:hover {
  color: #fff;
}

body.theme-animating {
  transition: none !important;
  animation: theme-fade 0.5s;
}
@keyframes theme-fade {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

body.theme-animating::before {
  content: '';
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background: var(--slide-anim-color, #fff);
  clip-path: circle(0% at var(--theme-toggle-x, 90vw) var(--theme-toggle-y, 40px));
  transition: clip-path 0.85s cubic-bezier(.77,0,.18,1);
  will-change: clip-path;
  backdrop-filter: blur(12px) saturate(1.2);
}
body.theme-animating.theme-animating-active::before {
  clip-path: circle(150% at var(--theme-toggle-x, 90vw) var(--theme-toggle-y, 40px));
}
body.light-mode.theme-animating::before {
  --slide-anim-color: #F5F8FA;
}
body:not(.light-mode).theme-animating::before {
  --slide-anim-color: #0076FF;
}

/* --- Modern Tools Table --- */
.tools-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--light-bg, #fff);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 24px 0 rgba(0,0,0,0.07);
  margin-bottom: 1.5rem;
  font-size: 1.08rem;
}
.tools-table th, .tools-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border: none;
}
.tools-table th {
  background: #eaf1fb;
  color: #0076FF;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}
.tools-table tr:nth-child(even) {
  background: #f7fafd;
}
.tools-table tr:nth-child(odd) {
  background: #fff;
}
.tools-table tr {
  transition: background 0.22s, box-shadow 0.22s, transform 0.18s;
}
.tools-table tr:hover {
  background: #e3f0ff !important;
  box-shadow: 0 2px 16px 0 rgba(0,118,255,0.10);
  transform: scale(1.012);
  z-index: 2;
  position: relative;
}
body:not(.light-mode) .tools-table tr:hover {
  background: #1a2e4a !important;
  box-shadow: 0 2px 16px 0 rgba(0,118,255,0.18);
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  margin-bottom: 1.5rem;
}
.tools-note {
  font-size: 1rem;
  color: var(--text-muted, #667383);
  margin-top: 0.5rem;
  text-align: right;
}

/* --- Mobile Responsive --- */
@media (max-width: 700px) {
  .tools-table th, .tools-table td {
    padding: 0.7rem 0.6rem;
    font-size: 0.98rem;
  }
  .tools-table th {
    font-size: 1rem;
  }
  .tools-section .container {
    padding: 0.5rem;
  }
}

/* --- Dark Mode Support --- */
body:not(.light-mode) .tools-table {
  background: #101A2B;
  color: #fff;
  box-shadow: 0 2px 24px 0 rgba(0,0,0,0.22);
}
body:not(.light-mode) .tools-table th {
  background: #18243A;
  color: #FFD100;
}
body:not(.light-mode) .tools-table tr:nth-child(even) {
  background: #18243A;
}
body:not(.light-mode) .tools-table tr:nth-child(odd) {
  background: #101A2B;
}
body:not(.light-mode) .tools-table tr:hover {
  background: #22325a;
}
body:not(.light-mode) .tools-note {
  color: #B9C2D0;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: flex-end;
}
.navbar-links a {
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text-primary, #101A2B);
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
}
.navbar-links a:hover,
.navbar-links a:focus {
  background: #eaf1fb;
  color: #0076FF;
}
body:not(.light-mode) .navbar-links a:hover,
body:not(.light-mode) .navbar-links a:focus {
  background: #18243A;
  color: #FFD100;
}

@media (min-width: 992px) {
  .navbar-links {
    justify-content: center;
  }
}

/* Swiper styles for testimonials */
.testimonials-section {
  padding: 40px 0 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #eaf1fb 100%);
  text-align: center;
  position: relative;
}
body:not(.light-mode) .testimonials-section {
  background: linear-gradient(135deg, #181d23 0%, #23272f 100%);
}
.testimonials-section .section-title {
  font-size: 1.2rem;
  color: #0076FF;
  font-weight: 500;
  margin-bottom: 0.2rem;
  letter-spacing: 1px;
}
.testimonials-section .section-subtitle {
  font-size: 2.1rem;
  color: #005bb5;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
.testimonials-section .swiper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 10px;
}
.testimonial-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  padding: 36px 28px 32px 28px;
  text-align: left;
  max-width: 370px;
  min-height: 320px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
  overflow: hidden;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
body:not(.light-mode) .testimonial-card {
  background: #23272f;
  color: #fff;
  box-shadow: 0 10px 32px rgba(0,0,0,0.28);
}
.testimonial-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.rating {
  margin-bottom: 12px;
}
.rating i.fa-star, .rating i.fa-star-o {
  color: #FFC107;
  font-size: 1.25rem;
  margin-right: 2px;
}
.testimonial-content {
  font-size: 1.08rem;
  color: #222;
  margin-bottom: 22px;
  line-height: 1.7;
  position: relative;
  padding-left: 32px;
}
body:not(.light-mode) .testimonial-content {
  color: #fff;
}
.testimonial-content:before {
  content: '\201C';
  font-size: 2.2rem;
  color: #0076FF;
  position: absolute;
  left: 0;
  top: -8px;
  font-family: serif;
  opacity: 0.18;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}
.testimonial-image img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #eaf1fb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #fff;
}
body:not(.light-mode) .testimonial-image img {
  border: 3px solid #23272f;
  background: #23272f;
}
.testimonial-details {
  display: flex;
  flex-direction: column;
}
.testimonial-name {
  font-weight: 700;
  color: #0076FF;
  font-size: 1.08rem;
}
body:not(.light-mode) .testimonial-name {
  color: #7db7ff;
}
.testimonial-job {
  font-size: 0.98rem;
  color: #888;
  font-weight: 500;
}
body:not(.light-mode) .testimonial-job {
  color: #bfc9d6;
}
/* Slider arrows */
.testimonials-section .swiper-button-next,
.testimonials-section .swiper-button-prev {
  color: #0076FF;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  position: absolute;
}
.testimonials-section .swiper-button-prev {
  left: 0;
}
.testimonials-section .swiper-button-next {
  right: 0;
}
body:not(.light-mode) .testimonials-section .swiper-button-next,
body:not(.light-mode) .testimonials-section .swiper-button-prev {
  background: #23272f;
  color: #7db7ff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.testimonials-section .swiper-button-next:hover,
.testimonials-section .swiper-button-prev:hover {
  background: #0076FF;
  color: #fff;
}

/* Blur background for LightGallery modal */
.lg-backdrop {
  background: rgba(30, 30, 30, 0.3) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: backdrop-filter 0.3s, background 0.3s;
}

/* Hide theme toggle button when LightGallery is open */
.lg-on #theme-toggle {
  display: none !important;
}

/* Mail sending animation container - dark/light mode support */
#mail-sending-animation {
  background: transparent;
  border-radius: 12px;
  box-shadow: none;
  padding: 0;
}
#mail-sending-animation .lottie-player {
  background: transparent !important;
}
#mail-sending-animation .sending-text {
  font-size: 18px;
  color: #0076FF;
  margin-top: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
body.light-mode #mail-sending-animation .sending-text {
  color: #0076FF;
}
body:not(.light-mode) #mail-sending-animation .sending-text {
  color: #7db7ff;
}

.mail-anim-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
  padding: 48px 32px 36px 32px;
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.3s, color 0.3s;
}
.mail-anim-card .sending-text {
  margin-top: 18px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #222;
  letter-spacing: 0.01em;
}
.mail-anim-card .result-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}
.mail-anim-card .result-title.success {
  color: #00B67A;
}
.mail-anim-card .result-title.error {
  color: #FFD100;
}
.mail-anim-card .result-message {
  color: #222;
  font-size: 1.2rem;
  margin-bottom: 32px;
  text-align: center;
  max-width: 400px;
}
.mail-anim-card .result-btn {
  margin-top: 0;
  padding: 14px 36px;
  background: #0076FF;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(0,118,255,0.10);
  transition: background 0.2s;
  cursor: pointer;
}
.mail-anim-card .result-icon {
  margin-bottom: 24px;
}
body:not(.light-mode) .mail-anim-card {
  background: #23272f;
  color: #fff;
}
body:not(.light-mode) .mail-anim-card .sending-text,
body:not(.light-mode) .mail-anim-card .result-message {
  color: #fff;
}
body:not(.light-mode) .mail-anim-card .result-title.success {
  color: #00B67A;
}
body:not(.light-mode) .mail-anim-card .result-title.error {
  color: #FFD100;
}
body:not(.light-mode) .mail-anim-card .result-icon {
  background: #2d313a !important;
}

.tools-section .table-responsive {
  margin-bottom: 0 !important;
}
.tools-section {
  padding-bottom: 1.5rem !important;
}

.testimonials-section .swiper-pagination {
  position: relative;
  margin-top: 36px;
  margin-bottom: 0;
  z-index: 2;
}

::selection {
  background: #0076FF;
  color: #fff;
}
body:not(.light-mode) ::selection {
  background: #1a4fa3;
  color: #fff;
}

/* Disable text selection and copying */
body, html, .container, section, .testimonial-card, .service-card, .team-card, .about-content, .tools-section, .client-section, .works-gallery, .contact-info, .contact-form {
  user-select: none !important;
  -webkit-user-select: none !important;
  -ms-user-select: none !important;
  -moz-user-select: none !important;
}

body, html {
  -webkit-touch-callout: none !important;
}
