:root {
  --primary: #4ED4BD; /* Brand teal */
  --secondary: #fffdff; /* Brand white */
  --bg-color: #101527; /* Brand navy */
  --bg-alt: #161c30; /* Alternating dark navy for sections */
  --surface: rgba(16, 21, 39, 0.7); /* Translucent brand navy */
  --text-main: #fffdff;
  --text-muted: #e7e5e7; /* Brand light gray */
  --glass-border: rgba(78, 212, 189, 0.2); /* Teal tint for premium glass */
  --accent: #ff477e; /* Complementary vibrant pink for premium look */
}

body.light-theme {
  --primary: #4ED4BD;
  --secondary: #101527;
  --bg-color: #ffffff; /* Pure white */
  --bg-alt: #f8f9fa; /* Clean modern off-white for alternating sections */
  --surface: rgba(255, 255, 255, 0.85); /* Clean pure white surface */
  --text-main: #101527; /* Brand navy */
  --text-muted: #666666; /* Standard clean gray */
  --glass-border: rgba(0, 0, 0, 0.04); /* Ultra-subtle border */
  --accent: #ff477e;
}

body.light-theme .hero-bg, body.light-theme .hero-slider { filter: brightness(0.8); }
body.light-theme .hero-overlay { background: linear-gradient(to bottom, rgba(245,245,245,0.1) 0%, var(--bg-color) 100%); }
body.light-theme .page-header { background: linear-gradient(to bottom, rgba(0,102,204,0.05) 0%, var(--bg-color) 100%); }
body.light-theme .glass { box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.03); }

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

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo {
  font-family: 'Outfit', 'Segoe UI', sans-serif;
}

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

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

/* Glassmorphism Utilities */
.glass {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 1rem 5%;
  background: var(--bg-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.logo-img {
  height: 25px;
  width: auto;
}

.logo-dark-version { display: block; }
.logo-light-version { display: none; }
body.light-theme .logo-dark-version { display: none; }
body.light-theme .logo-light-version { display: block; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links li a {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-color);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  min-width: 250px;
  list-style: none;
  padding: 1rem 0;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 1000;
}

body.light-theme .dropdown-menu {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dropdown-menu li a {
  display: block;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  text-transform: none;
  font-weight: 500;
}

.dropdown-menu li a:hover {
  background: rgba(78, 212, 189, 0.1);
  color: var(--primary);
}

.dropdown-menu li a::after {
  display: none;
}

/* Nested Dropdown Styles */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -10px;
}

@media (min-width: 769px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
    animation: fadeUp 0.2s ease;
  }
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
    animation: fadeUp 0.2s ease;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background-color: var(--text-main);
  margin-bottom: 5px;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 0 20px;
  /* Lock hero text to dark theme for readability against dark backgrounds */
  --text-main: #fffdff;
  --text-muted: #e7e5e7;
  --bg-color: #101527; /* Lock background for component hover inversions */
  color: var(--text-main);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10,10,10,0.1) 0%, var(--bg-color) 100%);
  z-index: -1;
}

/* Hero Slider */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  filter: brightness(0.4);
}

.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;
}

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

.hero-slider-dots {
  position: absolute;
  bottom: 15%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  gap: 10px;
  z-index: 5;
  padding: 0 20px;
}
.hero-slider-dots::-webkit-scrollbar {
  display: none;
}

.slider-dot {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s ease;
}

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

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-transform: uppercase;
  animation: fadeUp 1s ease forwards;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeUp 1s ease 0.2s forwards;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeUp 1s ease 0.4s forwards;
  opacity: 0;
}

.btn-primary {
  background: var(--primary) !important;
  color: #101527 !important;
  border: 2px solid var(--primary) !important;
  box-shadow: 0 0 15px rgba(78, 212, 189, 0.4);
}

.btn-primary:hover {
  background: rgba(78, 212, 189, 0.1) !important;
  color: var(--primary) !important;
  border: 2px solid var(--primary) !important;
  box-shadow: 0 0 20px rgba(78, 212, 189, 0.3);
}

