/* Custom Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* Container Max Width */
.container {
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Modern Gradient Backgrounds */
.gradient-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.gradient-yellow {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.gradient-overlay {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(59, 130, 246, 0.85) 100%);
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse-grow {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse-grow 2s ease-in-out infinite;
}

/* Shine Effect */
@keyframes shine {
    0% {
        background-position: -200%;
    }

    100% {
        background-position: 200%;
    }
}

.shine-effect {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200% 100%;
    animation: shine 3s infinite;
}

/* Modern Card Styles */
.modern-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Logo Visibility Fix */
.logo-enhanced {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    /* Alternative options - uncomment to use instead: */
    /* border: 1px solid rgba(0, 0, 0, 0.1); */
    /* border-radius: 8px; */
    /* background: rgba(249, 250, 251, 0.8); */
    /* padding: 8px; */
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

/* Hero slider images */
.hero-slide:nth-child(1) {
    background-image: url('assets/hero/hero1.jpg');
}

.hero-slide:nth-child(2) {
    background-image: url('assets/hero/hero2.jpg');
}

.hero-slide:nth-child(3) {
    background-image: url('assets/hero/hero3.jpg');
}

.hero-slide:nth-child(4) {
    background-image: url('assets/hero/hero4.jpg');
}

.hero-slide:nth-child(5) {
    background-image: url('assets/hero/hero5.jpg');
}

/* Slider Controls */
.slider-prev,
.slider-next {
    background: transparent;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-text {
    animation: fadeInUp 1s ease-out;
}

/* Service Card Hover Effect */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Form Focus Effect */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3);
}

/* Scroll Top Button */
#scroll-top {
    transition: all 0.3s;
}

#scroll-top.show {
    display: block;
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

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

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Mobile menu improvements */
    #mobile-menu {
        background: #111826;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Better spacing for mobile */
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Text sizing for mobile */
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    /* Card padding adjustments */
    .bg-white.p-6 {
        padding: 1.25rem !important;
    }

    /* Grid improvements on mobile */
    .grid {
        gap: 1rem !important;
    }
}

@media (max-width: 640px) {

    /* Even smaller screens */
    .hero-text h1 {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .hero-btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }

    /* Stack buttons vertically on very small screens */
    .flex-wrap {
        flex-direction: column;
    }

    .flex-wrap a,
    .flex-wrap button {
        width: 100%;
        justify-content: center;
    }
}

/* FAQ Transition */
.faq-answer {
    transition: all 0.3s ease;
}

.faq-question i {
    transition: transform 0.3s ease;
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Smooth hover transitions */
a,
button {
    transition: all 0.3s ease;
}

/* Improved mobile touch targets */
@media (max-width: 768px) {

    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}