@import './fonts.css';
@import './bootstrap.css';

:root {
  --bs-primary-color: #121212;
  --bs-secondary-color: #1E1E1E;
  --bs-text-primary-color: #a1a1a1;
  --bs-text-secondary-color: #f1f1f1;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  user-select: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  background-color: var(--bs-primary-color);
  color: var(--bs-text-primary-color);
}

body::-webkit-scrollbar {
  display: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Neutral Face', 'Manrope', Arial, sans-serif;
  color: var(--bs-text-secondary-color);
  margin-bottom: 0 !important;
}

p {
  margin-bottom: 0 !important;
  line-height: 1.6;
}

a {
  text-decoration: none !important;
  color: var(--bs-text-secondary-color);
  transition: var(--transition-smooth);
}

a:hover {
  color: #eff1ff;
}

/* Navigation */
.navbar {
  padding: 0.5rem 0;
  backdrop-filter: blur(10px);
  background-color: rgba(18, 18, 18, 0.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand {
  font-size: 1.25rem;
}

.logo-img {
  max-width: 60px;
  height: auto;
  transition: var(--transition-smooth);
}

.logo-img:hover {
  opacity: 0.8;
}

/* Responsive logo sizing */
@media (min-width: 576px) {
  .logo-img {
    max-width: 75px;
  }
}

@media (min-width: 768px) {
  .logo-img {
    max-width: 100px;
  }
}

/* Footer Logo */
.footer-logo {
  max-width: 160px;
  height: auto;
  transition: var(--transition-smooth);
}

.footer-logo:hover {
  opacity: 0.8;
}

.nav-link {
  font-size: 0.875rem;
  font-family: 'Neutral Face', sans-serif;
  color: var(--bs-text-primary-color) !important;
  margin: 0 0.75rem;
  letter-spacing: normal;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover {
  color: var(--bs-text-secondary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--bs-text-secondary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Language Switcher */
.language-switcher {
  align-items: center;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--bs-text-primary-color);
  font-family: 'Neutral Face', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 0.25rem 0.5rem;
}

.lang-btn:hover {
  color: var(--bs-text-secondary-color);
}

.lang-btn.active {
  color: var(--bs-text-secondary-color);
  font-weight: bold;
}

.lang-separator {
  color: var(--bs-text-primary-color);
  opacity: 0.3;
  margin: 0 0.5rem;
}

/* Buttons */
.btn {
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.btn-fill-primary {
  background-color: var(--bs-text-secondary-color) !important;
  border: none !important;
  padding: 12px 24px !important;
  color: var(--bs-primary-color) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-fill-primary:hover {
  background-color: #eff1ff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(239, 241, 255, 0.2);
}

.btn-outline-light {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  color: var(--bs-text-primary-color) !important;
}

.btn-outline-light:hover {
  background-color: transparent !important;
  color: var(--bs-text-secondary-color) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}

.theme-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-cta .arrow-icon {
  rotate: -45deg;
  transition: rotate 0.3s ease;
}

.theme-cta:hover .arrow-icon {
  rotate: 0deg;
}

#dustCanvas {
  position: absolute;
  z-index: 1;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('../assets/imgs/hero-img.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* no overlay needed — the hero image already has the dark treatment */

.hero-title {
  width: 90vw;
  flex-shrink: 0;
  max-height: 35vh;
  z-index: 2;
}

.hero-heading {
  font-size: 3.5rem;
  color: var(--bs-text-secondary-color);
  background: linear-gradient(130deg, #eff1ff 30%, #121212 67%);
  background-position: 50% 75%;
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0 !important;
}

.hero-subheading {
  font-size: 1.25rem;
}

.hero-subtitle {
  margin-top: 1.5rem;
}

/* Scroll Down Indicator (Original) */
.scroll-down {
  position: absolute;
  display: flex;
  justify-content: center;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  z-index: 2;
  flex-shrink: 0;
}

.chevron {
  position: absolute;
  width: 28px;
  height: 2px;
  opacity: 0;
  margin-top: 20px;
  transform: scale3d(0.5, 0.5, 0.5);
  animation: move 3s ease-out infinite;
}

.chevron:first-child {
  animation: move 3s ease-out 1s infinite;
}

.chevron:nth-child(2) {
  animation: move 3s ease-out 2s infinite;
}

.chevron:before,
.chevron:after {
  content: ' ';
  position: absolute;
  top: 0;
  height: 100%;
  width: 51%;
  background: #fff;
}

.chevron:before {
  left: 0;
  transform: skew(0deg, 40deg);
}

.chevron:after {
  right: 0;
  width: 50%;
  transform: skew(0deg, -40deg);
}

@keyframes move {
  25% {
    opacity: 1;
  }
  33% {
    opacity: 1;
    transform: translateY(30px);
  }
  67% {
    opacity: 1;
    transform: translateY(40px);
  }
  100% {
    opacity: 0;
    transform: translateY(55px) scale3d(0.5, 0.5, 0.5);
  }
}

.scroll-down .text {
  display: block;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .25;
  animation: pulse 2s linear alternate infinite;
}

@keyframes pulse {
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Styles */
section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.section-heading {
  margin-bottom: 3rem;
}

.section-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--bs-text-primary-color);
  letter-spacing: 2px;
  font-weight: 600;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 1rem !important;
}

/* About Section */
.about-section {
  background-color: var(--bs-primary-color);
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bs-text-primary-color), transparent);
  opacity: 0.2;
}

.about-text {
  padding: 2rem 0;
}

.about-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--bs-text-primary-color);
  margin-bottom: 1.5rem;
}

.stats-grid {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.stats-grid .col-md-6 {
  width: 100%;
}

.stat-item {
  width: 100%;
  padding: 1.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(239, 241, 255, 0.05) 0%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.stat-item:hover {
  background: linear-gradient(135deg, rgba(239, 241, 255, 0.1) 0%, transparent 100%);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.stat-number {
  font-family: 'Neutral Face', sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: #eff1ff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--bs-text-primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.visual-box {
  position: relative;
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.visual-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.visual-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  padding: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f1f1f1;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transition: filter 0.3s ease, box-shadow 0.3s ease;
}

.visual-bubble::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.visual-bubble:hover {
  filter: brightness(1.2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.bubble-1 {
  bottom: 1%;
  left: 50%;
  width: 120px;
  height: 120px;
  animation: bubbleFloat1 7s ease-in-out infinite;
}

.bubble-2 {
  top: 10%;
  right: 6%;
  width: 120px;
  height: 120px;
  animation: bubbleFloat2 8s ease-in-out infinite 0.6s;
}

.bubble-3 {
  top: 50%;
  left: 8%;
  width: 100px;
  height: 100px;
  animation: bubbleFloat3 6.5s ease-in-out infinite 1.2s;
}

@keyframes bubbleFloat1 {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-16px); }
}

@keyframes bubbleFloat2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes bubbleFloat3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.visual-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  animation: floatAnimation 6s ease-in-out infinite;
}

.about-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 40px rgba(239, 241, 255, 0.1));
}

.visual-accent {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 241, 255, 0.1) 0%, transparent 70%);
  filter: blur(40px);
  animation: floatAnimation 8s ease-in-out infinite reverse;
  top: 90%;
  left: 80%;
  transform: translate(-50%, -50%);
}

@keyframes floatAnimation {
  0%, 100% { transform: translateY(0px) translate(-50%, -50%); }
  50% { transform: translateY(30px) translate(-50%, -50%); }
}

/* Same float, without the -50%/-50% centering translate. Used by
   .visual-content on mobile (see media query at the bottom of the file). */
@keyframes floatAnimationCentered {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(20px); }
}