.btn-outline {
  background: transparent !important;
  color: var(--text-main) !important;
  border: 2px solid var(--text-main) !important;
  margin-left: 1rem;
}

.btn-outline:hover {
  background: var(--text-main) !important;
  color: var(--bg-color) !important;
  border: 2px solid var(--text-main) !important;
}

/* Page Headers */
.page-header {
  padding: 150px 5% 50px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(0,240,255,0.05) 0%, var(--bg-color) 100%);
  position: relative;
  z-index: 1;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(16, 21, 39, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
}

.page-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #ffffff !important; /* Force white text over the dark overlay */
}

.page-header p {
  color: rgba(255, 255, 255, 0.8) !important; /* Force light text over the dark overlay */
  font-size: 1.2rem;
}

/* Sections */
section {
  padding: 5rem 5%;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  text-align: center;
  text-transform: uppercase;
}

.section-title span {
  color: var(--primary);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* About Section */
.about-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.15);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

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

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.features-list {
  list-style: none;
  margin-top: 2rem;
}

.features-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Removed old checkmark pseudo-element to avoid duplicate icons */

/* Portfolio Cards */
.portfolio-card {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  isolation: isolate;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.portfolio-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  border-radius: 15px;
}

/* Interactive Before/After Slider */
.ba-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    --pos: 50%;
}
.ba-container img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.ba-image-after {
    position: relative;
}
.ba-image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, var(--pos) 0, var(--pos) 100%, 0 100%);
}
.ba-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
}
.ba-divider {
    position: absolute;
    top: 0;
    left: var(--pos);
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 4;
}
.ba-button {
    position: absolute;
    top: 50%;
    left: var(--pos);
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--bg-alt);
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.ba-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
    height: 600px;
}
.ba-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.ba-slide-item.active {
    opacity: 1;
    visibility: visible;
}

/* Navigation Buttons (Carousel) */
.nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

/* Light Theme Navigation Buttons */
body.light-theme .nav-btn {
    background: #ffffff;
    color: #333333;
    border-color: #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
body.light-theme .nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    mix-blend-mode: difference;
    opacity: 0;
}
.custom-cursor.active {
    opacity: 1;
}
.custom-cursor.hover {
    width: 60px;
    height: 60px;
    background-color: #fff;
}
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button {
    cursor: none !important;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}
.loader-logo {
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.portfolio-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 40%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
}

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

.portfolio-card:hover .overlay {
  transform: translateY(0);
}

.portfolio-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}

.portfolio-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}

.portfolio-card .category-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--primary);
  color: #000;
  padding: 4px 10px;
  border-radius: 5px;
  margin-bottom: 8px;
  display: inline-block;
}

.portfolio-card .view-project {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.portfolio-card .view-project i {
  transition: transform 0.3s ease;
}

.portfolio-card:hover .view-project {
  color: var(--primary);
}

.portfolio-card:hover .view-project i {
  transform: translateX(5px);
}

/* Admin Container */
.admin-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Clients Grid */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 10px;
}

/* Clients Wrapper & Fade */
.clients-wrapper {
  position: relative;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 2000px;
}

.clients-wrapper.collapsed {
  max-height: 250px; /* Adjust if you want more or less rows visible initially */
}

.clients-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, rgba(16, 21, 39, 0) 0%, var(--bg-alt) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.clients-wrapper.collapsed .clients-fade {
  opacity: 1;
}

body.light-theme .clients-fade {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--bg-alt) 100%);
}
.client-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 200px; /* Stretch to fill row */
  height: 100px;
  background: rgba(255,255,255,0.02); /* Subtle block background creates the masonry rectangle look */
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.client-logo:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-5px);
}
.client-logo-mask {
  height: 100%;
  width: 100%;
  max-width: 160px; /* Don't let the logo itself get TOO huge, but the container stretches */
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  background-color: rgba(255, 255, 255, 0.85); /* Significantly lighter gray/white for dark background */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.client-logo:hover .client-logo-mask {
  background-color: #4ED4BD;
}

body.light-theme .client-logo {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.05);
}
body.light-theme .client-logo:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
}
body.light-theme .client-logo-mask {
  background-color: #1f2937; /* Very dark slate gray for light background */
}
body.light-theme .client-logo:hover .client-logo-mask {
  background-color: #4ED4BD;
}

