@font-face {
    font-family: 'Poppins', sans-serif;
    src: url('../../assets/fonts/Poppins/Poppins-Regular.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}
body {
    background-color: #FFFFFF;
    color: #111111;
    font-size: 16px; /* Base font size for better readability */
    line-height: 1.6;
}
input:focus,
textarea:focus {
    outline: none;
}
a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}
a:hover {
    color: #66CCFF;
}
.container {
    max-width: 100%; /* Full width for mobile */
    padding: 0 10px; /* Reduce padding for smaller screens */
}
button {
    background-color: transparent;
    color: white;
    border: none;
    padding: 12px 20px; /* Slightly larger padding for better touch targets */
    border-radius: 8px; /* More rounded corners for a modern look */
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../assets/images/doctor-patient.jpg') no-repeat center center/cover;
    z-index: -1;
    animation: zoomIn 20s infinite alternate;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

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

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, #ffffff, #e6f7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-content button {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(90deg, #66CCFF, #3399CC);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(102, 204, 255, 0.3);
}

.hero-content button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #3399CC, #66CCFF);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-content button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 204, 255, 0.4);
}

.hero-content button:hover::before {
    opacity: 1;
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator::before {
    content: '';
    width: 30px;
    height: 30px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    display: block;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Responsive Styles for Hero */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
        min-height: 450px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
        min-height: 350px;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .scroll-indicator {
        bottom: 15px;
    }
}

/* Why Choose Dentika Section */
#why-choose-dentika {
    background-color: #f9f9f9;
    padding: 60px 15px;
    color: #111111;
    position: relative;
    overflow: hidden;
}

#why-choose-dentika::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 204, 255, 0.1) 0%, rgba(51, 153, 204, 0.1) 100%);
    z-index: 0;
}

#why-choose-dentika .container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

#why-choose-dentika h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

#why-choose-dentika h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #66CCFF, #3399CC);
    border-radius: 3px;
}

#why-choose-dentika .points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

#why-choose-dentika .point {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
}

#why-choose-dentika .point::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #66CCFF, #3399CC);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

#why-choose-dentika .point:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

#why-choose-dentika .point:hover::before {
    transform: scaleX(1);
}

#why-choose-dentika .point h3 {
    font-size: 1.4rem;
    color: #111111;
    margin-bottom: 15px;
    position: relative;
    padding-right: 40px;
}

#why-choose-dentika .point h3::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: #66CCFF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#why-choose-dentika .point p {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 0;
}

#why-choose-dentika button {
    margin-top: 40px;
    padding: 15px 30px;
    font-size: 1.1rem;
    background: linear-gradient(90deg, #66CCFF, #3399CC);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#why-choose-dentika button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #3399CC, #66CCFF);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#why-choose-dentika button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 204, 255, 0.3);
}

