.nav-link:hover::after,
body,
html {
  width: 100%;
}
.btn-primary,
.btn-primary-dark {
    box-shadow: 0 4px 20px rgba(61, 59, 58, 0.25);
}
#preloader.hidden,
#scroll-top {
  opacity: 0;
  visibility: hidden;
}
#preloader,
.dark body,
.topbar {
  background: #0f172a;
}

:root {
    --primary: #3D3B3A;
    --primary-light: #E8E6E5;
    --secondary: #252423;
    --accent: #A7A3A1;

    --gradient: linear-gradient(
        135deg,
        #3D3B3A 0%,
        #252423 100%
    );

    --medical-gradient: linear-gradient(
        135deg,
        #252423 0%,
        #3D3B3A 60%,
        #777371 100%
    );
}
* {
  box-sizing: border-box;
}
body {
  font-family: Inter, sans-serif;
  background: #f8fafc;
  color: #0f172a;
}
.nav-link,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Outfit, sans-serif;
}

/* ======================================
   THE NEFER PRELOADER
====================================== */
/* =========================================
   THE NEFER - CUSTOM PRELOADER
========================================= */

#preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.nefer-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.65);
}

/* LOGO CONTAINER */

.nefer-logo {
    width: 440px;
    height: 190px;
    position: relative;
}

/* BIG CIRCLE */

.nefer-circle {
    position: absolute;
    left: 0;
    top: 0;

    width: 180px;
    height: 180px;

    border-radius: 50%;
    background: #3D3B3A;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: scale(0);
    animation: circleAppear 0.7s cubic-bezier(.2,.8,.3,1.3) forwards;
}

/* LETTER T */

.nefer-t {
    color: #FFFFFF;
    font-size: 155px;
    font-weight: 800;
    font-family: Arial, sans-serif;
    line-height: 1;

    transform: translateY(-5px);
    opacity: 0;

    animation: letterAppear 0.5s ease 0.4s forwards;
}

/* LETTER N */

.nefer-n {
    position: absolute;
    left: 190px;
    top: 35px;

    font-family: Arial, sans-serif;
    font-size: 175px;
    font-weight: 900;
    line-height: 1;

    color: #3D3B3A;

    opacity: 0;
    transform: translateX(-25px);

    animation: revealN 0.5s ease 1.9s forwards;
}

/* ROTATING DOT */

.nefer-dot-orbit {
    position: absolute;
    left: 90px;
    top: 90px;

    width: 0;
    height: 0;

    z-index: 5;

    animation: dotOrbit 1.7s cubic-bezier(.55,.05,.3,1) 0.4s forwards;
}

.nefer-dot {
    position: absolute;

    width: 40px;
    height: 40px;

    border-radius: 50%;
    background: #3D3B3A;

    transform: translate(-50%, -50%);
}

/* COLLISION RING */

.nefer-impact {
    position: absolute;
    left: 370px;
    top: 105px;

    width: 30px;
    height: 30px;

    border: 2px solid #3D3B3A;
    border-radius: 50%;

    opacity: 0;
    transform: scale(0.3);

    animation: impactEffect 0.6s ease 1.85s forwards;
}

/* BRAND NAME */

.nefer-brand {
    position: relative;
    margin-left: 180px;
    margin-top: -5px;

    width: 225px;
    overflow: hidden;

    text-align: left;
}

.nefer-brand-text {
    display: inline-block;

    white-space: nowrap;

    font-family: Arial, sans-serif;
    font-size: 35px;
    font-weight: 800;

    color: #3D3B3A;

    clip-path: inset(0 100% 0 0);

    animation: writeBrand 1s steps(9) 2.1s forwards;
}

/* LOADING TEXT */

.nefer-loading {
    margin-top: 35px;

    display: flex;
    align-items: center;
    gap: 10px;

    color: #3D3B3A;

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;

    letter-spacing: 3px;

    opacity: 0;

    animation: loadingAppear 0.6s ease 2.8s forwards;
}

.nefer-loading-line {
    width: 25px;
    height: 1px;
    background: #3D3B3A;
}


/* =========================================
   ANIMATIONS
========================================= */

/* Circle appears */

@keyframes circleAppear {
    0% {
        transform: scale(0) rotate(-90deg);
    }

    70% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

/* T appears */

@keyframes letterAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(-5px);
    }
}

/* Dot rotates around circle and collides */