/* Contact */
.contact-container {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  padding: 3rem;
  border-radius: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-item {
  margin-bottom: 2rem;
}

.info-item h4 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.info-item p {
  color: var(--text-muted);
}

.contact-form {
  padding: 3rem;
  border-radius: 20px;
}

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

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

body.light-theme .form-control::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

input[type="file"].form-control {
  padding: 0.8rem 1.5rem;
}

input[type="file"].form-control::file-selector-button {
  background: var(--primary);
  color: #101527;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  margin-right: 1rem;
  transition: all 0.3s ease;
  font-size: 0.8rem;
}

input[type="file"].form-control::file-selector-button:hover {
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

select.form-control option {
  background: #101527; /* Dark theme background */
  color: #ffffff;
  padding: 12px;
}

/* --- Custom Select Styles --- */
.custom-select-wrapper {
  position: relative;
  user-select: none;
  width: 100%;
}
.custom-select-trigger {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.custom-select-trigger:hover, .custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}
.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 5px;
  background: #101527;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  z-index: 999;
  max-height: 250px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}
.custom-select-wrapper.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-option {
  padding: 12px 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.custom-option:last-child {
  border-bottom: none;
}
.custom-option:hover, .custom-option.selected {
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary);
}
/* Scrollbar for custom dropdown */
.custom-select-options::-webkit-scrollbar {
  width: 6px;
}
.custom-select-options::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  margin: 5px;
}
.custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Light Theme Overrides for Custom Select */
body.light-theme .custom-select-options {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
body.light-theme .custom-option {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}
body.light-theme .custom-option:hover, 
body.light-theme .custom-option.selected {
  background: rgba(0, 0, 0, 0.05);
}
body.light-theme .custom-select-options::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
}
body.light-theme .custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
footer {
  background: #101527;
  border-top: 1px solid rgba(78, 212, 189, 0.2);
  padding: 3rem 5% 1.5rem;
  text-align: center;
  /* Lock footer variables to dark theme */
  --text-main: #fffdff;
  --text-muted: #e7e5e7;
  --bg-color: #101527; /* Lock background for component hover inversions */
  color: var(--text-main);
}