#why-choose-dentika button:hover::before {
    opacity: 1;
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(180deg, #f9f9f9, #e6f7ff); /* Subtle gradient for a modern look */
    padding: 60px 15px;
    text-align: center;
    border-top: 2px solid #66CCFF; /* Clear separation from the previous section */
}
.testimonials h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 30px;
    text-decoration: underline;
    text-decoration-color: #84C6F4;
    letter-spacing: 1px;
}
.swiper {
    width: 100%;
    padding: 20px 20px;
}
.swiper-slide {
    background: linear-gradient(145deg, #ffffff, #f0f0f0); /* Modern gradient effect */
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px; /* Fixed height for uniformity */
}
.swiper-slide p {
    font-size: 1rem;
    color: #333333;
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.6;
    flex-grow: 1; /* Ensure text fills available space */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.swiper-slide span {
    font-size: 0.9rem;
    color: #666666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}
.swiper-pagination-bullet {
    background-color: #66CCFF;
    opacity: 0.8;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.swiper-pagination-bullet:hover {
    transform: scale(1.2); /* Slight zoom on hover */
}
.swiper-pagination-bullet-active {
    background-color: #3399CC;
    transform: scale(1.3); /* Highlight active bullet */
}

/* Contact CTA Section */
.contact-cta {
    background-color: #66CCFF;
    color: white;
    text-align: center;
    padding: 30px 15px; /* Add padding for spacing */
    font-size: 1rem; /* Adjust text size */
}
.contact-cta button {
    background-color: #FFFFFF;
    color: #111111;
    padding: 12px 20px; /* Larger button for better usability */
    font-size: 1rem;
    transition: 0.3s ease-in-out;
}
.contact-cta button:hover {
    color: #66CCFF;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px; /* Thinner scrollbar */
}
::-webkit-scrollbar-track {
    background: #000000; /* Black track */
}
::-webkit-scrollbar-thumb {
    background: #66CCFF; /* Light blue thumb */
}
::-webkit-scrollbar-thumb:hover {
    background: #3399CC; /* Darker blue on hover */
}
html {
    scrollbar-color: #66CCFF #000000;
    scrollbar-width: thin;
}

/* Responsive Styles */
@media (min-width: 550px) {
    .swiper {
        width: 100%;
        padding: 30px 20px;
    }

    .container {
        max-width: 95%; /* Constrain width for better alignment */
        margin: 0 auto;
    }

    /* Hero Section */
    .hero {
        height: 450px; /* Slightly taller hero section */
    }
    .hero-content h1 {
        font-size: 2.2rem; /* Larger heading */
    }
    .hero-content p {
        font-size: 1.1rem; /* Slightly larger text */
    }

    /* Why Choose Dentika Section */
    #why-choose-dentika .points {
        gap: 20px; /* Adjust gap for better spacing */
    }
    #why-choose-dentika .point {
        padding: 25px; /* Add padding for better balance */
    }

    /* Testimonials Section */
    .testimonials h2 {
        font-size: 2.2rem; /* Slightly larger heading */
    }
}

/* Responsive Styles for Larger Screens */
@media (min-width: 768px) {
    .container {
        max-width: 90%;
        margin: 0 auto;
    }

    /* Hero Section */
    .hero {
        height: 500px; /* Increase height for larger screens */
    }
    .hero-content h1 {
        font-size: 2.5rem; /* Larger heading */
    }
    .hero-content p {
        font-size: 1.2rem;
    }

    /* Why Choose Dentika Section */
    #why-choose-dentika .points {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    #why-choose-dentika .point {
        padding: 35px;
    }
    #why-choose-dentika .point h3 {
        font-size: 1.5rem;
    }

    /* Testimonials Section */
    .testimonials h2 {
        font-size: 2.5rem; /* Larger heading */
    }
    .swiper-slide {
        height: 300px; /* Adjust height for uniformity */
    }
}

/* Responsive Styles for Larger Screens */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px; /* Constrain width for better alignment */
        margin: 0 auto;
    }

    /* Hero Section */
    .hero {
        height: 600px; /* Increase height for larger screens */
    }
    .hero-content h1 {
        font-size: 3rem; /* Larger heading */
    }
    .hero-content p {
        font-size: 1.3rem; /* Slightly larger text */
    }
    #why-choose-dentika .points {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    #why-choose-dentika .point {
        padding: 40px 30px;
    }
    #why-choose-dentika .point h3 {
        font-size: 1.4rem;
    }
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #66CCFF;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(102, 204, 255, 0.3);
    border-radius: 50%;
    border-top-color: #66CCFF;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Services Section */
#services {
  background-color: #f9f9f9;
  padding: 60px 15px;
  color: #111111;
}

#services .container {
  text-align: center;
}

#services h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 30px;
  text-decoration: underline;
  text-decoration-color: #84C6F4;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  font-size: 1.3rem;
  color: #111111;
  margin-bottom: 15px;
}

.service-card p {
  color: #666666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-card .read-more {
  display: inline-block;
  color: #66CCFF;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.service-card .read-more:hover {
  color: #3399CC;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #66CCFF;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #3399CC;
  transform: translateY(-3px);
}

/* Responsive Styles for Services */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}