/* Custom Properties */
:root {
    --primary: #2D2D82;
    --secondary: #1a1a5e;
    --accent: #FFD700;
    --accent-light: #FFF3CD;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Tailwind Custom Extensions */
@layer utilities {
    .text-primary {
        color: var(--primary);
    }
    
    .bg-primary {
        background-color: var(--primary);
    }
    
    .bg-secondary {
        background-color: var(--secondary);
    }
    
    .bg-accent {
        background-color: var(--accent);
    }
    
    .text-accent {
        color: var(--accent);
    }
    
    .border-primary {
        border-color: var(--primary);
    }
}

/* Hero Section Background */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero-section {
    background-image: url('./assets/logo/banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}


/* Navigation Scroll Effect */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Custom Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.33);
    }
    80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

/* Floating Buttons Animation */
.pulse {
    position: relative;
}

.pulse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.floating-call,
.floating-whatsapp {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .service-image {
    position: relative;
    overflow: hidden;
}

.service-card .service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 215, 0, 0.3));
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover .service-image::after {
    opacity: 1;
}

/* Why Cards */
.why-card {
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--accent-light), white);
}

.why-card:hover .icon-wrapper {
    background-color: var(--primary);
}

.why-card:hover .icon-wrapper i {
    color: white;
}

/* Testimonial Cards */
.testimonial-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rating i {
    color: var(--accent);
}

/* Contact Form */
#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 45, 130, 0.1);
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.active {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

/* About Section Image Overlay */
.about-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0.3;
}

/* Swiper Custom Styles */
.swiper-pagination-bullet {
    background-color: var(--primary);
}

.swiper-pagination-bullet-active {
    background-color: var(--accent);
    width: 30px;
    border-radius: 5px;
}

/* Loading Animation */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

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

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Section Animations on Scroll */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Hover Effects */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before,
.btn-secondary::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;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* Form Success Message */
.success-message {
    background-color: #4CAF50;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Overlay for mobile menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
}

.menu-overlay.active {
    display: block;
}

body {
    font-family: sans-serif;
    margin: 20px;
    background-color: #f4f4f4;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

/* Apply styles to both image and video items */
.gallery-item { 
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
    box-sizing: border-box;
}

.modal-content-container {
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    max-width: 900px;
    height: 90vh; /* Use height for modal content container */
}

/* Style for the injected media element (image or video) */
.modal-content-container img,
.modal-content-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

/* Navigation buttons (same as before) */
.prev-btn, .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    border: none;
}

.next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-btn:hover, .next-btn:hover, .close-btn:hover, .close-btn:focus {
    background-color: rgba(0,0,0,0.8);
    color: #bbb;
}