/* style.css - THE OMNI-SOVEREIGN EDITION (FINAL V3.0) */
/* DESIGNED TO BE MAINTENANCE-FREE ACROSS ALL DEVICES */

:root {
    --void: #050505;
    --gold: #D4AF37; 
    --gold-light: #F2D088;
    --gold-dark: #8A6E30;
    --text: #ffffff;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
    background-color: var(--void);
    color: var(--text);
    font-family: 'Raleway', sans-serif;
    overflow-x: hidden; /* HARD STOP on horizontal scroll */
    width: 100%;
    max-width: 100vw;
}

/* --- TYPOGRAPHY & BRANDING --- */
h1, h2, h3, .luxury-font { 
    font-family: 'Cinzel', serif; 
    text-transform: uppercase; 
    font-weight: 400; 
    word-break: break-word; /* Prevents long words from breaking layout */
}
.gold-text { color: var(--gold); text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }

/* --- NAVIGATION BAR --- */
.nav-bar {
    position: fixed; top: 0; left: 0; width: 100%; padding: 25px 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; transition: 0.5s;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95), transparent);
}
.nav-bar.scrolled {
    background: rgba(0,0,0,0.98); backdrop-filter: blur(20px);
    padding: 15px 5%; border-bottom: 1px solid var(--border);
}

