/* Gradient text effect */
.gradient-text {
    background: linear-gradient(90deg, #229cd5, #043a55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: white;
}

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

/* Dropdown animation */
.dropdown-menu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Glass effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #07486c;
}

/* Dark mode styles */
.dark-mode {
    --tw-bg-opacity: 1;
    background-color: rgba(15, 23, 42, var(--tw-bg-opacity));
    color: #f8fafc;
}

.dark-mode .bg-white {
    background-color: #1e293b;
}

.dark-mode .text-dark {
    color: #f8fafc;
}

.dark-mode .text-gray-600,
.dark-mode .text-gray-700 {
    color: #cbd5e1;
}

.dark-mode .shadow-lg {
    --tw-shadow-color: rgba(0, 0, 0, 0.4);
}

.dark-mode .bg-light {
    background-color: #0f172a;
}

.dark-mode .bg-gray-50 {
    background-color: #1e293b;
}

/* ----------------------------------------- */

:root {
    --zoom-main-blue: #105677;
    --zoom-bright-blue: #009ddf;
    --zoom-dark-grey: #616161;
    --zoom-light-grey: #d4d7d8;
    --zoom-muted-blue: #abc5d0;
    --zoom-medium-blue: #749eb1;
    --zoom-light-blue: #8cd1f0;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

::-webkit-scrollbar-track {
    background: var(--zoom-light-grey);
}

::-webkit-scrollbar-thumb {
    background: var(--zoom-main-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--zoom-bright-blue);
}

/* Mega menu styles */
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Loading animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--zoom-main-blue), var(--zoom-bright-blue));
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Background patterns */
.bg-pattern {
    background-image: radial-gradient(circle at 20% 50%, rgba(16, 86, 119, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 157, 223, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(171, 197, 208, 0.1) 0%, transparent 50%);
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.25rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
    }

    .service-card {
        margin-bottom: 1rem;
    }

    /* Ensure proper text scaling */
    .text-4xl {
        font-size: 2rem !important;
    }

    .text-3xl {
        font-size: 1.75rem !important;
    }

    .text-2xl {
        font-size: 1.5rem !important;
    }

    /* Better button sizing on mobile */
    .hero-buttons a {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }

    /* Improved spacing */
    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .py-16 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Grid adjustments */
    .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Single column layout for very small screens */
    .lg\:grid-cols-5 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}
