/*
Theme Name: Dr. Mahmoud Eldosoky Clinic
Theme URI: https://drmahmoudeldosoky.com/
Author: Dr. Mahmoud Eldosoky Clinic
Author URI: https://drmahmoudeldosoky.com/
Description: Classic WordPress Theme for Dr. Mahmoud Eldosoky - Consultant of Plastic, Reconstructive & Microvascular Hand Surgery.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: desoky
*/

/* ==========================================================================
   Dr. Mahmoud Eldosoky - Clinic Website Theme
   Color Palette: Dark Luxe Aesthetic (#1F1A21, #342C2F, #342825, #A48574, #b1835e4C)
   ========================================================================== */

:root {
  /* Exact Dark Luxe Palette */
  --bg-base: #1f1a21; /* Primary Dark / Background */
  --bg-surface: #342c2f; /* Secondary Dark / Surface / Cards */
  --bg-card: #342c2f; /* Card background */
  --bg-card-hover: #3d3437; /* Refined card hover surface */
  --bg-elevated: #342c2f; /* Elevated surfaces */
  --bg-input: #342825; /* Deep Dark / Dark Accent for input fields */
  --bg-input-focus: #3d302c; /* Focused input fields */

  /* Accent & Brand Palette */
  --primary-dark: #342825; /* Deep Dark / Dark Accent */
  --primary-mid: #b1835e4c; /* Warm Bronze / Primary Accent */
  --primary-light: #a48574; /* Muted Taupe / Secondary Accent */
  --primary-teal-glow: #a48574; /* Refined Muted Taupe */
  --primary-teal-soft: rgba(164, 133, 116, 0.12);

  /* Warm Bronze Primary Accent */
  --accent: #b1835e; /* Warm Bronze / Primary Accent */
  --accent-hover: #a87856; /* Refined Warm Bronze Hover */
  --accent-glow: rgba(152, 107, 76, 0.25);
  --accent-secondary: #a48574; /* Muted Taupe */
  --dark-accent: #342825; /* Deep Dark */

  /* Text & Readability (High Contrast & Clean Hierarchy) */
  --text-primary: #faf7f5; /* Crisp, clean off-white headings */
  --text-secondary: #d8ceca; /* Soft taupe-tinted off-white body text */
  --text-muted: #cb916b; /* Muted Taupe for captions, labels */
  --text-dark: #faf7f5;
  --white: #ffffff;
  --bg-light: #342c2f;

  /* Borders & Outlines */
  --border-color: rgba(164, 133, 116, 0.22); /* Clean Muted Taupe border */
  --border-hover: rgba(152, 107, 76, 0.5); /* Warm Bronze border on hover */
  --border-gold: rgba(152, 107, 76, 0.45);
  --border-glass: rgba(164, 133, 116, 0.2);
  --glass-border: rgba(164, 133, 116, 0.15);

  /* Shadows (Deep, realistic, no neon glows) */
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 45px rgba(0, 0, 0, 0.65);
  --shadow-glow-teal: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-glow-accent: 0 4px 20px rgba(152, 107, 76, 0.2);

  /* Transitions & Radii */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius: 14px;
}

/* =========================================
   Base & Reset
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Noto Sans Arabic", sans-serif;
  background-color: var(--bg-base);
  color: var(--text-secondary);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: rgba(152, 107, 76, 0.35);
  color: var(--text-primary);
}

/* Custom Sleek Dark Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: rgba(164, 133, 116, 0.25);
  border-radius: 6px;
  border: 2px solid var(--bg-base);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(152, 107, 76, 0.55);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   Header & Sticky Navigation
   ========================================= */
.site-header {
  background-color: rgba(31, 26, 33, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
  padding: 0 20px !important;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #b1835e4c, #342825);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-text span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-teal-glow);
  margin-top: -4px;
  letter-spacing: 0.3px;
}

/* =========================================
   SUPER MEGA FOOTER & ANIMATIONS
   ========================================= */
.mega-footer {
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(52, 40, 37, 0.6) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, #1f1a21 0%, #151117 100%) !important;
  color: var(--white);
  padding: 90px 0 30px;
  position: relative;
  overflow: hidden;
  border-top: 3px solid #b1835e4c !important;
}

/* Background Ambient Glows */
.footer-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 480px;
  height: 480px;
  background: rgba(164, 133, 116, 0.08);
  top: -100px;
  right: -100px;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(152, 107, 76, 0.08);
  bottom: 50px;
  left: -100px;
}

.mega-footer .container {
  position: relative;
  z-index: 1;
}

/* Scroll Reveal Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 1. Upper Showcase (Gallery + Booking Form) */
.footer-upper-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 45px;
  background: rgba(52, 44, 47, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(164, 133, 116, 0.22);
  border-radius: 28px;
  padding: 45px;
  margin-bottom: 48px;
  box-shadow: none;
  align-items: center;
}

