/*
 * A M Chordiya Ventures - Global Design System & Variables
 */

:root {
    /* Color Palette */
    --color-bg-dark: #0f0f11;
    --color-bg-darker: #070708;
    --color-bg-light: #fbf9f6;
    --color-bg-card-dark: rgba(25, 25, 29, 0.6);
    --color-bg-card-light: rgba(255, 255, 255, 0.7);
    
    --color-gold: #c5a059;
    --color-gold-dark: #a8833c;
    --color-gold-light: #ebd6a8;
    
    --color-text-dark: #0f0f11;
    --color-text-light: #ffffff;
    --color-text-muted-dark: #5c5c62;
    --color-text-muted-light: #a5a5ab;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Layout */
    --header-height: 90px;
    --border-radius: 12px;
    --border-color-dark: rgba(197, 160, 89, 0.15);
    --border-color-light: rgba(15, 15, 17, 0.08);
    
    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto; /* Required for Lenis */
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.dark-mode {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

/* Scroll wrapper for Lenis */
.scroll-wrapper {
    width: 100%;
    position: relative;
}

/* HTML Elements Styling */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

li {
    list-style: none;
}

/* Premium Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    background-color: var(--color-bg-darker);
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-gold-dark);
}

/* Custom Mouse Cursor */
.custom-cursor {
    width: 8px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transition: width 0.3s ease, height 0.3s ease;
}

.custom-cursor-follower {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.1s linear, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.custom-cursor.hovering {
    width: 16px;
    height: 16px;
}

.custom-cursor-follower.hovering {
    width: 50px;
    height: 50px;
    background-color: rgba(197, 160, 89, 0.1);
}

/* Hide custom cursor on mobile touch devices */
@media (pointer: coarse) {
    .custom-cursor, .custom-cursor-follower {
        display: none;
    }
}

/* Fullscreen Preloader Styling */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-darker);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.preloader-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(197, 160, 89, 0.05) 0%, rgba(0,0,0,0) 70%);
}

.loader-content {
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
}

.loader-logo-container {
    margin-bottom: 30px;
    opacity: 0;
    transform: scale(0.85);
}

.loader-logo {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.2));
}

.loader-progress-track {
    width: 200px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 25px;
    overflow: hidden;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--color-gold);
    box-shadow: 0 0 10px var(--color-gold);
}

.loader-brand-statements {
    opacity: 0;
    display: flex;
    gap: 15px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--color-text-muted-light);
    text-transform: uppercase;
}

.loader-divider {
    color: var(--color-gold);
}

.preloader-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: var(--color-bg-dark);
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.panel-left {
    left: 0;
    transform-origin: left;
}

.panel-right {
    right: 0;
    transform-origin: right;
}

/* Page transitions active class */
.preloader.fade-out {
    pointer-events: none;
}

/* Layout Grid Utilities */
.section {
    padding: 120px 0;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }
    .container {
        padding: 0 20px;
    }
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--color-bg-card-dark);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color-dark);
    border-radius: var(--border-radius);
}

.glass-panel-light {
    background: var(--color-bg-card-light);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color-light);
    border-radius: var(--border-radius);
}
