/* Modern Light Theme */
:root {
  --bg-primary: #F8F9FA;      /* Soft white background */
  --bg-secondary: #FFFFFF;     /* Pure white for cards */
  --accent: #1B365D;          /* Navy blue for emphasis */
  --text-primary: #2D3436;    /* Dark gray for main text */
  --text-secondary: #636E72;  /* Medium gray for secondary text */
  --border-color: #E9ECEF;    /* Light gray for borders */
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);  /* Subtle shadow */
  --container-padding: 20px;
  --transition-speed: 0.3s;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Remove horizontal scroll on mobile */
html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
}

/* Hide scrollbars */
::-webkit-scrollbar {
  display: none;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Container and Section Spacing */
.container-fluid {
  padding: 0;
  margin: 0;
  width: 100%;
}

.container {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Logo and About Section */
#about {
  padding: 2rem 1rem 4rem;
  margin: 0;
  background-color: var(--bg-secondary);
  border-radius: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  text-align: center;
}

#about .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.splash-logo {
  max-width: 400px;
  width: 90%;
  height: auto;
  margin: 1rem auto 2rem;
  display: block;
}

/* Section Headings */
.section-title {
  margin: 2rem 0 1rem;
  text-align: center;
  color: var(--text-primary);
}

/* Features Section */
#features {
  padding: 4rem 1rem;
  background-color: var(--bg-primary);
}

.feature-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow);
  will-change: transform;
  backface-visibility: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Testimonials Section */
#testimonials {
  padding: 4rem 4rem 6rem;
  background-color: var(--bg-secondary);
  border-radius: 10px;
  margin: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  position: relative;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 1rem;
}

/* Testimonial Carousel Controls */
.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50%;
    background-color: var(--accent) !important;
    opacity: 0.5;
}

.carousel-indicators button.active {
    opacity: 1;
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(27, 54, 93, 0.7); /* Using var(--accent) with opacity */
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

#testimonialCarousel .carousel-control-prev {
    left: 10px;
}

#testimonialCarousel .carousel-control-next {
    right: 10px;
}

#testimonialCarousel .carousel-control-prev:hover,
#testimonialCarousel .carousel-control-next:hover {
    opacity: 1;
    background-color: var(--accent);
}

/* Mobile-specific styling */
@media (max-width: 768px) {
    #testimonialCarousel .carousel-control-prev,
    #testimonialCarousel .carousel-control-next {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
        background-color: rgba(27, 54, 93, 0.8);
    }

    #testimonialCarousel .carousel-control-prev {
        left: 5px;
    }

    #testimonialCarousel .carousel-control-next {
        right: 5px;
    }

    #testimonialCarousel .carousel-control-prev-icon,
    #testimonialCarousel .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }

    /* Adjust testimonial padding for arrow space */
    #testimonials {
        padding: 4rem 2rem 6rem;
    }
}

/* Contact Section */
#contact {
  padding: 4rem 1rem;
  background-color: var(--bg-primary);
}

.social-icons a {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  color: var(--accent);
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-3px);
}

/* Map */
.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
  transition: opacity 0.3s ease;
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
}

/* Text Styling */
p {
  color: var(--text-secondary);
}

.lead {
  color: var(--text-primary);
}

/* Responsive Design */
@media (min-width: 992px) {
  .splash-logo {
    max-width: 450px;
    margin: 0.5rem auto 2.5rem;
  }

  #about {
    padding: 1.5rem 2rem 4rem;
  }
}

@media (max-width: 576px) {
  .splash-logo {
    max-width: 300px;
    margin: 0.5rem auto 1.5rem;
  }

  #about {
    padding: 1rem 1rem 3rem;
  }
}

@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    #testimonials {
        padding: 4rem 1rem 6rem;
    }
}

/* Splash Screen Styling */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.splash-screen img {
    max-width: 300px;
    width: 80%;
    height: auto;
    animation: pulse 2s infinite;
}

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