/* Services Section */
.services-section {
  background: linear-gradient(180deg, var(--bs-primary-color) 0%, var(--bs-secondary-color) 100%);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bs-text-primary-color), transparent);
  opacity: 0.2;
}

.service-card {
  height: 100%;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.5) 0%, rgba(18, 18, 18, 0.5) 100%);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(239, 241, 255, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(18, 18, 18, 0.8) 100%);
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(239, 241, 255, 0.1);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(239, 241, 255, 0.05);
  border: 1px solid rgba(239, 241, 255, 0.1);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: rgba(239, 241, 255, 0.1);
  transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(239, 241, 255, 0.2));
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bs-text-secondary-color);
  margin-bottom: 0 !important;
  position: relative;
  z-index: 1;
}

.service-subtitle {
  font-family: 'Neutral Face', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bs-text-secondary-color);
  margin-top: -0.75rem;
  margin-bottom: 0 !important;
  position: relative;
  z-index: 1;
  opacity: 0.8;
  letter-spacing: 0.01em;
}

.service-description {
  font-size: 0.95rem;
  color: var(--bs-text-primary-color);
  line-height: 1.6;
  position: relative;
  z-index: 1;
  flex-grow: 1;
}

.solution-result {
  margin-top: 1.6em;
}

/* Cases Section */
.cases-section {
  background-color: var(--bs-primary-color);
  position: relative;
}