@keyframes dotOrbit {

    0% {
        transform:
            translate(-50%, -50%)
            rotate(-150deg)
            translateX(280px)
            scale(0.5);
    }

    30% {
        transform:
            translate(-50%, -50%)
            rotate(0deg)
            translateX(280px)
            scale(0.8);
    }

    65% {
        transform:
            translate(-50%, -50%)
            rotate(220deg)
            translateX(280px)
            scale(1);
    }

    85% {
        transform:
            translate(-50%, -50%)
            rotate(350deg)
            translateX(280px)
            scale(1.25);
    }

    100% {
        transform:
            translate(-50%, -50%)
            rotate(370deg)
            translateX(280px)
            scale(1);
    }
}

/* Collision */

@keyframes impactEffect {

    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    40% {
        opacity: 0.8;
        transform: scale(1.5);
    }

    100% {
        opacity: 0;
        transform: scale(2.5);
    }
}

/* N appears */

@keyframes revealN {
    from {
        opacity: 0;
        transform: translateX(-25px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Brand text writing effect */

@keyframes writeBrand {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

/* Loading text */

@keyframes loadingAppear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 500px) {

    .nefer-loader {
        transform: scale(0.47);
    }

}

@media (max-width: 350px) {

    .nefer-loader {
        transform: scale(0.38);
    }

}


/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .nefer-circle,
    .nefer-t,
    .nefer-dot-orbit,
    .nefer-impact,
    .nefer-n,
    .nefer-brand-text,
    .nefer-loading {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
    }
}
/*//////////NAVBAR//////////////*/
#navbar {
  transition: 0.4s;
  backdrop-filter: blur(16px);
}
.dark #navbar.scrolled {
    background: rgba(37, 36, 35, 0.97) !important;
}
.nav-link {
  position: relative;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3D3B3A;
    transition: width 0.3s;
    border-radius: 2px;
}
.hero-section {
  min-height: 100vh;
  background: var(--medical-gradient);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, #f8fafc);
}
.btn-outline:hover,
.hero-badge {
  background: rgba(255, 255, 255, 0.1);
}
.hero-badge {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  font-family: Outfit, sans-serif;
}
.btn-outline,
.btn-primary {
  font-weight: 600;
  font-family: Outfit, sans-serif;
}
.btn-primary {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: auto;
    box-sizing: border-box;

    background: var(--gradient);
    padding: 14px 28px;
    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;
    font-family: Outfit, sans-serif;

    color: #ffffff;
    text-decoration: none;

    border: none;
    outline: none;
    cursor: pointer;

    overflow: hidden;
    transition: all 0.3s ease;
}

/* Prevent unwanted decorative shapes */
.btn-primary::before,
.btn-primary::after {
    content: none !important;
    display: none !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(61, 59, 58, 0.35);
}
.btn-outline,
.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  gap: 8px;
  font-size: 15px;
  color: #fff;
  transition: 0.3s;
  cursor: pointer;
}
.btn-primary-dark:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(61, 59, 58, 0.35);
}
.btn-outline {
  background: 0 0;
  padding: 13px 28px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-outline:hover {
  border-color: #fff;
}
.btn-primary-dark {
  background: var(--gradient);
  padding: 14px 28px;
  font-weight: 600;
  font-family: Outfit, sans-serif;
  border: none;
  text-decoration: none;
}
.btn-outline-dark,
.section-tag {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-family: Outfit, sans-serif;
}
.btn-outline-dark {
  gap: 8px;
  background: 0 0;
  color: #3D3B3A;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  border: 2px solid #3D3B3A;
  transition: 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline-dark:hover {
  background: #3D3B3A;
  color: #fff;
}

.faq-question:hover,
.section-tag {
  color: #3D3B3A;
}

.card-medical {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(61, 59, 58, 0.08);
  transition: 0.3s;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.card-medical:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(61, 59, 58, 0.12);
  border-color: rgba(61, 59, 58, 0.2);
}
.blog-card:hover,
.dept-card:hover {
  transform: translateY(-4px);
}
.section-padding {
  padding: 96px 0;
}
.section-tag {
  gap: 6px;
  background: #fee2e2;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.stat-item {
  text-align: center;
  padding: 32px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-item:last-child {
  border-right: none;
}

.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(61, 59, 58, 0.06);
}

.faq-item {
  border-bottom: 1px solid #E8E6E5;
}

.faq-question {
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 16px;
  font-family: Outfit, sans-serif;
  transition: color 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s, padding 0.3s;
  color: #777371;
  line-height: 1.7;
  font-size: 15px;
}

.faq-answer.open {
  max-height: 200px;
  padding-bottom: 20px;
}

.faq-icon {
  transition: transform 0.3s;
  flex-shrink: 0;
}

#scroll-top,
.dept-card {
  transition: 0.3s;
  cursor: pointer;
}

.faq-question.active .faq-icon {
  transform: rotate(45deg);
}

.timeline-line {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, #3D3B3A, #A7A3A1);
}

#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(61, 59, 58, 0.4);
  z-index: 100;
  border: none;
}

.blog-card,
.dept-card {
  border-radius: 16px;
  overflow: hidden;
}

#scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

#scroll-top:hover {
  transform: translateY(-3px) scale(1.05);
}