.badge-gold {
  display: inline-block;
  background: rgba(152, 107, 76, 0.15);
  color: #b1835e4c;
  border: 1px solid rgba(152, 107, 76, 0.4);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.gallery-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.35;
  color: #faf7f5;
}

.gallery-header p {
  color: #d8ceca;
  margin-bottom: 28px;
  font-size: 0.98rem;
}

/* Doctor Photos Grid */
.doctor-photos-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  position: relative;
}

.sub-photos-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.photo-card {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(164, 133, 116, 0.25);
  box-shadow: none;
  background-color: #342c2f;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.main-photo {
  height: 360px;
}

.sub-photo {
  height: 172px;
}

.photo-card:hover img {
  transform: scale(1.07);
}

/* Footer Booking Card */
.footer-booking-card {
  background: #342c2f;
  color: #faf7f5;
  padding: 36px 32px;
  border-radius: 22px;
  box-shadow: none;
  border: 1px solid rgba(164, 133, 116, 0.25);
  border-top: 3px solid #b1835e4c;
}

.form-header {
  margin-bottom: 22px;
}

.form-header h3 {
  font-size: 1.35rem;
  color: #faf7f5;
  font-weight: 800;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 0.88rem;
  color: #a48574;
}

.clinic-form .form-group,
.footer-booking-card .wpcf7-form .form-group {
  margin-bottom: 16px;
}

.clinic-form .form-row,
.footer-booking-card .wpcf7-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.clinic-form label,
.footer-booking-card .wpcf7-form label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #e0eef1;
  margin-bottom: 6px;
  text-align: right;
}


.clinic-form input:not([type="submit"]),
.clinic-form select,
.clinic-form textarea,
.footer-booking-card .wpcf7-form input:not([type="submit"]),
.footer-booking-card .wpcf7-form select,
.footer-booking-card .wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(164, 133, 116, 0.25);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #faf7f5;
  background-color: var(--bg-base);
  transition: var(--transition);
  outline: none;
}

.clinic-form input::placeholder,
.clinic-form textarea::placeholder,
.footer-booking-card .wpcf7-form input::placeholder,
.footer-booking-card .wpcf7-form textarea::placeholder {
  color: #a48574;
}

.clinic-form input:focus,
.clinic-form select:focus,
.clinic-form textarea:focus,
.footer-booking-card .wpcf7-form input:focus,
.footer-booking-card .wpcf7-form select:focus,
.footer-booking-card .wpcf7-form textarea:focus {
  border-color: #b1835e4c;
  background-color: #3d302c;
  box-shadow: none;
}

.clinic-form select option,
.footer-booking-card .wpcf7-form select option {
  background-color: #342c2f;
  color: #faf7f5;
}

.clinic-form select optgroup,
.footer-booking-card .wpcf7-form select optgroup {
  background-color: #342825;
  color: #b1835e4c;
  font-weight: 700;
}

.btn-submit-form,
.footer-booking-card .wpcf7-form .wpcf7-submit {
  width: 100%;
  background: linear-gradient(135deg, #c49671 0%, #b1835e 100%);
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: none;
  transition: var(--transition);
}

.btn-submit-form:hover,
.footer-booking-card .wpcf7-form .wpcf7-submit:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

/* Contact Form 7 Wrapper & Feedback Styling */
.footer-booking-card .wpcf7-form p {
  margin: 0;
}

.footer-booking-card .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.footer-booking-card .wpcf7-not-valid-tip {
  color: #fca5a5;
  font-size: 0.78rem;
  margin-top: 4px;
  display: block;
}

.footer-booking-card .wpcf7-response-output {
  margin: 14px 0 0 !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: 0.85rem !important;
  border-width: 1px !important;
  background: rgba(52, 44, 47, 0.9);
  color: #faf7f5;
}

.footer-booking-card .wpcf7-spinner {
  margin-top: 8px;
}

/* 2. Contact Strip */
.footer-contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 55px;
}

.contact-card {
  background: rgba(52, 44, 47, 0.7);
  border: 1px solid rgba(164, 133, 116, 0.22);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: none;
  transition: var(--transition);
}

.contact-card:hover {
  background: rgba(52, 44, 47, 0.95);
  border-color: #b1835e4c;
  transform: translateY(-5px);
  box-shadow: none;
}

.contact-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #b1835e4c, #342825);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-card:hover .contact-icon {
  background: #b1835e;
  color: #1f1a21;
  transform: scale(1.08) rotate(-5deg);
  box-shadow: none;
}

.contact-details span {
  display: block;
  font-size: 0.82rem;
  color: #b1835e4c;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-details strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #faf7f5;
}

/* 3. Footer Links Grid */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 45px;
  border-bottom: 1px solid rgba(164, 133, 116, 0.2);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo strong {
  display: block;
  font-size: 1.25rem;
  color: #faf7f5;
}

