/* 
    BM Advertisers - Premium Dark Theme
    Inspired by Lumiere Framer Template
*/

:root {
  --bg-color: #081112;
  /* Darker, richer base */
  --text-color: #ffffff;
  --text-muted: #64748b;
  --accent-color: #2286a9;
  --accent-glow: rgba(34, 134, 169, 0.3);
  --accent-light: #64bee3;
  --card-bg: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.05);
  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hero-glow-pulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes text-reveal {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 0% 0%,
      rgba(34, 134, 169, 0.05) 0%,
      transparent 40%),
    radial-gradient(circle at 100% 100%,
      rgba(100, 190, 227, 0.03) 0%,
      transparent 40%);
  background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Glassmorphism Utility */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  padding: 2rem 5%;
  background: rgba(13, 27, 30, 0);
  transition:
    width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    max-width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    top 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s ease,
    border-radius 0.6s ease,
    border-color 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0);
  /* Always present, but invisible */
  border-radius: 0;
  will-change: width, max-width, top, padding;
}

nav.scrolled {
  top: 1.5rem;
  width: 90%;
  max-width: 1200px;
  padding: 1rem 2rem;
  background: rgba(13, 27, 30, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-color: rgba(255, 255, 255, 0.1);
  /* Only change the color */
  border-radius: 100px;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100%;
  /* Let the nav control the width */
  margin: 0;
  padding: 0;
}

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

.logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-light);
  transition: var(--transition);
  box-shadow: 0 0 10px var(--accent-glow);
}

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

/* Hero Section */
.hero {
  height: calc(100vh - 1rem);
  margin: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  z-index: 2;
  background-image: url('/assets/img/rider5.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%,
      var(--accent-glow) 0%,
      transparent 60%);
  z-index: 2;
  pointer-events: none;
  animation: hero-glow-pulse 8s ease-in-out infinite;
}

/* Subpage Hero Specifics */
section.hero.hero-sub {
  height: calc(100vh - 1rem);
  /* Reverted to full screen for maximum impact */
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Left Aligned */
  justify-content: flex-end;
  /* Bottom Aligned */
  padding: 8rem 8%;
  margin: 0.5rem;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

section.hero.hero-sub .hero-bg {
  opacity: 1;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  /* Subtle blur to help text pop */
  transform: scale(1.05);
  /* Prevent blur edges from showing */
}

section.hero.hero-sub .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(8, 17, 18, 0.9) 0%, rgba(8, 17, 18, 0.4) 40%, transparent 100%);
  z-index: 2;
}

section.hero.hero-sub .container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1400px;
  margin: 0;
  padding: 0;
  text-align: left;
}

section.hero.hero-sub .hero-content {
  padding: 0;
  background: transparent;
  border: none;
}

section.hero.hero-sub .hero-label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--accent-color);
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

section.hero.hero-sub .hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: white;
  margin: 0;
  transition: text-shadow 0.4s ease;
}

section.hero.hero-sub:hover .hero-title {
  text-shadow: 0 0 30px rgba(34, 134, 169, 0.4);
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  margin-bottom: 2rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-badge span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-light);
}