.dark body {
  color: #E8E6E5;
}

.dark .blog-card,
.dark .card-medical {
  background: #252423;
  border-color: rgba(255, 255, 255, 0.06);
}

.dark .topbar {
  background: #252423;
}

.dark .testimonial-card {
  background: #252423;
}

.dark .faq-item {
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .section-tag {
  background: rgba(61, 59, 58, 0.25);
}

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: #3D3B3A !important;
  box-shadow: 0 0 0 3px rgba(61, 59, 58, 0.12);
}

.blog-img img,
.slider-track {
  transition: transform 0.5s;
}

.blog-img,
.slider-container {
  overflow: hidden;
}

.slider-track {
  display: flex;
}

.slide {
  min-width: 100%;
  padding: 0 8px;
}
@media (min-width: 768px) {
  .slide {
    min-width: 50%;
  }
}
@media (min-width: 1024px) {
  .slide {
    min-width: 33.333%;
  }
}
@keyframes heartbeat {
  0%,
  100%,
  28%,
  56% {
    transform-origin: center;
    transform: scale(1);
  }
  14%,
  42% {
    transform-origin: center;
    transform: scale(1.3);
  }
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.z-50 {
  z-index: 50;
}

.blog-card {
  background: #fff;
  transition: 0.3s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(61, 59, 58, 0.05);
}

.blog-card:hover {
  box-shadow: 0 16px 36px rgba(61, 59, 58, 0.1);
}

.blog-card:hover .blog-img img {
  transform: scale(1.06);
}

.newsletter-section {
  background-color: #252423;
}

footer {
  background: #1C1B1A;
}

/* ================= TESTIMONIAL SECTION ================= */

.testimonial-stage {
    position: relative;
    max-width: 780px;
    height: 310px;
    margin: 0 auto;
}

/* Individual Cards */

.testimonial-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 30px 38px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease,
        visibility 0.65s ease;
    pointer-events: none;
}

/* Active Card Animation */

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Charcoal Card */

.green-slide {
    background: #3D3B3A;
    color: #ffffff;
}

/* White Card */

.white-slide {
    background: #ffffff;
    color: #252423;
    border: 1px solid #E8E6E5;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.09);
}

/* Quote Layout */

.testimonial-quote-area {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.testimonial-quote {
    font-family: Georgia, serif;
    font-size: 95px;
    line-height: 0.9;
    font-weight: bold;
}

.testimonial-quote-area p {
    font-family: Georgia, serif;
    font-size: 23px;
    line-height: 1.5;
    max-width: 610px;
    padding-top: 8px;
}

/* Client Information */

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 18px;
}

.client-avatar {
    width: 76px;
    height: 76px;
    min-width: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    font-weight: 600;
    color: white;
    border: 4px solid rgba(255, 255, 255, 0.8);
}

