@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Global Variables */
:root {
    --primary: #0c2d48;
    --secondary: #d4893b;
    --accent: #0891b2;
    --background: #ffffff;
    --foreground: #0f172a;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--secondary);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Animation */
@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.mobile-menu-enter {
    animation: slideDown 0.3s ease-out forwards;
}

/* Navbar Scroll State */
nav.scrolled {
    background-color: rgba(12, 45, 72, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.1);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Accordion Transitions */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}
.accordion-content.open {
    padding-bottom: 1.25rem;
}
.accordion-icon {
    transition: transform 0.3s ease;
}
.rotate-180 {
    transform: rotate(180deg);
}

/* Filter Button Active State */
.filter-btn {
    transition: all 0.3s ease;
}
.filter-btn.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

/* Hover Lift Effect */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

/* --- Loading Spinner CSS --- */
.loader-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #0c2d48;
    border-bottom-color: #d4893b;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* --- Back to Top Button CSS --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #0c2d48;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
    bottom: 90px; /* Above WhatsApp button */
}
#back-to-top:hover {
    background-color: #d4893b;
    transform: translateY(-3px);
}

/* Infinite Scroll Animation Fix */
@keyframes infinite-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%); /* Fakt 50% poshe sarkel */
    }
}

.scroll-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    /* Baju la thoda fade effect sathi mask */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.scroll-track {
    display: inline-flex;
    gap: 2rem; /* Cards madhil antar */
    width: max-content;
    animation: infinite-scroll 40s linear infinite; /* Speed: 40s */
}

/* Mouse var nelyavar thambnyasathi */
.scroll-track:hover {
    animation-play-state: paused;
}


