/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navigation */
.glass-nav {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Mobile Menu */
#mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    transition: all 0.3s ease-in-out;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
}

#mobile-menu.active {
    display: block;
    transform: scaleY(1);
    opacity: 1;
}

/* About Section Image Fix */
@media (max-width: 1024px) {
    #about .lg\:w-1\/2 {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    #about .lg\:pr-12 {
        padding-right: 0;
    }
    
    #about .h-96 {
        height: 24rem;
    }
}

.glass-nav.scrolled {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-container {
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Marquee styles */
.marquee-container {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    scroll-behavior: smooth;
}

.marquee-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% - 2rem));
    }

    /* 2rem matches the space-x-8 */
}

.animate-marquee {
    display: flex;
    animation: marquee 15s linear infinite;
    min-width: max-content;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

@supports not (backdrop-filter: blur(16px)) {
    .glass-nav {
        background: rgba(0, 0, 0, 0.7) !important;
    }

    .glass-nav.scrolled {
        background: rgba(0, 0, 0, 0.8) !important;
    }
}

/* Hero Section */
#home {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

#home img {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

#home:hover img {
    transform: scale(1.05);
}

#home .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    /* Account for fixed header */
}

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

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

.animate-fadeInUp {
    animation: fadeInUp 1s ease-out forwards;
}

/* Scroll Down Indicator */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

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

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #home h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    #home p {
        font-size: 1.1rem;
    }

    #home .flex {
        flex-direction: column;
    }

    #home .space-x-6> :not([hidden])~ :not([hidden]) {
        margin-left: 0;
        margin-top: 1rem;
    }
}

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

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

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Testimonial Hover Effect */
.testimonial-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

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

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

#mobile-menu.active {
    max-height: 500px;
    opacity: 1;
}

/* Back to Top Button */
#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 2rem;
    }

    .feature-card {
        margin-bottom: 1.5rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #ecc94b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d6b63e;
}

/* Animation Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Pause on hover */
.hover\:pause:hover {
    animation-play-state: paused;
}

/* Marquee Containers */
.marquee-container,
.testimonials-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.marquee-container::-webkit-scrollbar,
.testimonials-container::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.marquee-container,
.testimonials-container {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animate-marquee {
        animation-duration: 30s;
    }

    .animate-marquee-slow {
        animation-duration: 40s;
    }
}

/* Responsive adjustments for marquee */
@media (max-width: 768px) {

    .animate-marquee,
    .animate-marquee2 {
        animation-duration: 20s;
    }

    .animate-marquee-slow,
    .animate-marquee-slow2 {
        animation-duration: 30s;
    }
}

/* Loading Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}