.cases-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bs-text-primary-color), transparent);
  opacity: 0.2;
}

.case-card {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.4) 0%, rgba(18, 18, 18, 0.4) 100%);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.case-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.7) 0%, rgba(18, 18, 18, 0.7) 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(239, 241, 255, 0.08);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.case-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bs-text-secondary-color);
  margin-bottom: 0 !important;
  line-height: 1.4;
}

.case-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  background: rgba(239, 241, 255, 0.1);
  color: var(--bs-text-secondary-color);
  border: 1px solid rgba(239, 241, 255, 0.2);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.case-description {
  font-size: 0.95rem;
  color: var(--bs-text-primary-color);
  line-height: 1.6;
  flex-grow: 1;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.case-year {
  font-size: 0.8rem;
  color: var(--bs-text-primary-color);
  opacity: 0.6;
}

/* Clients Section */
.clients-section {
  background: linear-gradient(180deg, var(--bs-secondary-color) 0%, var(--bs-primary-color) 100%);
  position: relative;
  overflow: hidden;
}

.clients-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bs-text-primary-color), transparent);
  opacity: 0.2;
}

.clients-marquee {
  overflow: hidden;
  width: 100%;
}

.clients-marquee-track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.client-name {
  font-family: 'Neutral Face', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #f1f1f1;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  cursor: default;
  flex-shrink: 0;
}

.client-name:hover {
  opacity: 1;
  color: #f1f1f1;
}

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

/* Contact Section */
.contact-section {
  background-color: var(--bs-primary-color);
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bs-text-primary-color), transparent);
  opacity: 0.2;
}

.contact-form-wrapper {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.5) 0%, rgba(18, 18, 18, 0.5) 100%);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-control {
  padding: 12px 16px !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
  color: var(--bs-text-primary-color) !important;
  font-family: 'Manrope', sans-serif;
  transition: var(--transition-smooth);
}

.form-control::placeholder {
  color: var(--bs-text-primary-color);
  opacity: 0.5;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(239, 241, 255, 0.3) !important;
  color: var(--bs-text-secondary-color) !important;
  box-shadow: 0 0 0 3px rgba(239, 241, 255, 0.1) !important;
}

.form-control.is-invalid {
  border-color: rgba(255, 120, 120, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(255, 120, 120, 0.08) !important;
}

.contact-form-hint {
  font-size: 0.8rem;
  color: var(--bs-text-primary-color);
  opacity: 0.65;
  margin: -0.25rem 0 0.25rem !important;
  letter-spacing: 0.01em;
}

.contact-form .btn-fill-primary {
  justify-content: center;
}

.contact-form .whatsapp-icon {
  transition: transform 0.3s ease;
}

.contact-form .btn-fill-primary:hover .whatsapp-icon {
  transform: scale(1.1) rotate(-6deg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.contact-item {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: rgba(30, 30, 30, 0.3);
  transition: var(--transition-smooth);
}

.contact-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(30, 30, 30, 0.5);
}

.contact-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bs-text-primary-color);
  margin-bottom: 0.75rem !important;
  font-weight: 600;
}

.contact-value {
  font-size: 1.1rem;
  color: var(--bs-text-secondary-color);
}

.contact-value a {
  color: var(--bs-text-secondary-color);
  transition: var(--transition-smooth);
}

.contact-value a:hover {
  color: #eff1ff;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--bs-text-primary-color);
  transition: var(--transition-smooth);
}

.social-link:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--bs-text-secondary-color);
}

/* Footer */
footer {
  background-color: rgba(18, 18, 18, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 5rem;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bs-text-secondary-color);
  margin-bottom: 1.5rem !important;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--bs-text-primary-color);
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(6, auto);
  justify-content: start;
  gap: 0.75rem 2.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--bs-text-primary-color);
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--bs-text-secondary-color);
  padding-left: 4px;
}

.footer-socials-col {
  text-align: left;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--bs-text-primary-color);
  filter: grayscale(100%);
  transition: var(--transition-smooth);
}

.footer-social-link:hover {
  color: var(--bs-text-secondary-color);
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .footer-socials-col {
    text-align: right;
  }

  .footer-socials-col .footer-socials {
    justify-content: flex-end;
  }
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bs-text-primary-color), transparent);
  opacity: 0.2;
}

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

