/* Aavaas Sahita - Custom Stylesheet */

/* Google Fonts: Plus Jakarta Sans for body, Montserrat/Playfair Display for headings */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --color-primary: #BB2220;
    /* Rich Red */
    --color-primary-rgb: 187, 34, 32;
    --color-black: #111111;
    /* Deep Onyx Black */
    --color-black-rgb: 17, 17, 17;
    --color-white: #FFFFFF;
    --color-gray-dark: #1E1E1E;
    --color-gray-light: #F9F9F9;
    --color-border-light: rgba(17, 17, 17, 0.08);
    --color-border-dark: rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-black);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9c1c1a;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--color-white);
    color: var(--color-black);
    overflow-x: hidden;
}

/* Typography Utility */
.font-heading {
    font-family: 'Montserrat', sans-serif;
}

.font-serif-display {
    font-family: 'Playfair Display', serif;
}

/* Geometric Grid Backgrounds */
.geometric-grid-light {
    background-color: var(--color-white);
    background-image:
        linear-gradient(to right, rgba(187, 34, 32, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(187, 34, 32, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    position: relative;
}

.geometric-grid-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(255, 255, 255, 0.8) 100%);
    pointer-events: none;
}

.geometric-grid-dark {
    background-color: var(--color-black);
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    position: relative;
}

.geometric-grid-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 50%, rgba(17, 17, 17, 0.9) 100%);
    pointer-events: none;
}

/* Decorative Line Accents */
.architectural-line-x {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(187, 34, 32, 0.2) 20%, rgba(187, 34, 32, 0.2) 80%, transparent);
    width: 100%;
}

.architectural-line-y {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(187, 34, 32, 0.2) 20%, rgba(187, 34, 32, 0.2) 80%, transparent);
    height: 100%;
}

/* Glassmorphism Header */
.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-header.scrolled {
    background: rgba(17, 17, 17, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-header.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.glass-header.scrolled .nav-link:hover {
    color: var(--color-primary);
}

.glass-header.scrolled .logo-text {
    color: var(--color-white);
}

.glass-header.scrolled .nav-logos img {
    filter: brightness(0) invert(1);
    transition: filter 0.4s ease;
}

.glass-header.scrolled #logo-fallback-text {
    color: var(--color-white) !important;
}

.glass-header.scrolled #mobile-menu-btn {
    color: #ffffff !important;
}

/* Logos positioning and sizes matching Royal Park style */
.nav-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-logos .logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    transition: transform 0.4s;
}

.nav-logos .logo-link:hover {
    transform: scale(1.04);
}

.nav-logos .brand-logo {
    overflow: hidden;
}

.nav-logos .brand-logo-img {
    height: 150px !important;
    margin-top: -35px !important;
    margin-bottom: -35px !important;
    max-height: none !important;
    width: auto;
    object-fit: contain;
}

.nav-logos .project-logo-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

@media screen and (max-width: 768px) {
    .nav-logos {
        gap: 12px;
    }

    .nav-logos .logo-link {
        height: 70px;
    }

    .nav-logos .brand-logo-img {
        height: 160px !important;
        margin-top: -45px !important;
        margin-bottom: -45px !important;
        max-height: none !important;
    }

    .nav-logos .project-logo-img {
        max-height: 45px;
    }
}



/* Custom Interactive Accordions */
.accordion-header {
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    /* Adjust dynamically */
}

/* Floating Elements styling */
.sticky-toolbar-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-black);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-toolbar-btn:hover {
    background: var(--color-primary);
    transform: translateX(4px) scale(1.05);
}

.sticky-brochure-btn {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-orientation: mixed;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--color-primary);
    color: var(--color-white);
}

.sticky-brochure-btn:hover {
    background: var(--color-black);
    color: var(--color-white);
}

/* Modals & Popups */
.modal-backdrop {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content-box {
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-content-box {
    transform: scale(1) translateY(0);
}

/* Form Styling overrides */
.form-input-field {
    border: 1px solid rgba(17, 17, 17, 0.15);
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

.form-input-field:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(187, 34, 32, 0.1);
}

.form-input-field-dark {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    transition: all 0.3s ease;
}

.form-input-field-dark:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(187, 34, 32, 0.25);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Fact Card Hover styling */
.fact-card {
    border: 1px solid rgba(17, 17, 17, 0.06);
    background: var(--color-white);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fact-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(187, 34, 32, 0.06);
    transform: translateY(-4px);
}

/* Tabs styles */
.tab-btn {
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.85);
}

.tab-btn.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Animations */
@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(187, 34, 32, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(187, 34, 32, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(187, 34, 32, 0);
    }
}

.btn-pulse {
    animation: pulseRed 2s infinite;
}

.hero-gradient-overlay {
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.2) 0%, rgba(17, 17, 17, 0.8) 100%);
}

/* Hero Background Custom responsive styling */
.hero-bg-mobile {
    background-image: url('Avaas_sahita_banner_mob.webp');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    .hero-bg-desktop {
        background-image: url('avaas_sahita_banner_desktop.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }
}