@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    --primary: #6B46C1;
    --primary-light: #9F7AEA;
    --primary-dark: #553C9A;
    --secondary: #FFFFFF;
    --accent: #805AD5;
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --purple-bg: #F5F0FF;
}

body,
html {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* =================== Utility Classes =================== */

.bg-primary-custom {
    background-color: var(--primary);
}

.text-primary-custom {
    color: var(--primary);
}

.bg-accent-custom {
    background-color: var(--accent);
}

.text-accent-custom {
    color: var(--accent);
}

.text-dark-blue {
    color: var(--text-primary);
}

.text-gray-custom {
    color: var(--text-secondary);
}

.bg-purple-hero {
    background: linear-gradient(135deg, var(--purple-bg) 0%, #EDE9FF 100%);
}

/* =================== Sticky Navbar =================== */

.navbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 12px rgba(107, 70, 193, 0.08);
}

.navbar-scrolled {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    box-shadow: 0 4px 20px rgba(107, 70, 193, 0.15);
}

/* =================== Mobile Navbar Fix =================== */

/* Ensure hamburger button is always visible and tappable on mobile */
#menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    z-index: 100;
    flex-shrink: 0;
}

@media (max-width: 1023px) {
    #menu-btn.mobile-visible {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        right: 1rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .navbar-sticky .container {
        position: relative !important;
    }

    /* Force desktop menu to hide on mobile to prevent squishing and pushing hamburger off screen */
    .desktop-nav {
        display: none !important;
    }
}

/* Logo responsive sizing */
.nav-logo {
    height: auto;
    max-height: 3rem;
    /* 48px on mobile */
    max-width: 65vw;
    /* Prevent wide logos from pushing the menu button off-screen */
    width: auto;
    object-fit: contain;
}

@media (min-width: 1024px) {
    .nav-logo {
        height: auto;
        max-height: 4rem;
        /* 64px on desktop */
        max-width: 100%;
    }

    #menu-btn {
        display: none !important;
    }
}

/* Offset for pages with a fixed navbar (non-hero pages) */
.page-offset {
    padding-top: 72px;
}

@media (min-width: 1024px) {
    .page-offset {
        padding-top: 80px;
    }
}

/* =================== Buttons =================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.4);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.3);
}

/* =================== Cards =================== */

.info-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(107, 70, 193, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(107, 70, 193, 0.08);
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(107, 70, 193, 0.2);
    border-color: rgba(107, 70, 193, 0.2);
}

/* =================== Scroll Animations =================== */

[data-aos] {
    transition-duration: 800ms !important;
}

/* =================== Layout =================== */

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* =================== Mobile Menu =================== */

#mobile-menu {
    transition: all 0.3s ease-in-out;
    transform-origin: top;
}

#mobile-menu.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* =================== Gallery Filter =================== */

.gallery-filter.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

/* =================== Form Focus Styles =================== */

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.15) !important;
}

/* =================== Border Accent =================== */

.border-primary-custom {
    border-color: var(--primary);
}

.border-l-primary {
    border-left: 4px solid var(--primary);
}

/* =================== WhatsApp Floating Button =================== */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: #FFF;
}

@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}