/* Modern Luxury Heritage - Style Overrides and Premium Animations */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;700&display=swap');

:root {
    --color-primary: #000d22;
    --color-primary-container: #002349;
    --color-secondary: #645e4f;
    --color-secondary-container: #e8dfcc;
    --color-tertiary: #140b00;
    --color-on-tertiary-container: #a78541;
    --color-surface-bright: #f8f9fa;
    --color-gold: #c5a059;
    --color-gold-hover: #b48e48;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    background-color: var(--color-surface-bright);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary-container);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* Glassmorphism Styles */
.glass-card, .glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-card-dark {
    background: rgba(0, 13, 34, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dynamic Ambient Floating Orbs */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    animation: floatOrb 12s ease-in-out infinite alternate;
}

.ambient-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--color-gold);
    top: 15%;
    left: -100px;
}

.ambient-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--color-primary-container);
    bottom: 20%;
    right: -150px;
    animation-delay: -4s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(50px, 30px) scale(1.15);
    }
}

/* Custom Luxury Cursor */
.custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-follower {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.08s ease-out, border-color 0.2s, width 0.2s, height 0.2s;
}

/* Cursor Hover states */
body.hovering .custom-cursor {
    width: 14px;
    height: 14px;
    background-color: var(--color-primary);
}

body.hovering .custom-cursor-follower {
    width: 56px;
    height: 56px;
    border-color: var(--color-gold);
    transform: translate(-50%, -50%) scale(1.2);
}

/* Text Reveal Animation Utility Classes */
.reveal-text {
    overflow: hidden;
    position: relative;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.active span {
    transform: translateY(0);
}

/* Image zoom reveal animation */
.reveal-image-container {
    overflow: hidden;
}

.reveal-image-container img {
    transform: scale(1.12);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-image-container.active img {
    transform: scale(1);
}

/* Language Swapping Mechanics */
.lang-en, .lang-mr {
    transition: opacity 0.3s ease;
}

body.lang-mode-mr .lang-en {
    display: none !important;
    opacity: 0;
}

body.lang-mode-en .lang-mr {
    display: none !important;
    opacity: 0;
}

/* Preloader Screen */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.preloader-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    letter-spacing: -0.03em;
    opacity: 0;
    transform: scale(0.95);
    animation: pulseLogo 2.5s ease-in-out infinite;
}

.preloader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: var(--color-gold);
    position: absolute;
    top: 0;
    left: 0;
    animation: fillProgress 1.8s ease-in-out forwards;
}

@keyframes pulseLogo {
    0% { opacity: 0.3; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.3; transform: scale(0.98); }
}

@keyframes fillProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Page content active transition */
.page-fade-in {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.page-fade-in.active {
    opacity: 1;
    transform: translateY(0);
}