.hero .content-container {
  display: flex;
  justify-content: left;
  align-items: center;
  position: relative;
  z-index: 3;
  text-align: left;
  width: 100%;
  height: 100%;
  margin: 0 8rem;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: white;
  animation: text-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


.hero-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  opacity: 0;
  animation: text-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.hero-content {
  height: fit-content;
  margin: 0;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  margin: 0 auto 2rem;
  line-height: 1.75;
}


.hero-features {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-feature i {
  color: rgba(255, 255, 255, 0.92);
}

.hero-scroll {
  margin: 0 auto;
  width: 100%;
  max-width: 240px;
  text-align: center;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Hero Bottom Bar */
.hero-bottom {
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 4;
}

.hero-features {
  display: flex;
  gap: 4rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mouse {
  width: 22px;
  height: 35px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 2px;
  height: 6px;
  background: white;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

.btn-primary {
  padding: 1.2rem 2.5rem;
  background: white;
  color: black;
  border-radius: 100px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  border: none;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(255, 255, 255, 0.1),
    0 0 20px var(--accent-glow);
  background: #ffffff;
}

.btn-secondary {
  padding: 1.2rem 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

/* Section Styling */
section:not(.hero) {
  padding: 10rem 0;
  background: var(--bg-color);
}

.section-canvas {
  background: rgba(255, 255, 255, 0.01);
  margin: 0 0.5rem;
  border-radius: 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
}

.section-tag {
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  display: block;
}

.section-header h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.section-header p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

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

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

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

/* Feature Cards */
.card {
  padding: 3rem;
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.04);
}

/* Service Card Expansion */
.service-card {
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 425px;
}

.service-card.expanded {
  grid-column: 1 / -1;
  max-height: 2000px;
  /* Allow expansion */
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-color);
  padding: 3rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  /* For close button positioning */
}

.card-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
}

.service-card.expanded .card-close {
  opacity: 1;
  visibility: visible;
}

.card-close:hover {
  background: var(--accent-color);
  transform: rotate(90deg);
}

.service-card .card-expanded-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.3s;
}

.service-card.expanded .card-expanded-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.service-card .card-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.service-card .card-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card .long-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.service-card.expanded h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.service-card.expanded .card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card.expanded .card-features li {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
}

.card-ask-btn {
  display: inline-block;
  margin-top: 2.5rem;
  text-decoration: none;
  padding: 0.5rem 2.5rem;
  /* Thin height */
  background: white !important;
  color: black !important;
  border-radius: 0 !important;
  /* Remove border radius */
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}

.card-ask-btn:hover {
  background: var(--accent-color) !important;
  color: white !important;
  transform: translateY(-2px);
}

.card-features {
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
}

.card-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-features li::before {
  content: '→';
  color: var(--accent-light);
  font-weight: bold;
}

@media (max-width: 992px) {
  .service-card.expanded {
    grid-template-columns: 1fr;
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  .service-card.expanded {
    padding: 1.5rem;
  }

  .service-card.expanded h3 {
    font-size: 1.4rem !important;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .service-card .long-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .service-card .card-main-info {
    padding-bottom: 2.5rem !important;
  }

  .service-card .card-gallery {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .service-card .card-gallery img {
    height: 150px;
  }

  .card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
  }

  .card-icon i {
    width: 20px;
    height: 20px;
  }
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: white;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.card-list {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  list-style: none;
}

.card-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-list i {
  width: 12px;
  color: var(--accent-light);
}

.side-image-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: center;
}

@media (max-width: 992px) {
  .side-image-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.side-image-content img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 8rem;
  align-items: start;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.form-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.form-input,
.form-textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem;
  border-radius: 12px;
  color: white;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-textarea {
  resize: none;
  line-height: 1.6;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
}

/* Footer */
footer {
  padding: 3rem 5rem;
  background: #000;
  margin: 0.5rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 8rem;
  position: relative;
  z-index: 2;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  display: block;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.5);
  max-width: 350px;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
  color: white;
}

.footer-links ul li {
  margin-bottom: 1.2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

/* Animations */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero h1 {
    font-size: 3rem;
  }
}

.hero-overlay {
  background-color: #000;
  opacity: 0.5;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 3;
  width: 95%;
  height: 75%;
  display: flex;
  justify-content: left;
  align-items: end;
}

/* ===== Hero Carousel ===== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  z-index: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide .content-container {
  position: relative;
  z-index: 3;
}

.hero-slide .hero-content {
  background: none;
  box-shadow: none;
  padding: 0;
  max-width: 600px;
}

.hero-slide .hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: white;
}

.hero-slide .hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 1;
  animation: none;
}

.hero-slide .hero-btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  background: white;
  color: #000;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: var(--transition);
}

.hero-slide .hero-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 15px 30px rgba(255, 255, 255, 0.15),
    0 0 15px var(--accent-glow);
}

/* Carousel Navigation Arrows */
.hero-carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
  padding: 0 1.5rem;
}

.carousel-prev,
.carousel-next {
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Carousel Indicator Dots */
.hero-carousel-indicators {
  position: absolute;
  width: fit-content;
  margin: 5px auto;
  display: flex;
  gap: 0.6rem;
  z-index: 12;
  bottom: 5px;
  left: 0;
  right: 0;
}

.carousel-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.35s ease;
  border: none;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Carousel Responsive */
@media (max-width: 768px) {
  .hero-carousel-nav {
    padding: 0 0.75rem;
  }

  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .hero-carousel-indicators {
    bottom: 1.5rem;
  }

  .hero-slide .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  }

  .hero-slide .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
  }
}

/* Service Cards Specifics */
.service-card {
  cursor: pointer;
}

.card-features {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  list-style: disc;
  padding-left: 1.2rem;
}

.card-features li {
  margin-bottom: 0.8rem;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 4rem;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 32px;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: white;
  color: black;
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.modal-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.modal-icon i {
  width: 32px;
  height: 32px;
}

.modal-body h2 {
  font-size: 2.5rem;
  margin: 0;
}

.modal-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.modal-extra h4 {
  color: white;
  margin: 2.5rem 0 1.5rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modal-extra ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.modal-extra ul li {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-detail-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  margin-top: 3rem;
  cursor: zoom-in;
  transition: var(--transition);
}

.service-detail-img:hover {
  opacity: 0.8;
}

/* Image Preview Overlay */
.preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.preview-overlay.active {
  opacity: 1;
  visibility: visible;
}

.preview-overlay img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  transform: scale(0.9);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-overlay.active img {
  transform: scale(1);
}

.preview-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: white;
  color: black;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3001;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 2.5rem 1.5rem;
    width: 95%;
  }

  .modal-extra ul {
    grid-template-columns: 1fr;
  }

  .modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .modal-body h2 {
    font-size: 1.8rem;
  }
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile Navigation Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-toggle i {
  width: 28px;
  height: 28px;
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(8, 17, 18, 0.98);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: 0.5s cubic-bezier(0.85, 0, 0.15, 1);
    z-index: 1000;
    padding: 2rem;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.8rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
  }

  .nav-links.active a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active a:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-links.active a:nth-child(2) {
    transition-delay: 0.2s;
  }

  .nav-links.active a:nth-child(3) {
    transition-delay: 0.3s;
  }

  .nav-links.active a:nth-child(4) {
    transition-delay: 0.4s;
  }

  .nav-links.active a:nth-child(5) {
    transition-delay: 0.5s;
  }

  nav.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    padding: 0.75rem 1.25rem;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(13, 27, 30, 0.9);
  }
}

/* Container & Layout Adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
    /* Increased from 1.25 for more breathing room */
  }

  section:not(.hero) {
    padding: 4rem 0;
    /* Reduced from 6rem for a more app-like pacing */
  }

  .section-header {
    margin-bottom: 2.5rem;
    text-align: left;
    /* Left align for a more 'app' feel */
  }

  .section-header h2 {
    font-size: 1.75rem;
    /* Much smaller, more precise */
    line-height: 1.2;
    font-weight: 700;
  }

  .section-header p {
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 100%;
    margin-top: 0.5rem;
  }

  /* Grid Stack */
  .grid-3 {
    grid-template-columns: 1fr;
  }

  nav {
    padding: 1rem 0;
    height: auto;
  }

  .logo img {
    height: 32px;
    margin: 10px 25px;
  }

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

  /* Hero Adjustments - More App-like, less zoomed */
  .hero {
    margin: 0;
    height: 55vh;
    /* Balanced height */
    border-radius: 0;
    position: relative;
    overflow: hidden;
  }

  .hero .content-container {
    margin: 0 1.5rem;
    padding: 4rem 0 6rem;
    /* Increased bottom padding to avoid control overlap */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .hero-content {
    width: 100%;
    z-index: 5;
  }

  .hero-title {
    font-size: 1.8rem !important;
    /* Smaller title to avoid logo collision */
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
  }

  .hero-btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.8rem !important;
    border-radius: 50px !important;
    width: auto !important;
    /* Don't force full width for app feel */
    display: inline-block;
  }

  /* Carousel Navigation - Practical & Centered */
  .hero-carousel-nav {
    position: relative;
    top: 90%;
    bottom: 0px;
    left: 0;
    right: 0;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    pointer-events: none;
  }

  .carousel-prev,
  .carousel-next {
    width: 44px !important;
    height: 44px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    pointer-events: auto;
    /* Re-enable clicks */
  }

  .hero-carousel-indicators {
    bottom: 1.5rem;
    left: 0;
    right: 0;
    justify-content: center;
    /* Center indicators precisely */
    z-index: 9;
  }

  .indicator {
    width: 6px;
    height: 6px;
  }

  section.hero.hero-sub {
    padding: 4rem 1.25rem 2rem;
    height: 35vh;
    /* Compact sub-hero */
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
  }

  section.hero.hero-sub .container {
    text-align: left;
  }

  section.hero.hero-sub .hero-label {
    font-size: 0.65rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
  }

  section.hero.hero-sub .hero-title {
    font-size: 2rem;
  }

  /* Footer - Compact and structured */
  footer {
    padding: 4rem 1.25rem 2rem;
    margin: 0;
    background: #000;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-info {
    text-align: left;
  }

  .footer-logo {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.2rem;
  }

  .footer-info img {
    width: 180px;
    margin-top: 1rem;
  }

  .footer-links h4 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
  }

  .footer-links ul li {
    margin-bottom: 0.5rem;
  }

  .footer-links ul li a {
    font-size: 0.85rem;
  }
}

