/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e40af;
    --secondary: #0ea5e9;
    --dark: #1e293b;
    --light: #f8fafc;
    --accent: #3b82f6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}


/* ============================================
   NAVIGATION BAR WITH DROPDOWN
   ============================================ */

nav {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 1rem 0;
    height: 115px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
}

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

.logo-image {
    height: 90px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transform: scale(1.3);
    transform-origin: left center;
}

/* Navigation menu */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: large;
    transition: opacity 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

nav a:hover {
    opacity: 0.8;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropbtn {
    cursor: pointer;
}

.dropbtn i {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;  /* stays flush below parent */
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0;        /* 🚀 remove the gap */
    animation: fadeIn 0.3s ease;
    z-index: 999;         /* ensures it’s above other elements */
}


.dropdown-content a {
    color: var(--dark);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 1rem;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background: var(--light);
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* block the dropdown  */
.dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
}

/* block the dropdown ends  */


/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(14, 165, 233, 0.95) 100%),
                url('') center/cover;
    color: white;
    padding: 2rem 2rem;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-content .subtitle {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.hero-content .credentials {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}


/* ============================================
   STATISTICS COUNTER SECTION
   ============================================ */

.stats-section {
    background: white;
    padding: 1rem 1rem;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-box {
    text-align: center;
    padding: 0.2rem 1rem;
    border-radius: 10px;
    background: #f8fafc;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.1);
    border-color: var(--accent);
}

.stat-box .stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    display: block;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-box .stat-label {
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 500;
}


/* ============================================
   COMMON SECTION STYLES
   ============================================ */

section {
    padding: 2rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 1rem auto;
    border-radius: 2px;
}


/* ============================================
   SERVICES SECTION
   ============================================ */

#services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border-top: 4px solid var(--accent);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: #475569;
    line-height: 1.6;
}


/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

#testimonials {
    background: white;
    padding: 4rem 0;
    text-align: center;
}

.testimonials-container {
    position: relative;
    overflow: visible;
    max-width: 900px;
    margin: 0 auto;
}

/* Wrapper holds all testimonial slides */
.carousel-wrapper {
    display: flex;
    transition: transform 0.8s ease-in-out;
    width: 100%;
}

/* Each testimonial takes full width (1 per screen) */
.carousel-item {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 0 1.5rem;
}

/* Testimonial card style */
.testimonial-card {
    background: var(--light);
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    margin: 0 auto;
    max-width: 700px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Stars */
.testimonial-rating {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Text */
.testimonial-text {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Author Info */
.testimonial-author h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.testimonial-author p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -2.5rem;
}

.carousel-btn.next {
    right: -2.5rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    #testimonials {
        padding: 3rem 0;
    }

    .testimonials-container {
        max-width: 95%;
        overflow: hidden;
    }

    .testimonial-card {
        padding: 1.5rem;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        max-width: 90%;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .carousel-btn.prev {
        left: 0.5rem;
    }

    .carousel-btn.next {
        right: 0.5rem;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}



/* ============================================
   CONTACT SECTION
   ============================================ */

#contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

#contact .section-title {
    color: white;
}

#contact .section-title::after {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.contact-item {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-item h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-item p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

.contact-item strong {
    display: block;
    margin-top: 0.8rem;
    margin-bottom: 0.3rem;
}

.map-container iframe {
    margin-top: 1rem;
}

.contact-social-media {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-social-media h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.contact-social-icons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.contact-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-social-icons a:hover .fa-facebook-f {
    color: #1877f2;
}

.contact-social-icons a:hover .fa-twitter {
    color: #1da1f2;
}

.contact-social-icons a:hover .fa-linkedin-in {
    color: #0a66c2;
}

.contact-social-icons a:hover .fa-instagram {
    color: #e4405f;
}

.contact-social-icons a:hover .fa-youtube {
    color: #ff0000;
}

.contact-social-icons a:hover .fa-envelope {
    color: var(--primary);
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-link {
    color: inherit;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}


/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
}


/* ============================================
   FLOATING BUTTONS
   ============================================ */

.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.floating-buttons a img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.floating-buttons a img:hover {
    transform: scale(1.1);
}


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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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


/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    
    .logo-image {
        height: 70px;
        max-width: 180px;
        transform: scale(1.5);
    }

    nav {
        height: auto;
        padding: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    nav .container {
        padding: 0 1rem;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        align-items: stretch;
    }

    nav ul.active {
        max-height: 600px;
    }

    nav ul li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav ul a {
        display: block;
        padding: 1rem 1rem;
    }

    /* Mobile Dropdown */
    .dropdown-content {
        position: static;
        display: none;
        background: rgba(255,255,255,0.1);
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
    }

    .dropdown-content a {
        color: white;
        padding: 0.8rem 2rem;
    }

    .dropdown-content a:hover {
        background: rgba(255,255,255,0.2);
        color: white;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    /* Hero Section */
    .hero {
        padding: 3rem 1rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        order: 2;
        text-align: center;
    }

    .hero-image {
        order: 1;
    }

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

    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    .hero-content .credentials {
        font-size: 0.9rem;
    }

    /* Stats Section */
    .stats-section {
        padding: 2rem 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-box {
        padding: 1.5rem 1rem;
    }

    .stat-box .stat-number {
        font-size: 2.5rem;
    }

    .stat-box .stat-label {
        font-size: 0.95rem;
    }

    /* Sections */
    section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }



    /* Testimonials */
    .testimonials-container {
        padding: 0 3rem;
    }

    .carousel-item {
        min-width: 100%;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Make sure carousel can be dragged and vertical scroll still works */
#testimonials .carousel-wrapper {
  touch-action: pan-y;   /* allow vertical page scrolling while enabling horizontal gestures */
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.2rem;
    }

    .contact-item h3 {
        font-size: 1.1rem;
    }

    .contact-item p {
        font-size: 0.85rem;
    }

    .contact-social-icons {
        gap: 0.7rem;
    }

    .contact-social-icons a {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    /* Footer */
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .carousel-item {
        min-width: calc(50% - 1rem);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   Preloader Styling
   ========================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1e40af;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.loader-logo {
  width: 180px;
  margin-bottom: 1rem;
  /* animation: fadeIn 1.2s ease forwards; */
  /* animation: fadeIn 10s ease infinite alternate; */
}

.spinner {
  border: 4px solid #cbd5e1;
  border-top: 4px solid #1e40af;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  margin: 0 auto;
  animation: spin 0.6s linear infinite;
}

.loading-text {
  color: #ffffff;
  margin-top: 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0.6; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Hide preloader after load */
body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
}

/* ==========
Gallery 
========== */

/* ============================================
   GALLERY SECTION (FIXED – NO CUTTING)
   ============================================ */
#gallery {
  background: var(--light);
  padding: 4rem 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Each image container */
.gallery-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fix: keep full image visible without cutting */
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}


/* Hover effects (zoom without cutting) */
.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    border-radius: 10px;
  }
}