.footer-copyright {
  font-size: 0.85rem;
  color: var(--bs-text-primary-color);
  opacity: 0.6;
  margin: 0;
}

.footer-privacy-link {
  font-size: 0.85rem;
  color: var(--bs-text-primary-color);
  opacity: 0.6;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-privacy-link:hover {
  color: var(--bs-text-secondary-color);
  opacity: 1;
}

/* Privacy Modal */
.modal-content {
  background-color: var(--bs-secondary-color);
  color: var(--bs-text-primary-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem 1.5rem;
}

.modal-title {
  color: var(--bs-text-secondary-color);
  font-family: 'Neutral Face', sans-serif;
  font-size: 1.25rem;
}

.modal-header .btn-close {
  filter: invert(1) grayscale(100%);
  opacity: 0.6;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-body.privacy-policy {
  padding: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.privacy-policy h6 {
  color: var(--bs-text-secondary-color);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.privacy-policy h6:first-child {
  margin-top: 0;
}

.privacy-policy ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.privacy-policy li {
  margin-bottom: 0.5rem;
}

.privacy-policy p {
  margin-bottom: 0.75rem;
}

/* Utility Classes */
.bg-blur {
  backdrop-filter: blur(10px);
  background-color: rgba(18, 18, 18, 0.8) !important;
}

.text-gradient {
  background: linear-gradient(130deg, #eff1ff 30%, var(--bs-text-secondary-color) 67%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    max-height: 30vh;
    overflow: hidden;
  }

  .hero-heading {
    font-size: 2rem;
  }

  .hero-subheading {
    font-size: 1rem;
  }

  .section-heading h2 {
    font-size: 1.75rem;
  }

  .service-card,
  .case-card {
    padding: 1.5rem;
  }

  .about-visual {
    min-height: 250px;
    margin-top: 2rem;
  }

  /* On mobile, drop the -50%/-50% centering translate that floatAnimation
     applies to .visual-content (it was authored for .visual-accent, which is
     absolutely positioned at top:90%/left:80% and needs that offset). On
     desktop the offset is preserved because the surrounding column has room
     to absorb it; on a narrow viewport it pushes the SVG off-screen. */
  .visual-content {
    animation-name: floatAnimationCentered;
  }

  /* The decorative blur ornament sits at left:80% on desktop, which puts
     half of its 200px box past the viewport on a narrow screen. Pull it
     inward on mobile so it doesn't trigger horizontal scroll. */
  .visual-accent {
    left: 50%;
    top: 80%;
  }

  /* Bootstrap's g-5 gutter (3rem) requires 24px of horizontal padding on the
     parent container to absorb the row's negative margin. The default
     .container only provides ~12px, so the contact row leaks 12px on each
     side. Shrink the gutter on mobile (columns stack here anyway). */
  .contact-section .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }

  .contact-info {
    margin-top: 2rem;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .language-switcher {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.25rem 0;
  }

  .logo-img {
    max-width: 70px;
  }

  .hero-title {
    max-height: 25vh;
  }

  .hero-heading {
    font-size: 1.5rem;
    padding: 0 !important;
  }

  .hero-subheading {
    font-size: 0.9rem;
  }

  .section-heading h2 {
    font-size: 1.5rem;
  }

  .section-label {
    font-size: 0.75rem;
  }

  .service-card,
  .case-card {
    padding: 1.25rem;
  }

  .service-title,
  .case-title {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .form-control {
    font-size: 16px !important;
  }
}

/* Landscape / 16:9-and-wider desktop viewports — the hero background image's
   "the legal workshop" logo sits high in the frame and crowds the subheading
   text on these aspect ratios. Pull the title block up (drop the pt-5) and
   anchor the background image to the top so the logo drops further into the
   viewport, giving the subheaders breathing room above the logo. */
@media (min-aspect-ratio: 16/10) and (min-width: 992px) {
  .hero-section {
    background-position: center top;
  }

  .hero-section .hero-title.pt-5 {
    padding-top: 0 !important;
  }

  .hero-subtitle {
    margin-top: 1rem;
  }
}

/* Counter Animation */
.counter {
  font-family: 'Neutral Face', sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: #eff1ff;
}

/* Scrollbar Styling (if enabled) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bs-text-primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bs-text-secondary-color);
}
