/* Enhanced Animations */
/* Custom Scroll Animations */
[data-animate] {
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].animate-in {
    opacity: 1;
}

/* Fade Up Animation */
[data-animate="fade-up"] {
    transform: translateY(30px);
}

[data-animate="fade-up"].animate-in {
    transform: translateY(0);
}

/* Fade Left Animation */
[data-animate="fade-left"] {
    transform: translateX(-30px);
}

[data-animate="fade-left"].animate-in {
    transform: translateX(0);
}

/* Fade Right Animation */
[data-animate="fade-right"] {
    transform: translateX(30px);
}

[data-animate="fade-right"].animate-in {
    transform: translateX(0);
}

/* Scale Animation */
[data-animate="scale"] {
    transform: scale(0.95);
}

[data-animate="scale"].animate-in {
    transform: scale(1);
}

/* Fade Animation */
[data-animate="fade"] {
    opacity: 0;
}

[data-animate="fade"].animate-in {
    opacity: 1;
}

/* Enhanced Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.loading-logo {
    width: 120px;
    height: 120px;
    /* border-radius: 50%; */
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Modern Hover Effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hover-scale {
    transition: transform 0.3s ease-in-out;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Enhanced Hero Swiper Styles */
.hero-swiper {
    overflow: hidden;
    height: 100vh;
    margin-top: -4rem;
    z-index: 1;
}

.hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.hero-swiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(29, 29, 30, 0.85), rgba(44, 43, 43, 0.75));
    z-index: 1;
}

.hero-swiper .swiper-slide > div {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
}

.hero-swiper .swiper-pagination {
    bottom: 30px !important;
}

.hero-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 6px !important;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #ef4444;
    width: 30px;
    border-radius: 5px;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.hero-swiper:hover .swiper-button-next,
.hero-swiper:hover .swiper-button-prev {
    opacity: 1;
    transform: scale(1);
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.hero-swiper .swiper-button-next {
    right: 30px;
}

.hero-swiper .swiper-button-prev {
    left: 30px;
}

/* Ensure slide content animations */
.hero-swiper .animate__animated {
    transition: all 0.5s ease;
}

/* Modern Gallery Styling */
.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    display: none;
}

.modal-content {
    position: relative;
    z-index: 10000;
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 24rem;
    margin: 1rem;
    transform: scale(0.7);
    transition: all 0.3s ease-in-out;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* Ensure main content scroll works */
body {
    overflow-y: auto !important;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

.modal .close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.2s ease;
    cursor: pointer;
}

.modal .close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Navigation */
#mobile-nav {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.menu-slide {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.menu-slide.active {
    transform: translateX(0);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

/* Desktop Navigation */
#desktop-nav {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#desktop-nav .nav-link {
    transition: color 0.3s ease;
}

#desktop-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.logo-container {
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.card {
    perspective: 1000px;
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    animation: borderAnimation 5s linear infinite;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.card-front {
    background: linear-gradient(to right, #a84030, #2196f3);
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(to right, #2196f3, #f44336);
}

/* Running animation for border rounding */
@keyframes borderAnimation {
    0% {
        border-radius: 15px;
    }
    50% {
        border-radius: 40px;
    }
    100% {
        border-radius: 15px;
    }
}

button {
    transition: background-color 0.3s, color 0.3s;
}

/* Ensure the image fits the height of the text */
.cefa {
    height: 100%;
    max-height: 400px;
    width: auto;
}

/* Global Transitions */
.transition-all {
    transition: all 0.3s ease-in-out;
}

/* Responsive Images */
.responsive-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.responsive-img:hover {
    transform: scale(1.05);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .mobile-nav.show {
        transform: translateX(0);
    }
}

/* Hero Section */
.hero-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.hero-content.show {
    opacity: 1;
    transform: translateY(0);
}

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

/* Button Animations */
.animated-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.animated-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease-in-out;
}

.animated-button:hover::after {
    left: 100%;
}

/* Form Elements */
.form-input {
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Grid Layout */
.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Section Transitions */
.section-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.section-fade.show {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

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

/* Image Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: transform 0.3s ease-in-out;
}

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

/* Utility Classes */
.shadow-hover {
    transition: box-shadow 0.3s ease-in-out;
}

.shadow-hover:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.text-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #991b1b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    p { font-size: 1rem; }
}

@media (min-width: 641px) and (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    p { font-size: 1.125rem; }
}

@media (min-width: 1025px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }
    p { font-size: 1.25rem; }
}