footer .logo-dark-version { display: block !important; }
footer .logo-light-version { display: none !important; }

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--text-muted);
}

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

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  margin-top: 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: 1.5rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 2rem 5%;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    border-bottom: 1px solid var(--glass-border);
    z-index: 999;
  }
  
  body.light-theme .nav-links {
    background: rgba(245, 245, 245, 0.98);
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  #theme-toggle {
    margin-left: 0 !important;
    width: fit-content;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .page-header {
    padding: 100px 5% 30px;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .hero {
    height: 70vh;
    min-height: 500px;
  }
  
  section {
    padding: 3rem 5%;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .section-title h2 {
    font-size: inherit;
    line-height: 1.1;
    margin: 0;
  }
  
  .contact-info, .contact-form {
    padding: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .admin-container {
    margin: 80px 15px 30px;
    padding: 1.5rem !important;
  }
  
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .btn-outline {
    margin-left: 0;
    margin-top: 10px;
  }
  
  .hero-content > div:not(.hero-slider-dots) {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .hero-slider-dots {
    flex-direction: row !important;
  }

  .dropdown-menu {
    position: static;
    display: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.5rem 0 0 1rem;
    min-width: 100%;
  }
  .dropdown.active .dropdown-menu {
    display: block;
  }
}

@media (max-width: 480px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Feature Cards */
.feature-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  border-top: 4px solid transparent;
}
.feature-card:hover {
  transform: translateY(-10px);
  border-top: 4px solid var(--primary);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.icon-feature {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.feature-card:hover .icon-feature {
  transform: scale(1.1) rotate(5deg);
}


/* Promotion Button */
.btn-promo {
  background: #ffffff !important;
  color: #101527 !important;
  border: none !important;
  font-weight: 700;
  padding: 12px 25px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-promo:hover {
  background: #f0f0f0 !important;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Promotion Banner Layout */
.promotion-banner {
  background: linear-gradient(135deg, var(--primary), #2c9a87);
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(78, 212, 189, 0.3);
  gap: 20px;
  flex-wrap: wrap;
}
.promotion-banner .promo-content {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1 1 300px;
}
.promotion-banner h3 {
  color: #fff;
  margin: 0 0 5px 0;
  font-size: 1.4rem;
}
.promotion-banner p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
}
@media (max-width: 768px) {
  .promotion-banner {
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
  }
  .promotion-banner .promo-content {
    flex-direction: column;
    text-align: center;
  }
  .promotion-banner .btn-promo {
    width: 100%;
    text-align: center;
    white-space: nowrap;
  }
}

/* Mobile Category Filters */
@media (max-width: 480px) {
  #filter-container {
    gap: 12px !important;
  }
  #filter-container .filter-btn {
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 12px 24px !important;
    font-size: 0.8rem !important;
    letter-spacing: 1px !important;
    margin: 0 !important;
  }
  #filter-container .filter-btn.btn-primary {
    background: var(--primary) !important;
    color: #101527 !important;
    border: none !important;
    box-shadow: 0 0 25px rgba(78, 212, 189, 0.4) !important;
  }
  #filter-container .filter-btn.btn-outline {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
  }
}

/* Mobile Footer Redesign */
@media (max-width: 768px) {
  footer .footer-content {
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem 1rem !important;
  }
  footer .footer-content > div:nth-child(1) {
    grid-column: 1 / -1;
    text-align: center !important;
  }
  footer .footer-content > div:nth-child(1) .logo {
    justify-content: center !important;
  }
  footer .footer-content > div:nth-child(1) .social-links {
    justify-content: center !important;
  }
  #payment-methods-widget {
    text-align: center !important;
  }
  #payment-methods-widget > div {
    justify-content: center !important;
  }
  footer .footer-content > div:nth-child(2) {
    grid-column: 1 / 2;
    text-align: left !important;
    justify-self: center;
  }
  footer .footer-content > div:nth-child(3) {
    grid-column: 2 / 3;
    text-align: left !important;
    justify-self: center;
  }
  footer .footer-content > div:nth-child(2) h4,
  footer .footer-content > div:nth-child(3) h4 {
    font-size: 1.05rem !important;
  }
  footer .footer-content > div:nth-child(2) ul li,
  footer .footer-content > div:nth-child(3) ul li {
    font-size: 0.9rem !important;
  }
  footer .footer-content > div:nth-child(4) {
    grid-column: 1 / -1;
    text-align: center !important;
  }
  footer .footer-content > div:nth-child(4) ul li {
    justify-content: center !important;
  }
  footer .copyright {
    flex-direction: column;
    justify-content: center !important;
    text-align: center;
    gap: 15px !important;
  }
}

/* Home Services Section */
.home-service-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.home-service-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border-color: var(--primary);
}
.home-service-card .icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(78, 212, 189, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}
.home-service-card:hover .icon-wrapper {
  background: var(--primary);
  color: #101527;
}
.home-service-card .icon-wrapper img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.home-service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.home-service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.home-service-card .btn-outline {
  margin: auto 0 0 0 !important;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  border-radius: 50px;
}

/* Colorful Card Modifiers */
.colorful-card {
    border: none;
    color: #fff !important;
}
.colorful-card h3 {
    color: #fff !important;
}
.colorful-card p {
    color: rgba(255, 255, 255, 0.9) !important;
}
.colorful-card .icon-wrapper {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}
.colorful-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}
.colorful-card:hover .icon-wrapper {
    background: #fff !important;
    color: #000 !important;
}

