/* ============================================================
   main.css — Core Design System
   NexGen Bharat Builderz — Architecture & Construction
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #0B0B0F;
    --bg-secondary: #111118;
    --bg-tertiary: #1A1A24;
    --bg-card: rgba(20, 20, 30, 0.7);
    --bg-card-solid: #14141E;
    --bg-glass: rgba(17, 17, 24, 0.75);
    --gold: #C9A84C;
    --gold-light: #E2C97E;
    --gold-dark: #8B7432;
    --gold-glow: rgba(201, 168, 76, 0.25);
    --gold-border: rgba(201, 168, 76, 0.2);
    --gold-border-active: rgba(201, 168, 76, 0.5);
    --white: #FFFFFF;
    --text-primary: #F0EDE6;
    --text-secondary: #A8A5B0;
    --text-muted: #6B687A;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --success: #34D399;
    --error: #F87171;
    --warning: #FBBF24;
    --max-w: 1360px;
    --nav-h: 76px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
    --shadow-gold: 0 4px 20px rgba(201,168,76,0.15);
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --t-fast: 0.2s;
    --t-normal: 0.35s;
    --t-slow: 0.5s;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; background: var(--bg-primary); color: var(--text-primary); -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; background: var(--bg-primary); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 500; color: var(--white); line-height: 1.2; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; background: transparent; border: none; outline: none; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--bg-primary); }

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; position: relative; }
.section--alt { background: var(--bg-secondary); }

/* Grid */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }

/* Typography */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.15rem; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 3px; }
.tracking-wider { letter-spacing: 5px; }
.font-heading { font-family: var(--font-heading); }

/* Section Headers */
.section-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 4px; color: var(--gold); margin-bottom: 1rem; display: inline-block; }
.section-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; margin-bottom: 1.2rem; }
.section-title span { font-weight: 700; background: linear-gradient(135deg, var(--white) 30%, var(--gold-light) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-desc { max-width: 640px; margin: 0 auto; color: var(--text-secondary); font-size: 1.05rem; font-weight: 300; }
.section-header { text-align: center; margin-bottom: 4rem; }

/* Utility */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-6 { gap: 3rem; }
.w-full { width: 100%; }
.relative { position: relative; }
.hidden { display: none !important; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.anim-fadeInUp { animation: fadeInUp 0.7s var(--ease) forwards; }
.anim-fadeIn { animation: fadeIn 0.5s ease-out forwards; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 4.5rem 0; }
}
@media (max-width: 768px) {
    html { font-size: 15px; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .section { padding: 3.5rem 0; }
    .section-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
    .container { padding: 0 1rem; }
}
@media (max-width: 480px) {
    .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

/* Print */
@media print {
    .navbar, .sticky-bar, .whatsapp-float, .footer, .modal-overlay { display: none !important; }
    body { background: #fff; color: #000; }
    .section { padding: 1rem 0; }
}