/* Featured Projects Grid */
.featured-projects-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
}

.featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.featured-title {
  font-size: 2.5rem;
  margin: 1rem 0;
}

.featured-desc {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.6);
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.featured-small-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.featured-small-content h3 {
  font-size: 1.25rem;
}

.featured-small-content p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

@media (max-width: 992px) {
  .featured-projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-content {
    padding: 3rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 30%, transparent 100%);
  }

  .featured-title {
    font-size: 1.8rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  }

  .featured-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (max-width: 768px) {
  .featured-content {
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 10%, transparent 100%);
  }

  .featured-title {
    font-size: 1.25rem;
  }

  .featured-desc {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .featured-side {
    gap: 1.25rem;
  }

  .featured-small-content {
    padding: 1.25rem;
  }
}

/* CTA Section */
.cta-section {
  padding: 8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.cta-title {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  color: var(--text-muted);
  font-size: 1.4rem;
  margin-bottom: 4rem;
  font-weight: 300;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 5rem 1.25rem;
  }

  .cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .cta-subtitle {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 768px) {
  .contact-form-card {
    padding: 2.5rem 1.5rem;
  }

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

/* Projects Page Grid - App-like Stacking */
.project-card {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

.project-card-info {
  padding: 1rem 1.25rem 1.5rem;
  /* Reduced horizontal padding */
  background: rgba(255, 255, 255, 0.02);
}

.project-title {
  font-size: 1.25rem;
  margin: 0.5rem 0;
  color: white;
}

.project-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    height: auto !important;
  }

  .project-card-image {
    height: 200px;
  }
}

@media (max-width: 480px) {

  .btn-primary,
  .btn-secondary,
  .hero-btn {
    padding: 0.7rem 1.1rem;
    font-size: 0.8rem;
  }
}