/* Content Container */
.content {
    width: 100%;
}

/* About Section Styling */
#about .lead {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

#about .section-title {
    margin-top: 0;
    padding-top: 0;
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

#about .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #about .lead {
        padding: 0 0.5rem;
        font-size: 1rem;
    }
    
    .cert-btn {
        padding: 8px 25px;
        font-size: 1rem;
    }
}

/* Add to your existing CSS */
.btn-group-vertical .btn {
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.btn-group-vertical .btn-light {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-group-vertical .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-group-vertical .btn:hover {
    transform: translateX(5px);
}

/* General Responsive Styles */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Splash Screen Responsive */
@media (max-width: 576px) {
    .splash-screen img {
        max-width: 90%;
    }
}

/* About Section Responsive */
@media (max-width: 768px) {
    #about {
        text-align: center;
    }
    
    #about .lead {
        font-size: 1.1rem;
        line-height: 1.6;
        margin: 0 auto;
        max-width: 90%;
    }
    
    .splash-logo {
        max-width: 250px;
        margin: 1rem auto;
    }
}

/* Features Section Responsive */
@media (max-width: 768px) {
    .feature-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
}

/* Testimonials Section Responsive */
@media (max-width: 768px) {
    #testimonials {
        padding: 3rem 1rem 5rem;
    }
    
    .testimonial-img {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem;
    }
    
    .blockquote {
        padding: 0 1rem;
    }
}

/* Contact Section Responsive */
@media (max-width: 768px) {
    #contact {
        padding: 3rem 1rem;
    }
    
    .social-icons {
        margin-bottom: 2rem;
    }
    
    .social-icons a {
        font-size: 1.5rem;
        margin: 0 0.8rem;
    }
}

/* Map Section Responsive */
.map-responsive {
    overflow: hidden;
    padding-bottom: 75%; /* Adjusted ratio for mobile */
    position: relative;
    height: 0;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .btn-group-vertical {
        width: 100%;
    }
    
    .btn-group-vertical .btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 10px;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    footer {
        text-align: center;
        padding: 2rem 1rem;
    }
}

/* Navigation Controls Responsive */
@media (max-width: 576px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
        height: 30px;
    }
    
    .carousel-indicators {
        bottom: -40px;
    }
    
    .carousel-indicators button {
        width: 8px !important;
        height: 8px !important;
    }
}

/* General Spacing Adjustments */
@media (max-width: 768px) {
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-4 {
        margin-top: 1.5rem !important;
    }
    
    .py-3 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    button, 
    [type="button"], 
    [type="submit"],
    .btn {
        min-height: 44px; /* Minimum touch target size */
    }
    
    a {
        padding: 8px 0;
    }
}

/* Responsive adjustments for splash logo */
@media (max-width: 768px) {
    .splash-screen img {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .splash-screen img {
        max-width: 200px;
    }
}

/* Fluid Typography */
@media screen and (min-width: 320px) {
    html {
        font-size: calc(14px + 2 * ((100vw - 320px) / 680));
    }
}

@media screen and (min-width: 1000px) {
    html {
        font-size: 16px;
    }
}

/* Enhanced Section Spacing */
section {
    padding: 4rem 0;
    transition: padding var(--transition-speed) ease;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    .nav-link {
        padding: 0.8rem 1rem;
    }
}

/* Improved Button Interactions */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.95);
}

/* Enhanced Image Responsiveness */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Improved Mobile Spacing */
@media (max-width: 768px) {
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-4 {
        margin-top: 1.5rem !important;
    }
    
    .p-4 {
        padding: 1.5rem !important;
    }
}

/* Enhanced Testimonial Carousel */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Improved Mobile Touch Targets */
@media (max-width: 768px) {
    button, 
    [type="button"], 
    [type="submit"],
    .btn {
        min-height: 44px;
        padding: 10px 20px;
    }
    
    a {
        padding: 8px 0;
    }
}