.footer-logo span {
  font-size: 0.82rem;
  color: #b1835e4c;
}

.footer-desc {
  font-size: 0.92rem;
  color: #d8ceca;
  margin-bottom: 24px;
  line-height: 1.8;
}

.social-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #b1835e4c;
  margin-bottom: 12px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(164, 133, 116, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.social-btn:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: transparent;
}

.social-btn.fb:hover {
  background: #1877f2;
  box-shadow: none;
}

.social-btn.tiktok:hover {
  background: #000000;
  border-color: #00f2fe;
  box-shadow: none;
}

.social-btn.ig:hover {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  box-shadow: none;
}

.social-btn.wa:hover {
  background: #25d366;
  box-shadow: none;
}

.footer-heading {
  font-size: 1.12rem;
  font-weight: 800;
  color: #faf7f5;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background-color: #b1835e4c;
  border-radius: 2px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 0.92rem;
  color: #d8ceca;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links a::before {
  content: "›";
  color: #b1835e4c;
  font-weight: 800;
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}

.footer-links a:hover {
  color: #b1835e4c;
  transform: translateX(-6px);
}

/* 4. Footer Bottom */
.mega-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 25px;
  margin-top: 0;
  border-top: none;
  font-size: 0.9rem;
  color: #a48574;
}

.footer-quick-nav {
  display: flex;
  gap: 20px;
}

.footer-quick-nav a {
  color: #d8ceca;
  transition: var(--transition);
}

.footer-quick-nav a:hover {
  color: #b1835e4c;
}

/* WhatsApp FAB */
.floating-contact-actions {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
  background: #b1835e;
}

.floating-btn:hover {
  transform: scale(1.1);
}

/* =========================================
   Responsive Design (Mobile & Tablet)
   ========================================= */