.avatar-1 { background: #777371; }
.avatar-2 { background: #A7A3A1; }
.avatar-3 { background: #5F5C5A; }
.avatar-4 { background: #918C89; }
.avatar-5 { background: #686563; }

.testimonial-client h3 {
    font-size: 21px;
    font-weight: 700;
}

.testimonial-client span {
    display: block;
    font-size: 15px;
    opacity: 0.75;
    margin-top: 3px;
}

/* White Review Cards */

.testimonial-stars {
    color: #A7A3A1;
    font-size: 25px;
    letter-spacing: 4px;
}

.testimonial-review-title {
    font-family: Georgia, serif;
    font-size: 29px;
    font-weight: bold;
}

.testimonial-review {
    font-family: Georgia, serif;
    font-size: 20px;
    line-height: 1.5;
    color: #777371;
} 


/* Indicators */

.testimonial-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.testimonial-dot {
    width: 9px;
    height: 9px;
    border-radius: 20px;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    width: 28px;
    background: #3D3B3A;
}

/* Responsive */

@media (max-width: 640px) {

    .testimonial-stage {
        height: 340px;
    }

    .testimonial-slide {
        padding: 24px;
    }

    .testimonial-quote {
        font-size: 65px;
    }

    .testimonial-quote-area {
        gap: 10px;
    }

    .testimonial-quote-area p {
        font-size: 18px;
    }

    .client-avatar {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 23px;
    }

    .testimonial-client h3 {
        font-size: 17px;
    }

    .testimonial-client span {
        font-size: 13px;
    }

    .testimonial-review-title {
        font-size: 25px;
    }

    .testimonial-review {
        font-size: 17px;
    }

    .testimonial-stars {
        font-size: 21px;
    }

}

/* ==========================================
   THE NEFER - CONTACT SECTION
========================================== */

.nefer-contact-section {
    padding: 75px 20px 90px;
    background: #F7F6F5;
    position: relative;
}

.nefer-contact-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* HEADING */

.nefer-contact-heading {
    text-align: center;
    margin-bottom: 45px;
}

.nefer-contact-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3D3B3A;
    background: rgba(61, 59, 58, 0.08);
    padding: 9px 17px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nefer-contact-tag i {
    width: 15px;
    height: 15px;
}

.nefer-contact-heading h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: #252423;
    margin: 17px 0 10px;
}

.nefer-contact-heading > p {
    color: #777371;
    font-size: 15px;
    line-height: 1.8;
    max-width: 570px;
    margin: 0 auto;
}

/* MAIN CARD */

.nefer-contact-card {
    display: grid;
    grid-template-columns: 0.85fr 1.65fr;
    background: #ffffff;
    border-radius: 22px;
    padding: 9px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* LEFT PANEL */

.nefer-contact-info {
    background: linear-gradient(145deg, #3D3B3A, #252423);
    border-radius: 16px;
    padding: 42px 32px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 425px;
}

.nefer-info-decoration {
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    bottom: -100px;
    right: -75px;
}

.nefer-info-content {
    position: relative;
    z-index: 2;
}

.nefer-info-label {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
}

.nefer-contact-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 25px;
    font-weight: 700;
    margin: 12px 0;
    color: #ffffff;
}

.nefer-info-description {
    font-size: 13px;
    line-height: 1.9;
    color: rgba(255,255,255,0.85);
    margin-bottom: 35px;
}

/* CONTACT DETAILS */

.nefer-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 27px;
}

.nefer-info-icon {
    width: 43px;
    height: 43px;
    min-width: 43px;
    border-radius: 11px;
    background: rgba(255,255,255,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nefer-info-icon i {
    width: 19px;
    height: 19px;
    color: #ffffff;
}

.nefer-info-item span {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 5px;
}

.nefer-info-item p {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    overflow-wrap: anywhere;
}

.nefer-info-bottom {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

.nefer-info-bottom i {
    width: 16px;
    height: 16px;
}

/* RIGHT FORM */

.nefer-contact-form-area {
    padding: 40px 42px;
}

.nefer-form-heading {
    margin-bottom: 30px;
}

.nefer-form-heading h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 23px;
    font-weight: 700;
    color: #252423;
    margin-bottom: 7px;
}

.nefer-form-heading p {
    font-size: 13px;
    color: #777371;
}

/* FORM GRID */

.nefer-contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 25px;
}

.nefer-form-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nefer-full-width {
    grid-column: 1 / -1;
}

/* LABELS */

.nefer-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #55514F;
    margin-bottom: 9px;
}

/* INPUTS */

.nefer-form-field input,
.nefer-form-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-bottom: 1.5px solid #E8E6E5;
    border-radius: 0;
    background: transparent;
    padding: 11px 3px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #252423;
    outline: none;
    transition: border-color 0.3s ease;
}

.nefer-form-field input::placeholder,
.nefer-form-field textarea::placeholder {
    color: #A7A3A1;
}

.nefer-form-field input:focus,
.nefer-form-field textarea:focus {
    border-bottom-color: #3D3B3A;
}

.nefer-form-field textarea {
    resize: vertical;
    min-height: 105px;
    line-height: 1.7;
}

/* MESSAGE LABEL */

.nefer-form-field:has(textarea) label {
    color: #3D3B3A;
}

/* BUTTON */

.nefer-form-submit {
    margin-top: 2px;
}

.nefer-form-submit button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 27px;
    background: #3D3B3A;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nefer-form-submit button:hover {
    background: #252423;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(61, 59, 58, 0.2);
}

.nefer-form-submit button i {
    width: 16px;
    height: 16px;
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */

@media (max-width: 768px) {

    .nefer-contact-section {
        padding: 55px 15px 65px;
    }

    .nefer-contact-heading h2 {
        font-size: 30px;
    }

    .nefer-contact-card {
        grid-template-columns: 1fr;
        padding: 7px;
    }

    .nefer-contact-info {
        min-height: auto;
        padding: 32px 25px;
    }

    .nefer-info-description {
        margin-bottom: 25px;
    }

    .nefer-info-item {
        margin-bottom: 20px;
    }

    .nefer-contact-form-area {
        padding: 32px 22px;
    }

}


@media (max-width: 480px) {

    .nefer-contact-form {
        grid-template-columns: 1fr;
        row-gap: 22px;
    }

    .nefer-full-width {
        grid-column: auto;
    }

    .nefer-contact-info {
        padding: 28px 22px;
    }

    .nefer-contact-form-area {
        padding: 27px 18px;
    }

    .nefer-contact-heading h2 {
        font-size: 27px;
    }

    .nefer-form-submit button {
        width: 100%;
    }

}

/* ================= SOCIAL MEDIA ICONS ================= */

.social-container {
    text-align: center;
}

.social-icons {
    padding: 0;
    list-style: none;
    margin: 0;

    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons li {
    display: inline-block;
    position: relative;
    font-size: 1.2em;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;

    border-radius: 50%;

    background: linear-gradient(45deg, #3D3B3A, #252423);

    transition: all 265ms ease-out;
}

.social-icons i {
    color: #fff;
    font-size: 21px;
    transition: all 265ms ease-out;
}

/* Hover Effect */

.social-icons a:hover {
    transform: scale(0.9);
    background: transparent;
}

.social-icons a:hover i {
    transform: scale(1.8);

    background: linear-gradient(45deg, #3D3B3A, #777371);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* =========================================
   CTA PARALLAX SECTION
========================================= */

.cta-parallax-section {
    position: relative;
    padding: 120px 20px;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

/* Background Image */

.cta-parallax-bg {
    position: absolute;
    inset: 0;
    background-image: url('simplified\ version.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
}

/* Charcoal Overlay */

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(37, 36, 35, 0.92),
        rgba(61, 59, 58, 0.78),
        rgba(37, 36, 35, 0.90)
    );
    z-index: -1;
}

/* Mobile Parallax Fix */

@media (max-width: 768px) {
    .cta-parallax-bg {
        background-attachment: scroll;
    }

    .cta-parallax-section {
        padding: 90px 20px;
    }
}

/* =========================================
   THE NEFER - AUTOMATIC TOPBAR SCROLLER
========================================= */

.topbar-scroll {
    width: 100%;
    overflow: hidden;
    background: #252423;
    white-space: nowrap;
    position: relative;
}

.topbar-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: neferTopbarScroll 25s linear infinite;
    will-change: transform;
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-shrink: 0;
    gap: 25px;
    padding: 10px 35px;

    color: #ffffff;
    font-size: 13px;
    white-space: nowrap;
}

.topbar-divider {
    color: #A7A3A1;
}

/* Continuous scrolling */

@keyframes neferTopbarScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Pause when hovering */

.topbar-scroll:hover .topbar-track {
    animation-play-state: paused;
}

/* Responsive speed */

@media (max-width: 768px) {
    .topbar-track {
        animation-duration: 18s;
    }

    .topbar-content {
        gap: 18px;
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .topbar-track {
        animation: none;
    }
}

/* =========================================
   FIX MOBILE NAVIGATION VISIBILITY
========================================= */

#mobile-menu {
    background: #252423 !important;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 999;
    width: 100%;
    overflow-y: auto;
}

/* Display menu when opened */
#mobile-menu:not(.hidden) {
    display: block !important;
}

/* Make navigation links visible */
#mobile-menu a {
    display: flex;
    align-items: center;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 13px 20px;
    text-decoration: none;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hover effect */
#mobile-menu a:hover {
    color: #A7A3A1 !important;
    background: rgba(255, 255, 255, 0.06);
}

/* Keep CTA visible */
#mobile-menu .btn-primary,
#mobile-menu .btn-primary-dark {
    color: #ffffff !important;
}

/* =========================================
   FIX THE NEFER LOGO TEXT ON MOBILE
=============================,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,============ */

@media (max-width: 768px) {
    #logo-text,
    #logo-text span,
    #logo-text * {
        color: #3D3B3A !important;
        -webkit-text-fill-color: #3D3B3A !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Keep navigation CTA hidden on mobile */

@media (max-width: 767px) {
    #navbar .btn-primary.hidden {
        display: none !important;
    }
}