/* Glassmorphism Effect */
/* Global Layout Fixes */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    background-color: #ffffff;
}

/* Atomic Particles at Edges - Enhanced Visibility */
.atomic-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* Bring to front but below interactive elements */
    pointer-events: none;
}

.particle {
    position: absolute;
    background: #137fec; /* Solid primary color */
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(19, 127, 236, 0.8);
    opacity: 0.6;
    animation: atom-float 10s infinite linear alternate;
}

/* Left side particles */
.p-l-1 { width: 4px; height: 4px; left: 1%; top: 20%; animation-duration: 8s; }
.p-l-2 { width: 8px; height: 8px; left: 3%; top: 50%; animation-duration: 12s; }
.p-l-3 { width: 5px; height: 5px; left: 2%; top: 80%; animation-duration: 10s; }
.p-l-4 { width: 3px; height: 3px; left: 4%; top: 35%; animation-duration: 15s; }

/* Right side particles */
.p-r-1 { width: 6px; height: 6px; right: 1%; top: 15%; animation-duration: 9s; }
.p-r-2 { width: 10px; height: 10px; right: 3%; top: 45%; animation-duration: 14s; }
.p-r-3 { width: 5px; height: 5px; right: 2%; top: 75%; animation-duration: 11s; }
.p-r-4 { width: 4px; height: 4px; right: 4%; top: 60%; animation-duration: 13s; }

@keyframes atom-float {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(20px, 30px) scale(1.3); opacity: 1; }
    100% { transform: translate(-10px, -20px) scale(1); opacity: 0.6; }
}

/* Edge Gradient Glows - Vibrant Corner Accents */
.edge-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    z-index: -1;
    filter: blur(100px);
    opacity: 0.6;
    pointer-events: none;
    background: radial-gradient(circle, rgba(19, 127, 236, 0.4) 0%, rgba(19, 127, 236, 0.1) 40%, transparent 70%);
}

.glow-tl { top: -200px; left: -200px; }
.glow-br { bottom: -200px; right: -200px; }
.glow-tr { top: -200px; right: -200px; background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%); }
.glow-bl { bottom: -200px; left: -200px; background: radial-gradient(circle, rgba(96, 165, 250, 0.3) 0%, transparent 70%); }

section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

@media (min-width: 768px) {
    section {
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
    }
}

.hero-cards-swiper {
    width: 100% !important;
    max-width: calc(100vw - 2rem) !important;
    margin: 0 auto !important;
}

@media (max-width: 640px) {
    .swiper-slide {
        width: 100% !important;
    }
    
    #slide-title {
        font-size: 1.5rem !important; /* Force smaller size to fit */
        line-height: 1.3 !important;
        white-space: normal !important;
    }

    #slide-desc {
        font-size: 0.875rem !important;
        padding: 0 0.5rem;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.05);
}

/* Header Scroll Transitions */
#top-header {
    max-height: 100px;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
    overflow: hidden;
}

#top-header.is-hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom-width: 0 !important;
}

#back-to-top {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#back-to-top:not(.pointer-events-none) {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#mobile-menu-drawer.translate-x-full {
    transform: translateX(100%);
}

#mobile-menu-drawer:not(.translate-x-full) {
    transform: translateX(0);
}

.dark .glass-card {
    background: rgba(16, 25, 34, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Lazy Loading placeholder animation */
img[data-src] {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

img.visible, img:not([data-src]) {
    opacity: 1;
}

.lazy-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Swiper Fixes & Stacked Effect */
.hero-swiper {
    width: 100%;
    padding-bottom: 50px;
}

.hero-swiper .swiper-slide {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-swiper .swiper-slide-active {
    opacity: 1;
}

/* For Cards Effect Stacked Styling */
.hero-cards-swiper {
    padding: 20px 0;
}

.hero-cards-swiper .swiper-slide {
    border-radius: 2rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: opacity 0.4s ease;
}

/* Make cards behind more transparent */
.hero-cards-swiper .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.6;
}

.hero-cards-swiper .swiper-slide-shadow {
    border-radius: 2rem;
}

/* Rocking / Floating Animation */
@keyframes rocking {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1.5deg); }
}

.rocking-effect {
    animation: rocking 6s ease-in-out infinite;
}

#hero-content-area {
    transition: all 0.5s ease;
}

.skew-y-3 {
    transform: skewY(3deg);
}

.hover\:skew-y-0:hover {
    transform: skewY(0deg);
}

.partner-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px; /* Signficantly increased */
}

.partner-logo-wrapper img {
    max-height: 100%;
    width: auto;
    max-width: 450px; /* Significantly increased */
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.4s ease;
    object-fit: contain;
}

/* For Continuous Marquee (Conveyor Belt) Effect */
.partners-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.partner-logo-wrapper img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.slide-content, .slide-image {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.swiper-wrapper {
    display: flex;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 6px;
    background: var(--primary-color) !important;
}

.dark .swiper-pagination-bullet {
    background: #334155;
}

.dark .swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--background-light);
}
::-webkit-scrollbar-thumb {
    background: #137fec;
    border-radius: 10px;
}
.dark ::-webkit-scrollbar-track {
    background: var(--background-dark);
}

/* Pagination Fix */
.page-numbers {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-numbers li {
    display: block;
}

.page-numbers a.page-numbers,
.page-numbers span.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #475569;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-numbers span.current {
    background: #137fec !important;
    color: white !important;
    border-color: #137fec !important;
    box-shadow: 0 10px 15px -3px rgba(19, 127, 236, 0.3);
}

.page-numbers a:hover {
    background: rgba(19, 127, 236, 0.1) !important;
    color: #137fec !important;
    border-color: #137fec !important;
}

/* Active Menu Effect */
nav ul li.current-menu-item > a,
nav ul li.current_page_item > a {
    color: #137fec !important;
    position: relative;
}

nav ul li.current-menu-item > a::after,
nav ul li.current_page_item > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60%;
    height: 3px;
    background: #137fec;
    border-radius: 2px;
}

/* Contact Modal Extra Styling */
#contact-modal:not(.opacity-0) #contact-modal-content {
    animation: modalScaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalScaleIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close-overlay {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'></line><line x1='6' y1='6' x2='18' y2='18'></line></svg>") 10 10, auto;
}

/* Dark mode form field focus */
.dark #contact-modal input:focus, 
.dark #contact-modal textarea:focus {
    background-color: rgba(30, 41, 59, 0.8);
    border-color: #137fec;
}

/* Fainter placeholders */
#contact-modal input::placeholder,
/* Fireworks Animation */
.firework-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
}

@keyframes firework-burst {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

.firework-icon {
    position: absolute;
    font-size: 14px;
    color: #ffd700;
    pointer-events: none;
    animation: firework-icon-move 1.5s ease-out forwards;
}

@keyframes firework-icon-move {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translateY(100px) rotate(360deg) scale(0); opacity: 0; }
}