@media (max-width: 1024px) {
  .footer-upper-showcase {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }

  .footer-contact-strip {
    grid-template-columns: 1fr;
  }

  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header .header-inner {
    height: 64px;
    padding: 0 14px !important;
  }

  .brand-logo img {
    width: 118px !important;
  }

  .doctor-photos-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sub-photos-col {
    flex-direction: row;
    gap: 10px;
  }

  .sub-photo {
    flex: 1;
    height: 110px;
    border-radius: 12px;
  }

  .main-photo {
    height: 220px;
    border-radius: 14px;
  }

  .footer-upper-showcase {
    padding: 20px 14px;
    border-radius: 18px;
    margin-bottom: 20px;
  }

  .gallery-header h2 {
    font-size: 1.25rem;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .gallery-header p {
    font-size: 0.84rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .footer-booking-card {
    padding: 18px 14px;
    border-radius: 16px;
    margin-top: 10px;
  }

  .form-header {
    margin-bottom: 14px;
  }

  .form-header h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
  }

  .form-header p {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .clinic-form .form-group,
  .footer-booking-card .wpcf7-form .form-group {
    margin-bottom: 11px;
  }

  .clinic-form label,
  .footer-booking-card .wpcf7-form label {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .clinic-form input:not([type="submit"]),
  .clinic-form select,
  .clinic-form textarea,
  .footer-booking-card .wpcf7-form input:not([type="submit"]),
  .footer-booking-card .wpcf7-form select,
  .footer-booking-card .wpcf7-form textarea {
    padding: 9px 12px;
    font-size: 0.86rem;
    border-radius: 8px;
  }

  .clinic-form .form-row,
  .footer-booking-card .wpcf7-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .btn-submit-form,
  .footer-booking-card .wpcf7-form .wpcf7-submit {
    padding: 11px 16px;
    font-size: 0.9rem;
    border-radius: 10px;
    gap: 8px;
  }

  .footer-contact-strip {
    gap: 10px;
    margin-bottom: 24px;
  }

  .contact-card {
    padding: 12px 14px;
    border-radius: 14px;
    gap: 12px;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .contact-icon svg {
    width: 20px;
    height: 20px;
  }

  .contact-details span {
    font-size: 0.74rem;
    margin-bottom: 1px;
  }

  .contact-details strong {
    font-size: 0.9rem;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 22px;
  }

  .footer-logo {
    gap: 10px;
    margin-bottom: 10px;
  }

  .footer-logo strong {
    font-size: 1.05rem;
  }

  .footer-logo span {
    font-size: 0.72rem;
  }

  .footer-desc {
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .social-title {
    font-size: 0.78rem;
    margin-bottom: 8px;
  }

  .social-links {
    gap: 8px;
  }

  .social-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .social-btn svg {
    width: 17px;
    height: 17px;
  }

  .footer-heading {
    font-size: 0.96rem;
    margin-bottom: 10px;
    padding-bottom: 6px;
  }

  .footer-heading::after {
    width: 30px;
    height: 2px;
  }

  .footer-links {
    gap: 6px;
    font-size: 0.82rem;
  }

  .mega-footer .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 16px 0 10px;
    font-size: 0.78rem;
  }

  .footer-quick-nav {
    gap: 12px;
    font-size: 0.78rem;
  }

  .floating-contact-actions {
    bottom: 16px;
    left: 16px;
    gap: 8px;
  }

  .floating-btn {
    width: 46px;
    height: 46px;
  }

  .floating-btn svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .brand-logo img {
    width: 108px !important;
  }

  .main-photo {
    height: 190px;
  }

  .sub-photo {
    height: 95px;
  }

  .gallery-header h2 {
    font-size: 1.15rem;
  }

  .gallery-header p {
    font-size: 0.78rem;
  }

  .footer-booking-card {
    padding: 16px 12px;
  }

  .form-header h3 {
    font-size: 1.05rem;
  }

  .clinic-form input:not([type="submit"]),
  .clinic-form select,
  .clinic-form textarea,
  .footer-booking-card .wpcf7-form input:not([type="submit"]),
  .footer-booking-card .wpcf7-form select,
  .footer-booking-card .wpcf7-form textarea {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .btn-submit-form,
  .footer-booking-card .wpcf7-form .wpcf7-submit {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   3D COVERFLOW GALLERY - BULLETPROOF RESPONSIVE & HORIZONTAL OVERFLOW FIX
   Prevents horizontal page stretching on mobile devices across all service pages
   ========================================================================== */
.gallery-3d-section {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  overflow-x: clip !important;
  contain: paint;
  position: relative !important;
  box-sizing: border-box !important;
}

.gallery-3d-section .container {
  max-width: 100% !important;
  overflow: visible;
  box-sizing: border-box;
}

.carousel-3d-stage {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.carousel-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 10px;
}

.carousel-dots {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px;
  max-width: calc(100% - 100px);
}

@media (max-width: 1024px) {
  .carousel-3d-card.is-right-2,
  .carousel-3d-card.is-left-2 {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate3d(0, 0, -300px) scale(0.5) !important;
  }
}

@media (max-width: 640px) {
  .gallery-3d-section {
    padding: 50px 0 60px !important;
  }

  .carousel-3d-stage {
    height: 380px !important;
    perspective: 900px !important;
  }

  .carousel-3d-card {
    width: min(280px, 76vw) !important;
    max-width: 78vw !important;
    height: 350px !important;
  }

  .carousel-3d-card.is-right-1 {
    transform: translate3d(min(80px, 20vw), 0, -70px) rotateY(-18deg)
      scale(0.82) !important;
  }

  .carousel-3d-card.is-left-1 {
    transform: translate3d(max(-80px, -20vw), 0, -70px) rotateY(18deg)
      scale(0.82) !important;
  }

  .carousel-controls {
    gap: 10px !important;
  }

  .carousel-nav-btn {
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0 !important;
  }

  .carousel-dot {
    width: 8px !important;
    height: 8px !important;
  }

  .carousel-dot.active {
    width: 24px !important;
  }
}

@media (max-width: 380px) {
  .carousel-3d-stage {
    height: 340px !important;
  }

  .carousel-3d-card {
    width: min(250px, 74vw) !important;
    max-width: 76vw !important;
    height: 320px !important;
  }

  .carousel-3d-card.is-right-1 {
    transform: translate3d(min(65px, 18vw), 0, -60px) rotateY(-16deg) scale(0.8) !important;
  }

  .carousel-3d-card.is-left-1 {
    transform: translate3d(max(-65px, -18vw), 0, -60px) rotateY(16deg)
      scale(0.8) !important;
  }
}




.hero-cta-group a.btn-cta{
  background: var(--accent);
  color: #1f1a21;
  font-weight: 800;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-size: clamp(0.88rem, 2vw, 0.95rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  transition: var(--transition-smooth);
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}

.hero-cta-group a.btn-cta:hover{
  background: var(--accent);
  
  transform: translateY(-2px);
 

}

/* ==========================================================================
   EXCLUSIVE SERVICES PAGE CONTAINER DECORATION
   Subtle Two-Layer Architectural Mesh & Abstract Flowing Contour Lines
   Applied exclusively to .services-page without affecting global theme or styles
   ========================================================================== */

.services-page {
  position: relative;
  isolation: isolate;
}

/* Layer 1: Geometric Wireframe Grid Pattern (Faint Technical Polygonal Grid Mesh) */
.services-page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='104'%20viewBox='0%200%20120%20104'%20fill='none'%3E%3Cpath%20d='M0,0%20L120,0%20M0,52%20L120,52%20M0,104%20L120,104'%20stroke='rgba(164,133,116,0.14)'%20stroke-width='0.75'/%3E%3Cpath%20d='M0,0%20L60,104%20M60,0%20L120,104%20M60,0%20L0,104%20M120,0%20L60,104'%20stroke='rgba(164,133,116,0.14)'%20stroke-width='0.75'/%3E%3Cpath%20d='M0,52%20L30,104%20M90,0%20L120,52%20M120,52%20L90,104%20M30,0%20L0,52'%20stroke='rgba(164,133,116,0.14)'%20stroke-width='0.75'/%3E%3Cpath%20d='M30,52%20L90,52%20M60,0%20L60,104'%20stroke='rgba(152,107,76,0.10)'%20stroke-width='0.5'%20stroke-dasharray='2%203'/%3E%3Ccircle%20cx='0'%20cy='0'%20r='1.5'%20fill='rgba(164,133,116,0.25)'/%3E%3Ccircle%20cx='60'%20cy='0'%20r='1.5'%20fill='rgba(164,133,116,0.25)'/%3E%3Ccircle%20cx='120'%20cy='0'%20r='1.5'%20fill='rgba(164,133,116,0.25)'/%3E%3Ccircle%20cx='30'%20cy='52'%20r='1.8'%20fill='rgba(152,107,76,0.30)'/%3E%3Ccircle%20cx='90'%20cy='52'%20r='1.8'%20fill='rgba(152,107,76,0.30)'/%3E%3Ccircle%20cx='0'%20cy='104'%20r='1.5'%20fill='rgba(164,133,116,0.25)'/%3E%3Ccircle%20cx='60'%20cy='104'%20r='1.5'%20fill='rgba(164,133,116,0.25)'/%3E%3Ccircle%20cx='120'%20cy='104'%20r='1.5'%20fill='rgba(164,133,116,0.25)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 120px 104px;
  background-position: center top;
  opacity: 0.38;
  mask-image: radial-gradient(ellipse 95% 95% at 50% 50%, #000 65%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 95% 95% at 50% 50%, #000 65%, transparent 100%);
}

/* Layer 2: Elegant Abstract Flowing Contour Lines (Subtle Vector Wave Lines) */
.services-page::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1600'%20height='1000'%20viewBox='0%200%201600%201000'%20fill='none'%3E%3C%21--%20Elegant%20Abstract%20Flowing%20Contour%20Lines%20--%3E%3Cpath%20d='M0,60%20C450,180%201050,80%201600,260'%20stroke='rgba(152,107,76,0.100)'%20stroke-width='1.2'%20fill='none'/%3E%3Cpath%20d='M0,86%20C450,208%201050,104%201600,286'%20stroke='rgba(164,133,116,0.090)'%20stroke-width='0.85'%20fill='none'/%3E%3Cpath%20d='M0,112%20C450,236%201050,128%201600,312'%20stroke='rgba(152,107,76,0.080)'%20stroke-width='1.2'%20stroke-dasharray='6%204'%20fill='none'/%3E%3Cpath%20d='M0,138%20C450,264%201050,152%201600,338'%20stroke='rgba(164,133,116,0.070)'%20stroke-width='0.85'%20fill='none'/%3E%3Cpath%20d='M0,164%20C450,292%201050,176%201600,364'%20stroke='rgba(152,107,76,0.060)'%20stroke-width='1.2'%20fill='none'/%3E%3Cpath%20d='M0,190%20C450,320%201050,200%201600,390'%20stroke='rgba(164,133,116,0.050)'%20stroke-width='0.85'%20stroke-dasharray='2%204'%20fill='none'/%3E%3Cpath%20d='M0,216%20C450,348%201050,224%201600,416'%20stroke='rgba(152,107,76,0.040)'%20stroke-width='1.2'%20fill='none'/%3E%3Cpath%20d='M0,380%20C400,520%201100,340%201600,480'%20stroke='rgba(164,133,116,0.090)'%20stroke-width='1.0'%20fill='none'/%3E%3Cpath%20d='M0,402%20C400,544%201100,360%201600,502'%20stroke='rgba(152,107,76,0.082)'%20stroke-width='0.8'%20fill='none'/%3E%3Cpath%20d='M0,424%20C400,568%201100,380%201600,524'%20stroke='rgba(164,133,116,0.074)'%20stroke-width='1.0'%20fill='none'/%3E%3Cpath%20d='M0,446%20C400,592%201100,400%201600,546'%20stroke='rgba(152,107,76,0.066)'%20stroke-width='0.8'%20stroke-dasharray='8%206'%20fill='none'/%3E%3Cpath%20d='M0,468%20C400,616%201100,420%201600,568'%20stroke='rgba(164,133,116,0.058)'%20stroke-width='1.0'%20fill='none'/%3E%3Cpath%20d='M0,490%20C400,640%201100,440%201600,590'%20stroke='rgba(152,107,76,0.050)'%20stroke-width='0.8'%20fill='none'/%3E%3Cpath%20d='M0,512%20C400,664%201100,460%201600,612'%20stroke='rgba(164,133,116,0.042)'%20stroke-width='1.0'%20fill='none'/%3E%3Cpath%20d='M0,534%20C400,688%201100,480%201600,634'%20stroke='rgba(152,107,76,0.034)'%20stroke-width='0.8'%20fill='none'/%3E%3Cpath%20d='M0,740%20C500,660%201000,850%201600,760'%20stroke='rgba(152,107,76,0.085)'%20stroke-width='1.1'%20fill='none'/%3E%3Cpath%20d='M0,768%20C500,686%201000,880%201600,788'%20stroke='rgba(164,133,116,0.075)'%20stroke-width='0.75'%20stroke-dasharray='4%206'%20fill='none'/%3E%3Cpath%20d='M0,796%20C500,712%201000,910%201600,816'%20stroke='rgba(152,107,76,0.065)'%20stroke-width='1.1'%20fill='none'/%3E%3Cpath%20d='M0,824%20C500,738%201000,940%201600,844'%20stroke='rgba(164,133,116,0.055)'%20stroke-width='0.75'%20fill='none'/%3E%3Cpath%20d='M0,852%20C500,764%201000,970%201600,872'%20stroke='rgba(152,107,76,0.045)'%20stroke-width='1.1'%20fill='none'/%3E%3Cpath%20d='M0,880%20C500,790%201000,1000%201600,900'%20stroke='rgba(164,133,116,0.035)'%20stroke-width='0.75'%20fill='none'/%3E%3Cpath%20d='M150,220%20C420,120%20780,240%20920,440'%20stroke='rgba(152,107,76,0.065)'%20stroke-width='1.2'%20stroke-dasharray='3%205'%20fill='none'/%3E%3Cpath%20d='M700,560%20C980,720%201350,650%201520,480'%20stroke='rgba(164,133,116,0.065)'%20stroke-width='1.2'%20stroke-dasharray='3%205'%20fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 1600px 1000px;
  background-position: center top;
  opacity: 0.48;
  mask-image: linear-gradient(180deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

@media (max-width: 768px) {
  .services-page::before {
    background-size: 90px 78px;
    opacity: 0.32;
  }
  .services-page::after {
    background-size: 1000px 750px;
    opacity: 0.40;
  }
}

/* ==========================================================================
   EXCLUSIVE .hero-experience GEOMETRIC WIREFRAME ACCENTS (#FFDEC0)
   1. Abstract geometric wireframe accents at top-right & bottom-left corners
   2. Subtle geometric frame decoration wrapping closely around .specialty-img-circle
   Scoped strictly to .hero-experience and nowhere else.
   ========================================================================== */

.hero-experience {
  position: relative;
  background-image: 
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='340'%20height='300'%20viewBox='0%200%20340%20300'%20fill='none'%3E%3C%21--%20Abstract%20Geometric%20Polygonal%20Wireframe%20-%20Top%20Right%20Corner%20--%3E%3Cg%20stroke='%23FFDEC0'%20stroke-width='0.85'%20opacity='0.22'%3E%3Cpath%20d='M340,0%20L200,0%20L270,90%20L340,50%20Z'%20/%3E%3Cpath%20d='M200,0%20L110,0%20L170,80%20L270,90%20Z'%20/%3E%3Cpath%20d='M110,0%20L30,0%20L90,65%20L170,80%20Z'%20/%3E%3Cpath%20d='M270,90%20L340,140%20L280,195%20L190,145%20Z'%20/%3E%3Cpath%20d='M170,80%20L270,90%20L190,145%20L120,125%20Z'%20/%3E%3Cpath%20d='M90,65%20L170,80%20L120,125%20L45,105%20Z'%20/%3E%3Cpath%20d='M190,145%20L280,195%20L225,255%20L140,210%20Z'%20/%3E%3Cpath%20d='M120,125%20L190,145%20L140,210%20L75,180%20Z'%20/%3E%3Cpath%20d='M280,195%20L340,215%20L295,290%20L225,255%20Z'%20/%3E%3Cpath%20d='M140,210%20L225,255%20L170,300%20L95,260%20Z'%20/%3E%3C%21--%20Delicate%20dashed%20technical%20chords%20--%3E%3Cline%20x1='340'%20y1='0'%20x2='140'%20y2='210'%20stroke-dasharray='4%205'%20stroke-width='0.6'%20opacity='0.65'%20/%3E%3Cline%20x1='200'%20y1='0'%20x2='225'%20y2='255'%20stroke-dasharray='3%204'%20stroke-width='0.6'%20opacity='0.65'%20/%3E%3Cline%20x1='45'%20y1='105'%20x2='295'%20y2='290'%20stroke-dasharray='2%205'%20stroke-width='0.5'%20opacity='0.5'%20/%3E%3C%21--%20Top-Right%20Corner%20framing%20tick%20--%3E%3Cpath%20d='M315,10%20L330,10%20L330,25'%20stroke-width='1.2'%20opacity='0.75'%20/%3E%3C/g%3E%3C%21--%20Vertex%20Nodes%20--%3E%3Cg%20fill='%23FFDEC0'%20opacity='0.35'%3E%3Ccircle%20cx='270'%20cy='90'%20r='1.8'%20/%3E%3Ccircle%20cx='170'%20cy='80'%20r='1.8'%20/%3E%3Ccircle%20cx='190'%20cy='145'%20r='1.8'%20/%3E%3Ccircle%20cx='280'%20cy='195'%20r='1.8'%20/%3E%3Ccircle%20cx='120'%20cy='125'%20r='1.5'%20/%3E%3Ccircle%20cx='140'%20cy='210'%20r='1.5'%20/%3E%3Ccircle%20cx='225'%20cy='255'%20r='1.5'%20/%3E%3Ccircle%20cx='90'%20cy='65'%20r='1.5'%20/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='340'%20height='300'%20viewBox='0%200%20340%20300'%20fill='none'%3E%3C%21--%20Abstract%20Geometric%20Polygonal%20Wireframe%20-%20Bottom%20Left%20Corner%20--%3E%3Cg%20stroke='%23FFDEC0'%20stroke-width='0.85'%20opacity='0.22'%3E%3Cpath%20d='M0,300%20L140,300%20L70,210%20L0,250%20Z'%20/%3E%3Cpath%20d='M140,300%20L230,300%20L170,220%20L70,210%20Z'%20/%3E%3Cpath%20d='M230,300%20L310,300%20L250,235%20L170,220%20Z'%20/%3E%3Cpath%20d='M70,210%20L0,160%20L60,105%20L150,155%20Z'%20/%3E%3Cpath%20d='M170,220%20L70,210%20L150,155%20L220,175%20Z'%20/%3E%3Cpath%20d='M250,235%20L170,220%20L220,175%20L295,195%20Z'%20/%3E%3Cpath%20d='M150,155%20L60,105%20L115,45%20L200,90%20Z'%20/%3E%3Cpath%20d='M220,175%20L150,155%20L200,90%20L265,120%20Z'%20/%3E%3Cpath%20d='M60,105%20L0,85%20L45,10%20L115,45%20Z'%20/%3E%3Cpath%20d='M200,90%20L115,45%20L170,0%20L245,40%20Z'%20/%3E%3C%21--%20Delicate%20dashed%20technical%20chords%20--%3E%3Cline%20x1='0'%20y1='300'%20x2='200'%20y2='90'%20stroke-dasharray='4%205'%20stroke-width='0.6'%20opacity='0.65'%20/%3E%3Cline%20x1='140'%20y1='300'%20x2='115'%20y2='45'%20stroke-dasharray='3%204'%20stroke-width='0.6'%20opacity='0.65'%20/%3E%3Cline%20x1='295'%20y1='195'%20x2='45'%20y2='10'%20stroke-dasharray='2%205'%20stroke-width='0.5'%20opacity='0.5'%20/%3E%3C%21--%20Bottom-Left%20Corner%20framing%20tick%20--%3E%3Cpath%20d='M25,290%20L10,290%20L10,275'%20stroke-width='1.2'%20opacity='0.75'%20/%3E%3C/g%3E%3C%21--%20Vertex%20Nodes%20--%3E%3Cg%20fill='%23FFDEC0'%20opacity='0.35'%3E%3Ccircle%20cx='70'%20cy='210'%20r='1.8'%20/%3E%3Ccircle%20cx='170'%20cy='220'%20r='1.8'%20/%3E%3Ccircle%20cx='150'%20cy='155'%20r='1.8'%20/%3E%3Ccircle%20cx='60'%20cy='105'%20r='1.8'%20/%3E%3Ccircle%20cx='220'%20cy='175'%20r='1.5'%20/%3E%3Ccircle%20cx='200'%20cy='90'%20r='1.5'%20/%3E%3Ccircle%20cx='115'%20cy='45'%20r='1.5'%20/%3E%3Ccircle%20cx='250'%20cy='235'%20r='1.5'%20/%3E%3C/g%3E%3C/svg%3E");
  background-position: 
    top right,
    bottom left;
  background-repeat: 
    no-repeat,
    no-repeat;
  background-size: 
    340px 300px,
    340px 300px;
}

/* Subtle Geometric Frame Wrapping Closely Around .specialty-img-circle */
.hero-experience .specialty-img-circle::after {
  content: "";
  position: absolute;
  inset: -22px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='210'%20height='210'%20viewBox='0%200%20210%20210'%20fill='none'%3E%3C%21--%20Geometric%20Polygonal%20Frame%20Decoration%20Wrapping%20Closely%20Around%20.specialty-img-circle%20--%3E%3Cg%20stroke='%23FFDEC0'%20stroke-width='0.85'%20opacity='0.26'%3E%3C%21--%20Polygonal%20Faceted%20Outer%20Ring%20--%3E%3Cpath%20d='M%20195.0,105.0%20L%20182.9,150.0%20L%20150.0,182.9%20L%20105.0,195.0%20L%2060.0,182.9%20L%2027.1,150.0%20L%2015.0,105.0%20L%2027.1,60.0%20L%2060.0,27.1%20L%20105.0,15.0%20L%20150.0,27.1%20L%20182.9,60.0%20Z'%20/%3E%3C%21--%20Fine%20dashed%20geometric%20orbit%20--%3E%3Ccircle%20cx='105'%20cy='105'%20r='84'%20stroke-dasharray='3%204'%20stroke-width='0.6'%20opacity='0.7'%20/%3E%3C%21--%20Radial%20Tick%20Marks%20--%3E%3Cpath%20d='M%20188.0,105.0%20L%20192.0,105.0%20M%20176.9,146.5%20L%20180.3,148.5%20M%20146.5,176.9%20L%20148.5,180.3%20M%20105.0,188.0%20L%20105.0,192.0%20M%2063.5,176.9%20L%2061.5,180.3%20M%2033.1,146.5%20L%2029.7,148.5%20M%2022.0,105.0%20L%2018.0,105.0%20M%2033.1,63.5%20L%2029.7,61.5%20M%2063.5,33.1%20L%2061.5,29.7%20M%20105.0,22.0%20L%20105.0,18.0%20M%20146.5,33.1%20L%20148.5,29.7%20M%20176.9,63.5%20L%20180.3,61.5'%20stroke-width='0.75'%20/%3E%3C%21--%20Corner%20Framing%20Brackets%20--%3E%3Cpath%20d='M%2022,36%20L%2022,22%20L%2036,22%20M%20174,22%20L%20188,22%20L%20188,36%20M%20188,174%20L%20188,188%20L%20174,188%20M%2036,188%20L%2022,188%20L%2022,174'%20stroke-width='1.1'%20opacity='0.85'%20/%3E%3C/g%3E%3C%21--%20Geometric%20Diamond%20Accents%20--%3E%3Cg%20stroke='%23FFDEC0'%20stroke-width='0.7'%20fill='none'%20opacity='0.32'%3E%3Cpath%20d='M%20199.5,105.0%20L%20202.0,102.5%20L%20204.5,105.0%20L%20202.0,107.5%20Z'%20/%3E%3Cpath%20d='M%20171.1,173.6%20L%20173.6,171.1%20L%20176.1,173.6%20L%20173.6,176.1%20Z'%20/%3E%3Cpath%20d='M%20102.5,202.0%20L%20105.0,199.5%20L%20107.5,202.0%20L%20105.0,204.5%20Z'%20/%3E%3Cpath%20d='M%2033.9,173.6%20L%2036.4,171.1%20L%2038.9,173.6%20L%2036.4,176.1%20Z'%20/%3E%3Cpath%20d='M%205.5,105.0%20L%208.0,102.5%20L%2010.5,105.0%20L%208.0,107.5%20Z'%20/%3E%3Cpath%20d='M%2033.9,36.4%20L%2036.4,33.9%20L%2038.9,36.4%20L%2036.4,38.9%20Z'%20/%3E%3Cpath%20d='M%20102.5,8.0%20L%20105.0,5.5%20L%20107.5,8.0%20L%20105.0,10.5%20Z'%20/%3E%3Cpath%20d='M%20171.1,36.4%20L%20173.6,33.9%20L%20176.1,36.4%20L%20173.6,38.9%20Z'%20/%3E%3C/g%3E%3C%21--%20Cardinal%20Node%20Dots%20--%3E%3Cg%20fill='%23FFDEC0'%20opacity='0.38'%3E%3Ccircle%20cx='105'%20cy='15'%20r='1.6'%20/%3E%3Ccircle%20cx='195'%20cy='105'%20r='1.6'%20/%3E%3Ccircle%20cx='105'%20cy='195'%20r='1.6'%20/%3E%3Ccircle%20cx='15'%20cy='105'%20r='1.6'%20/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.hero-experience .specialty-img-circle:hover::after {
  transform: scale(1.05) rotate(15deg);
  opacity: 0.9;
}

@media (max-width: 992px) {
  .hero-experience {
    background-size: 
      260px 230px,
      260px 230px;
  }
}

@media (max-width: 768px) {
  .hero-experience {
    background-size: 
      190px 170px,
      190px 170px;
  }
  .hero-experience .specialty-img-circle::after {
    inset: -18px;
  }
}