/* Enhanced Map Section */
.map-responsive {
    transition: opacity 0.3s ease;
}

/* Improved Modal Animations */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

/* Improved Loading States */
.loading {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Enhanced Mobile Menu */
@media (max-width: 768px) {
    .navbar-collapse {
        transition: all 0.3s ease-in-out;
    }
}

/* Smooth Image Loading 
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}*/

/* Enhanced Mobile Grid */
@media (max-width: 768px) {
    .row {
        margin-right: -10px;
        margin-left: -10px;
    }
    
    .col, [class*="col-"] {
        padding-right: 10px;
        padding-left: 10px;
    }
}

/* Improved Card Layout on Mobile */
@media (max-width: 576px) {
    .feature-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
}

/* Enhanced Contact Section Mobile */
@media (max-width: 768px) {
    #contact .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Improved Location Buttons */
.btn-group-vertical .btn {
    transition: all 0.3s ease;
}

.btn-group-vertical .btn:hover {
    transform: translateX(5px);
}

/* Enhanced Mobile Form Elements */
@media (max-width: 768px) {
    input, 
    select, 
    textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
    }
}

/* Logo Section Above About */
.logo-section {
    padding: 2rem 0;
    text-align: center;
    background-color: var(--bg-secondary);
}

.main-logo {
    max-width: 300px;
    width: 90%;
    height: auto;
    margin: 0 auto;
    display: block;
    opacity: 1;
}

/* Enhanced Testimonial Styling */
.testimonial-card {
    text-align: center;
    padding: 2rem 1rem;
    margin: 0 auto;
    max-width: 800px;
}

.testimonial-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--accent);
    object-fit: cover;
    opacity: 1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.blockquote {
    margin: 1.5rem 0;
}

.blockquote p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.blockquote-footer {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-logo {
        max-width: 250px;
    }

    .testimonial-img {
        width: 100px;
        height: 100px;
    }

    .blockquote p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-logo {
        max-width: 200px;
    }

    .testimonial-img {
        width: 80px;
        height: 80px;
    }
}

/* Updated styles for the about section logo */
.about-logo-container {
    text-align: center;
    margin-bottom: 0;
    padding: 0.25rem 0;
}

.about-logo {
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-logo {
        max-width: 450px;
    }
    
    .about-logo-container {
        padding: 0.15rem 0;
    }
}

@media (max-width: 480px) {
    .about-logo {
        max-width: 320px;
    }
    
    .about-logo-container {
        padding: 0.1rem 0;
    }
}

/* Add these styles to your existing CSS */
.cert-btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.cert-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .cert-image-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .cert-image-container {
        height: 200px;
    }
}


/* Navigation Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev { left: 10px; }
.next { right: 10px; }

/* Close Button */
.cert-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cert-modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .cert-slide img {
        max-height: calc(100vh - 80px);
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .cert-close {
        width: 30px;
        height: 30px;
        font-size: 24px;
    }
}

 /* Modern Certificate Section 
.certs-section {
   margin: 20px 0;
    padding: 0 20px;
} */

.cert-toggle {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cert-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.cert-toggle i {
    transition: transform 0.3s ease;
}

.cert-toggle.active i {
    transform: rotate(180deg);
}

.certs-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 20px;
}

.certs-container.expanded {
    max-height: 600px;
}

.certs-scroll {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.certs-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.cert-card {
    min-width: 300px;
    scroll-snap-align: start;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.cert-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cert-card:hover img {
    transform: scale(1.05);
}

.cert-info {
    padding: 15px;
    text-align: center;
}

.cert-info h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.cert-info p {
    margin: 5px 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .certs-section {
        padding: 0 15px;
    }
    
    .cert-card {
        min-width: 250px;
    }
    
    .cert-info {
        padding: 12px;
    }
}

/* Smooth Scrolling for Touch Devices */
@media (hover: none) {
    .certs-scroll {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}