/* Floating Action Buttons */
.fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}
.fab-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
}
.fab-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.fab-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}
.fab-scrolltop {
  background: var(--primary);
  color: #101527 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}
.fab-scrolltop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width: 768px) {
  .fab-container {
    bottom: 20px;
    right: 20px;
  }
  .fab-btn {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
}

/* WhatsApp Tooltip Animation */
.whatsapp-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.wa-tooltip {
  position: absolute;
  right: 65px;
  background: #fff;
  color: #101527;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  pointer-events: none;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}
.animate-pulse-text {
  animation: pulse-wa-text 2s infinite ease-in-out;
}
@keyframes pulse-wa-text {
  0% { transform: scale(1); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
  50% { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
  100% { transform: scale(1); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
}

/* Reviews Wrapper & Fade */
.reviews-wrapper {
  position: relative;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 3000px;
}

.reviews-wrapper.collapsed {
  max-height: 500px; /* Adjust if you want more or less rows visible initially */
}

.reviews-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, rgba(16, 21, 39, 0) 0%, var(--bg-color) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.reviews-wrapper.collapsed .reviews-fade {
  opacity: 1;
}

body.light-theme .reviews-fade {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--bg-color) 100%);
}

/* Reviews Masonry Layout */
.reviews-masonry {
  column-count: 3;
  column-gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .reviews-masonry {
    column-count: 2;
  }
}

.review-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.review-info h4 {
  color: var(--text-main);
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.review-info p {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
}

.review-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.review-quote-icon {
  color: rgba(78, 212, 189, 0.2);
  font-size: 1.2rem;
  align-self: flex-start;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(78, 212, 189, 0.3);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(78, 212, 189, 0.1);
}

.faq-item.active .faq-question {
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* High enough to fit content */
}

@media (max-width: 768px) {
  .wa-tooltip {
    right: 55px;
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  .clients-grid {
    padding: 10px 5% 0 5%;
  }
  .reviews-masonry {
    column-count: 1;
  }
}

/* Filters Wrapper & Fade */
.filters-wrapper {
  position: relative;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 1500px; /* arbitrary large value for expanded state */
}
.filters-wrapper.collapsed {
  max-height: 65px; /* Shows 1 row and top of 2nd row */
}
.filters-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35px;
  background: linear-gradient(to bottom, transparent, var(--bg-color));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.filters-wrapper.collapsed .filters-fade {
  opacity: 1;
}

/* Text-only expand button */
.expand-text-btn {
  background: none;
  border: none;
  color: var(--primary, #4ED4BD);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 20px;
  transition: color 0.3s ease;
}
.expand-text-btn:hover {
  color: var(--text-main);
}
.expand-text-btn i {
  transition: transform 0.3s;
}
.expand-text-btn.active i {
  transform: rotate(180deg);
}

body.light-theme .filters-fade {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--bg-color) 100%);
}
@media (max-width: 768px) { .ba-container img { height: 300px; } .nav-btn { width: 35px; height: 35px; font-size: 1rem; } }
@media (max-width: 768px) { .ba-carousel-wrapper { height: 400px; padding: 0 2.5rem; } }


/* Custom Toast Notification */
.custom-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-weight: 600;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  pointer-events: none;
}
.custom-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.custom-toast.error {
  border-left: 4px solid #ff4757;
}
.custom-toast.success {
  border-left: 4px solid var(--primary);
}

/* Custom Modal */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 21, 39, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.custom-modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}
.custom-modal {
  background: #1a2035;
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-modal-overlay.show .custom-modal {
  transform: scale(1);
}
.custom-modal-icon i {
  font-size: 3rem;
  color: #ff4757;
  margin-bottom: 1rem;
}
.custom-modal h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.custom-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
