/* ==========================================================================
   Shubharambh Green City - Master Stylesheet & Responsive System
   Version: 1.3.0 (Outfit + Cinzel Luxury Real Estate Typography)
   ========================================================================== */

/* Universal Box Sizing & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent horizontal viewport expansion & left-to-right scrolling on all screens */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 105px;
}

@media (min-width: 640px) {
    html {
        scroll-padding-top: 115px;
    }
}

@media (min-width: 1024px) {
    html {
        scroll-padding-top: 125px;
    }
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fcfcfc;
    margin: 0;
    padding: 0;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container safety bounds */
main, section, header, footer, nav {
    max-width: 100%;
    overflow-x: clip;
}

/* Fix AOS translate3d from stretching mobile viewport */
html.aos-init, body.aos-init {
    overflow-x: hidden !important;
}

[data-aos] {
    pointer-events: auto !important;
}

/* Typography Hierarchy Tokens */
h1, h2, .font-cinzel {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.02em;
}

h3, h4, .font-serif {
    font-family: 'Marcellus', 'Cinzel', serif;
    letter-spacing: 0.01em;
}

.font-outfit, .font-sans {
    font-family: 'Outfit', sans-serif;
}

.hindi-text {
    font-family: 'Mukta', sans-serif;
    letter-spacing: 0.01em;
}

.gold-gradient-text {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero Background */
.hero-bg {
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

@media (min-width: 768px) {
    .hero-bg {
        background-attachment: fixed;
    }
}

/* Glassmorphism Card Style */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 179, 90, 0.3);
}

/* Navigation Links */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #dcb35a;
    transition: width .3s ease;
    margin-top: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* 3D Helpers */
.preserve-3d {
    transform-style: preserve-3d;
}
.translate-z-10 {
    transform: translateZ(8px);
}
.translate-z-20 {
    transform: translateZ(15px);
}
.translate-z-30 {
    transform: translateZ(25px);
}

/* Vibration Animation */
@keyframes vibrate {
    0%, 100% { transform: rotate(-4deg) translate(0, 0); }
    25% { transform: rotate(-1deg) translate(-1.5px, 1px); }
    50% { transform: rotate(-5deg) translate(1.5px, -1px); }
    75% { transform: rotate(-2deg) translate(-1px, -1px); }
}

.animate-vibrate {
    animation: vibrate 2.2s ease-in-out infinite;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}
::-webkit-scrollbar-thumb {
    background: rgba(220, 179, 90, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 179, 90, 0.7);
}

/* Continuous Smooth Running Ticker Marquee (Right to Left) */
@keyframes ticker-marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-ticker {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker-marquee 28s linear infinite;
}

.animate-ticker:hover {
    animation-play-state: paused;
}

#nav-ticker-bar {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.3s ease;
    max-height: 50px;
    opacity: 1;
}

#nav-ticker-bar.ticker-hidden {
    max-height: 0px !important;
    opacity: 0 !important;
    transform: translateY(-100%) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
    pointer-events: none !important;
}

