/* ============================================
   MODERN ENHANCEMENTS FOR M&M INDOOR GROUND
   Vibrant, Colorful, Animated Design
   ============================================ */

/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&family=Bebas+Neue&display=swap');

/* ============================================
   GLOBAL ENHANCEMENTS
   ============================================ */

* {
    transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
    25% { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
    50% { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
    75% { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
}

/* ============================================
   NAVBAR ENHANCEMENTS
   ============================================ */

.navbar-default {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar-default.navbar-shrink {
    background: rgba(0, 0, 0, 0.95) !important;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.navbar-default .navbar-brand {
    font-size: 2.5em !important;
    font-weight: 800;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1, #FFA07A);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 3s ease infinite;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

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

.navbar-default .nav li a {
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 10px 15px !important;
    transition: all 0.3s ease;
}

.navbar-default .nav li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-default .nav li a:hover::before,
.navbar-default .nav li.active a::before {
    width: 80%;
}

.navbar-default .nav li a:hover {
    color: #4ECDC4 !important;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

/* ============================================
   HERO SLIDER ENHANCEMENTS
   ============================================ */

#page-top {
    position: relative;
    overflow: hidden;
}

/* Removed overlay that was causing blur and shades */

#main-slide .carousel-inner {
    position: relative;
    z-index: 1;
}

/* Ensure all carousel items have the same height */
#main-slide .item {
    height: 700px;
    overflow: hidden;
}

/* Ensure all images are the same size and not blurry */
#main-slide .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

#main-slide .slider-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0;
}

/* Add a subtle dark overlay only behind the text for better readability */
#main-slide .slider-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    z-index: -1;
    backdrop-filter: blur(5px);
}

#main-slide .slider-content h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 5em;
    font-weight: 800;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease, gradientText 3s ease infinite;
}

#main-slide .slider-content p {
    font-size: 1.5em;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease;
}

#main-slide .btn-primary {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4) !important;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 1.4s ease;
    position: relative;
    overflow: hidden;
}

#main-slide .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#main-slide .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

#main-slide .btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
}

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

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

.services-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.section-title h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5em;
    font-weight: 800;
    color: #fff;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    animation: fadeInUp 0.8s ease;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4);
    border-radius: 5px;
    animation: expandLine 1s ease 0.5s both;
}

@keyframes expandLine {
    from { width: 0; }
    to { width: 100px; }
}

.section-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    animation: fadeInUp 1s ease;
}

.services-section .card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.services-section .card:nth-child(1) { animation-delay: 0.1s; }
.services-section .card:nth-child(2) { animation-delay: 0.2s; }
.services-section .card:nth-child(3) { animation-delay: 0.3s; }

.services-section .card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.services-section .card:hover::before {
    left: 100%;
}

.services-section .card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
}

.services-section .icon {
    font-size: 5em;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounceIn 1s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.services-section .card:hover .icon {
    transform: scale(1.2) rotate(10deg);
    animation: pulse 1s ease infinite;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1.2) rotate(10deg); }
    50% { transform: scale(1.3) rotate(-10deg); }
}

.services-section .card-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-section .card-text {
    color: #666;
    font-size: 1.1em;
    line-height: 1.8;
}

/* ============================================
   GALLERY/PORTFOLIO ENHANCEMENTS
   ============================================ */

.portfolio-section-1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 100px 0;
    position: relative;
}

.portfolio-section-1 .section-title h2 {
    color: #fff;
}

.portfolio-section-1 .section-title p {
    color: rgba(255, 255, 255, 0.9);
}

#portfolio-list li {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

#portfolio-list li.animated-in {
    opacity: 1;
    transform: scale(1);
}

#portfolio-list li:nth-child(1) { animation-delay: 0.1s; }
#portfolio-list li:nth-child(2) { animation-delay: 0.2s; }
#portfolio-list li:nth-child(3) { animation-delay: 0.3s; }
#portfolio-list li:nth-child(4) { animation-delay: 0.4s; }
#portfolio-list li:nth-child(5) { animation-delay: 0.5s; }
#portfolio-list li:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.portfolio-item img {
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* ============================================
   VIDEOS/ABOUT SECTION ENHANCEMENTS
   ============================================ */

.about-us-section-1 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 100px 0;
    position: relative;
}

.about-us-section-1 .section-title h2 {
    color: #fff;
}

.about-us-section-1 .section-title p {
    color: rgba(255, 255, 255, 0.9);
}

.about-us-section-1 video {
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease;
}

.about-us-section-1 video:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ============================================
   TEAM SECTION ENHANCEMENTS
   ============================================ */

.team-member-section {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    padding: 100px 0;
    position: relative;
}

.team-member-section .section-title h2 {
    color: #fff;
}

.team-member-section .section-title p {
    color: rgba(255, 255, 255, 0.9);
}

.team-member {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }
.team-member:nth-child(4) { animation-delay: 0.4s; }
.team-member:nth-child(5) { animation-delay: 0.5s; }
.team-member:nth-child(6) { animation-delay: 0.6s; }
.team-member:nth-child(7) { animation-delay: 0.7s; }

.team-member:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.team-member img {
    transition: transform 0.4s ease;
    border-radius: 20px;
}

.team-member:hover img {
    transform: scale(1.1);
}

.team-details {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.9), rgba(78, 205, 196, 0.9)) !important;
    border-radius: 0 0 20px 20px;
    padding: 20px;
    transition: all 0.3s ease;
}

.team-details h4 {
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

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

.latest-news-section {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    padding: 100px 0;
    position: relative;
}

.latest-news-section .section-title h2 {
    color: #fff;
}

.latest-news-section .section-title p {
    color: rgba(255, 255, 255, 0.9);
}

.location-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease;
    margin-top: 40px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-info {
    padding: 20px;
}

.contact-details p {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details i {
    color: #FF6B6B;
    font-size: 1.3em;
    width: 30px;
}

.contact-details h4 {
    color: #333;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
}

.social-icons a {
    display: inline-block;
    margin: 10px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.social-icons img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

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

.testimonial-section {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 100px 0;
    position: relative;
}

.testimonials {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.6s ease;
}

.testimonials:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.testimonial-author .author {
    font-size: 1.5em;
    font-weight: 700;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonial-content p {
    font-size: 1.2em;
    color: #666;
    line-height: 1.8;
    font-style: italic;
}

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

footer.style-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 0;
    border-top: 3px solid rgba(255, 255, 255, 0.2);
}

footer.style-1 .copyright,
footer.style-1 a {
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

footer.style-1 a:hover {
    color: #4ECDC4;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

/* ============================================
   BUTTON ENHANCEMENTS
   ============================================ */

.btn-primary {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4) !important;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.6);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Smooth Scroll - Disabled for faster navigation, using jQuery animation instead */
/* html {
    scroll-behavior: smooth;
} */

/* Scroll-triggered animation class */
.card, .portfolio-item, .team-member, .testimonials {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.card.animated-in, 
.portfolio-item.animated-in, 
.team-member.animated-in, 
.testimonials.animated-in {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    /* Ensure consistent image height on mobile */
    #main-slide .item {
        height: 500px !important;
    }
    
    #main-slide .item img {
        height: 100% !important;
        object-fit: cover;
    }
    
    #main-slide .slider-content h1 {
        font-size: 3em;
    }
    
    .section-title h2 {
        font-size: 2.5em;
    }
    
    .services-section .card {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    #main-slide .item {
        height: 400px !important;
    }
}

/* ============================================
   LOADING ANIMATION
   ============================================ */

#loader {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #4ECDC4;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