.brand-container { display: flex; align-items: center; gap: 15px; text-decoration: none; z-index: 1001; }
.brand-stack { display: flex; flex-direction: column; justify-content: center; }
.brand-text { font-family: 'Cinzel', serif; font-size: 1.8rem; letter-spacing: 3px; color: #fff; line-height: 1; margin-bottom: 2px; }
.brand-sub { font-family: 'Raleway', sans-serif; font-size: 0.65rem; letter-spacing: 1px; color: var(--gold); text-transform: uppercase; font-weight: 600; opacity: 1; }

.logo-svg { width: 45px; height: 45px; flex-shrink: 0; }
.logo-path { fill: none; stroke: var(--gold); stroke-width: 2; animation: drawLogo 2s forwards; }
@keyframes drawLogo { from { stroke-dasharray: 100; stroke-dashoffset: 100; } to { stroke-dashoffset: 0; fill: rgba(212, 175, 55, 0.1); } }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-item { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: #fff; text-decoration: none; position: relative; opacity: 0.8; transition: 0.3s; }
.nav-item:hover { opacity: 1; color: var(--gold); }
.nav-item::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px; background: var(--gold); transition: 0.4s; }
.nav-item:hover::after { width: 100%; }
.btn-login { border: 1px solid var(--gold); color: var(--gold); padding: 10px 25px; font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; text-decoration: none; transition: 0.4s; white-space: nowrap; }
.btn-login:hover { color: #000; background: var(--gold); }
.menu-toggle { display: none; cursor: pointer; z-index: 1001; }
.bar { width: 25px; height: 2px; background-color: var(--gold); margin: 6px 0; transition: 0.4s; }

/* --- HERO & VIDEO --- */
.hero-section {
    height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; position: relative; overflow: hidden;
}
.video-bg {
    position: absolute; top: 50%; left: 50%; width: 100%; height: 100%;
    transform: translate(-50%, -50%); z-index: 0; object-fit: cover; opacity: 0.6;
}
.hero-content { z-index: 10; padding: 0 20px; width: 100%; max-width: 1200px; }
.hero-title {
    font-size: clamp(2.5rem, 8vw, 8rem); letter-spacing: clamp(5px, 2vw, 15px); line-height: 1.1; margin-bottom: 30px;
    opacity: 0; transform: translateY(50px); animation: fadeInUp 1.5s ease-out 0.5s forwards; color: #fff; 
}
.hero-subtitle {
    font-size: clamp(0.8rem, 2vw, 1.2rem); letter-spacing: clamp(2px, 1vw, 6px); color: rgba(255,255,255,0.9); margin-bottom: 50px;
    opacity: 0; animation: fadeIn 1.5s ease-out 1.5s forwards;
}

/* --- MANIFESTO (SCROLL TEXT) --- */
.manifesto-section {
    position: relative; 
    padding: clamp(60px, 10vw, 150px) 5%; 
    background: #000; overflow: hidden; perspective: 800px;
    border-bottom: 1px solid var(--border); display: flex; justify-content: center; align-items: center;
}
.city-wrap {
    position: absolute; top: 50%; left: 50%; width: 150%; height: 150%;
    transform: translate(-50%, -50%) rotateX(60deg); transform-style: preserve-3d; z-index: 1;
}
.city-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(197, 160, 89, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(197, 160, 89, 0.15) 1px, transparent 1px);
    background-size: 80px 80px; animation: cityScroll 10s linear infinite;
}
@keyframes cityScroll { 0% { transform: translateY(0); } 100% { transform: translateY(80px); } }
.city-overlay { position: absolute; inset: 0; background: radial-gradient(circle, transparent 30%, #000 90%); z-index: 5; }
.manifesto-text {
    position: relative; z-index: 10; font-size: clamp(1.2rem, 3vw, 2.5rem); line-height: 1.6; 
    font-family: 'Cinzel', serif; color: #eee; text-shadow: 0 5px 20px #000, 0 0 30px #000; text-align: center;
}

/* --- CARDS & GRIDS --- */
.ecosystem-header { text-align: center; padding-top: clamp(60px, 8vw, 100px); background: var(--void); }
.section-title { font-size: 1rem; color: var(--gold); letter-spacing: 5px; margin-bottom: 20px; display: block;}

.portal-grid { 
    padding: 80px 5%; background: var(--void); 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; perspective: 1000px; 
}
.tilt-card { height: 600px; position: relative; transform-style: preserve-3d; transition: transform 0.1s, opacity 0.4s, filter 0.4s; cursor: pointer; border: 1px solid var(--border); background: #000; }
.tilt-inner { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1)); display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; transform: translateZ(20px); z-index: 2; }
.card-bg { position: absolute; inset: 0; opacity: 0.6; transition: 0.5s; background-size: cover; background-position: center; filter: grayscale(100%); z-index: 1; }
.card-content { position: relative; z-index: 10; transform: translateZ(30px); }
.card-num { font-family: 'Cinzel', serif; font-size: 4rem; color: rgba(255,255,255,0.1); display: block; margin-bottom: 10px; transition: 0.4s; }
.card-title { font-size: 2rem; margin-bottom: 20px; color: #fff; }
.card-desc { font-size: 0.9rem; color: #ccc; line-height: 1.6; opacity: 0.7; transform: translateY(0); transition: 0.4s; }
.portal-grid:hover .tilt-card { opacity: 0.4; filter: grayscale(100%); }
.tilt-card:hover { opacity: 1 !important; filter: grayscale(0%) !important; transform: scale(1.05) perspective(1000px) rotateX(0) rotateY(0) !important; z-index: 10; border-color: var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.tilt-card:hover .card-bg { opacity: 1; }
.tilt-card:hover .card-desc { opacity: 1; color: #fff; }
.tilt-card:hover .card-num { color: var(--gold); text-shadow: 0 0 20px rgba(212, 175, 55, 0.6); -webkit-text-stroke: 0px; }

/* --- PREMIUM LISTINGS --- */
.premium-section { padding: clamp(60px, 8vw, 120px) 5%; background: #090909; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.premium-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; padding-bottom: 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 20px; }
.premium-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.premium-card { position: relative; height: 500px; border: 1px solid var(--border); transition: 0.4s; overflow: hidden; cursor: pointer; }
.premium-card:hover { border-color: var(--gold); transform: translateY(-10px); }
.p-image { width: 100%; height: 65%; background-size: cover; background-position: center; transition: 0.5s; }
.premium-card:hover .p-image { transform: scale(1.05); }
.p-details { padding: 30px; background: #050505; height: 35%; display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 2; border-top: 1px solid var(--border); }
.p-badge { position: absolute; top: 20px; left: 20px; background: var(--gold); color: #000; padding: 5px 15px; font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; z-index: 5; }
.p-price { font-family: 'Cinzel', serif; color: var(--gold); font-size: 1.2rem; margin-bottom: 5px; }
.p-title { font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.p-loc { font-size: 0.7rem; color: #666; display: flex; align-items: center; gap: 5px; }

/* --- INTELLIGENCE SECTION (FIXED LAYOUT) --- */
.ai-section { 
    padding: clamp(60px, 8vw, 150px) 10%; 
    background: #080808; 
    display: flex; 
    align-items: center; 
    gap: 60px; 
    border-top: 1px solid var(--border); 
}
.ai-content { flex: 1; min-width: 0; /* Prevents text overflow */ }
.ai-visual { 
    flex: 1; 
    height: 500px; 
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2940'); 
    background-size: cover; 
    filter: grayscale(100%); 
    border: 1px solid var(--border); 
    position: relative; 
    width: 100%;
}
.ai-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(45deg, rgba(197, 160, 89, 0.2), transparent); }

/* --- GLOBAL GLOBE COMPONENT --- */
.global-hero {
    height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
    position: relative; overflow: hidden; border-bottom: 1px solid var(--border); perspective: 1000px;
}
.globe-container {
    width: clamp(280px, 80vw, 400px); /* DYNAMIC GLOBE SIZING */
    height: clamp(280px, 80vw, 400px); 
    position: relative; transform-style: preserve-3d; animation: rotateGlobe 30s linear infinite;
}
.globe-wireframe { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(212, 175, 55, 0.1); background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.05), transparent); box-shadow: 0 0 50px rgba(212, 175, 55, 0.05) inset; }
.globe-ring { position: absolute; top: 50%; left: 0; width: 100%; height: 100%; border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 50%; transform-origin: center; }
.r1 { transform: rotateY(0deg); } .r2 { transform: rotateY(60deg); } .r3 { transform: rotateY(120deg); } .r4 { transform: rotateX(90deg); }
@keyframes rotateGlobe { from { transform: rotateY(0deg) rotateX(10deg); } to { transform: rotateY(360deg) rotateX(10deg); } }
.hero-text-overlay { position: absolute; z-index: 10; text-align: center; pointer-events: none; text-shadow: 0 0 20px #000; width: 90%; }

/* --- VISION PAGE COMPONENTS --- */
.blueprint-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: hidden; opacity: 0.3; }
.blueprint-grid { position: absolute; inset: -50%; background-image: linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px); background-size: 50px 100%; transform: rotate(15deg); animation: blueprintScroll 60s linear infinite; }
@keyframes blueprintScroll { to { transform: rotate(15deg) translateY(-200px); } }

.brutalist-header {
    font-size: clamp(2.5rem, 6vw, 6rem); line-height: 1.1; letter-spacing: 2px;
    margin-bottom: 40px; position: relative; z-index: 2; word-wrap: break-word;
}
.vision-hero { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; padding: clamp(80px, 10vw, 150px) 10%; position: relative; z-index: 1; border-bottom: 1px solid var(--border); }
.vision-block { padding: clamp(80px, 10vw, 150px) 10%; position: relative; z-index: 1; display: flex; gap: 60px; align-items: center; border-bottom: 1px solid var(--border); }
.vision-block.reverse { flex-direction: row-reverse; }
.block-content { flex: 1; min-width: 0; }
.block-image-wrap { flex: 1; height: 500px; position: relative; overflow: hidden; border: 1px solid var(--border); width: 100%; }
.block-image { position: absolute; top: -20%; left: 0; width: 100%; height: 140%; background-size: cover; background-position: center; filter: grayscale(100%) contrast(1.2); transition: 0.5s; }

.pillars-section { padding: clamp(80px, 10vw, 150px) 5%; background: #080808; }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2px; background: var(--border); }
.monolith-card { background: linear-gradient(145deg, #111111 0%, #050505 100%); padding: 80px 40px; height: 600px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid rgba(255, 255, 255, 0.05); position: relative; overflow: hidden; transition: 0.5s; }
.monolith-card:hover { background: linear-gradient(145deg, #1a1a1a 0%, #080808 100%); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.5); border-color: var(--gold-dark); }
.monolith-num { font-family: 'Cinzel', serif; font-size: 5rem; color: rgba(212, 175, 55, 0.1); position: absolute; top: 40px; left: 40px; }
.monolith-title { font-size: 1.5rem; margin-bottom: 30px; letter-spacing: 3px; }
.monolith-text { font-size: 0.9rem; line-height: 1.8; color: #999; }

/* --- FOOTER (CRITICAL FIXES) --- */
.footer {
    text-align: center;
    padding: 80px 20px;
    background: #050505; /* Fallback */
    background: linear-gradient(to top, #0f0f0f, #050505);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 100;
}
.social-links { display: flex; justify-content: center; gap: 20px; margin: 30px 0; }
.social-icon { 
    width: 45px; height: 45px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    transition: 0.4s; background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(212, 175, 55, 0.1);
    flex-shrink: 0; /* Prevents squashing */
}
/* FORCE ICON VISIBILITY */
.social-icon svg { 
    width: 20px !important; 
    height: 20px !important; 
    fill: var(--gold) !important; /* Forces Gold Color */
    transition: 0.3s; 
}
.social-icon path { fill: var(--gold) !important; } /* Double safety */

.social-icon:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.social-icon.fb:hover { background: #1877F2; border-color: #1877F2; } .social-icon.fb:hover svg, .social-icon.fb:hover path { fill: #fff !important; }
.social-icon.tw:hover { background: #000000; border-color: #333; } .social-icon.tw:hover svg, .social-icon.tw:hover path { fill: #fff !important; }
.social-icon.in:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); border-color: transparent; } .social-icon.in:hover svg, .social-icon.in:hover path { fill: #fff !important; }
.social-icon.ln:hover { background: #0077b5; border-color: #0077b5; } .social-icon.ln:hover svg, .social-icon.ln:hover path { fill: #fff !important; }

/* --- COMMON ANIMATIONS --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(50px); transition: 1s cubic-bezier(0.19, 1, 0.22, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   FINAL RESPONSIVE BREAKPOINTS (THE "NEVER EDIT AGAIN" SYSTEM)
   ========================================================================== */

/* 1. LARGE LAPTOPS & DESKTOPS (1200px - 1440px) */
/* Forces layout shift earlier to avoid "squeezing" content */
@media (max-width: 1400px) {
    .ai-section { gap: 40px; padding: 100px 5%; }
    .hero-title { font-size: 5rem; }
}

/* 2. STANDARD LAPTOPS & TABLET LANDSCAPE (1024px - 1200px) */
@media (max-width: 1200px) {
    /* Critical: Stack side-by-side layouts vertically here */
    .ai-section, .vision-block, .vision-block.reverse { 
        flex-direction: column !important; 
        text-align: center;
    }
    .ai-visual, .block-image-wrap { width: 100%; height: 400px; margin-top: 30px; }
    .premium-header { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* 3. TABLET PORTRAIT (769px - 1024px) */
@media (max-width: 1024px) {
    .nav-bar { padding: 20px 30px; }
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(5, 5, 5, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; align-items: center; padding: 40px 0; gap: 30px;
        border-bottom: 1px solid var(--border);
        opacity: 0; transform: translateY(-20px); pointer-events: none;
        transition: 0.4s;
    }
    .nav-links.active { opacity: 1; transform: translateY(0); pointer-events: all; }
    .menu-toggle.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    
    .monolith-card { height: auto; min-height: 400px; }
    .hero-title { font-size: 4rem; }
}

/* 4. MOBILE LANDSCAPE / LARGE PHONES (481px - 768px) */
@media (max-width: 768px) {
    .nav-bar { padding: 15px 20px; }
    .hero-title { font-size: 2.5rem; letter-spacing: 5px; }
    .portal-grid, .premium-grid, .pillars-grid { grid-template-columns: 1fr; }
    .tilt-card { height: 450px; }
    .brand-sub { display: none; } /* Hide sub-text to save space */
    .brand-text { font-size: 1.5rem; }
    
    .brutalist-header { font-size: 2.5rem; }
    .vision-hero, .vision-block, .pillars-section { padding: 60px 20px; }
    
    /* Footer Stack */
    .footer { padding: 60px 20px; }
    .social-links { gap: 15px; }
}

/* 5. SMALL MOBILE (Max 480px) - SAFETY NET */
@media (max-width: 480px) {
    .hero-title { font-size: 2rem; letter-spacing: 2px; }
    .manifesto-text { font-size: 1rem; }
    .card-title { font-size: 1.5rem; }
    .tilt-card { height: 400px; }
    .premium-card { height: 450px; }
    
    /* Ensure nothing touches the edge */
    .hero-content, .manifesto-section, .ai-section, .vision-block { padding-left: 15px; padding-right: 15px; }
    
    .social-icon { width: 35px; height: 35px; } /* Smaller icons */
    .social-icon svg { width: 16px !important; height: 16px !important; }
}