:root {
    --bg-dark: #0F2A1D;
    --saffron: #E8A33D;
    --ivory: #FAF6EC;
    --charcoal: #14171A;
    --terracotta: #B5532F;
    --text-main: var(--charcoal);
    --bg-main: var(--ivory);
    --bg-header: rgba(250, 246, 236, 0.8);
    --font-en: 'Cormorant Garamond', serif;
    --font-ui: 'Inter', sans-serif;
    --font-kn-serif: 'Noto Serif Kannada', serif;
    --font-kn-sans: 'Noto Sans Kannada', sans-serif;
    --grain: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
}

[data-theme="dark"] {
    --text-main: var(--ivory);
    --bg-main: var(--charcoal);
    --bg-header: rgba(20, 23, 26, 0.8);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-main); color: var(--text-main);
    font-family: var(--font-ui); line-height: 1.6;
    overflow-x: hidden;
}
body::after {
    content: ""; position: fixed; top:0; left:0; width:100vw; height:100vh;
    background-image: var(--grain); pointer-events: none; z-index: 9998;
}

body.lang-kn h1, body.lang-kn h2, body.lang-kn h3, body.lang-kn .logo-kn { font-family: var(--font-kn-serif); }
body.lang-en h1, body.lang-en h2, body.lang-en h3, body.lang-en .logo-en { font-family: var(--font-en); }
body.lang-kn .logo-en, body.lang-en .logo-kn { display: none; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* Custom Cursor */
.custom-cursor {
    position: fixed; top: 0; left: 0; width: 20px; height: 20px;
    background: var(--saffron); border-radius: 50%;
    pointer-events: none; z-index: 10000; mix-blend-mode: difference;
    transform: translate(-50%, -50%); transition: transform 0.1s ease;
}

/* Header */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: transparent; transition: all 0.3s ease; padding: 1.5rem 0;
}
.site-header.scrolled {
    background: var(--bg-header); backdrop-filter: blur(10px);
    padding: 0.8rem 0; box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-size: 1.8rem; font-weight: 600; text-decoration: none; color: var(--text-main); }
.desktop-nav a { margin: 0 1rem; text-decoration: none; color: var(--text-main); position: relative; }
.desktop-nav a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0;
    height: 2px; background: var(--saffron); transition: width 0.3s;
}
.desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; }

/* Dropdown */
.dropdown { display: inline-block; position: relative; }
.dropdown-content {
    display: none; position: absolute; background: var(--bg-main);
    min-width: 200px; box-shadow: 0px 8px 16px rgba(0,0,0,0.2); z-index: 1; padding: 1rem 0;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { display: block; padding: 0.5rem 1rem; }

.header-actions { display: flex; gap: 1rem; align-items: center; }
.btn {
    padding: 0.6rem 1.5rem; text-decoration: none; border-radius: 30px;
    font-weight: 600; transition: transform 0.3s, background 0.3s; border:none; cursor:pointer;
}
.btn-primary { background: var(--terracotta); color: var(--ivory); }
.btn-primary:hover { transform: scale(1.05); }
.icon-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-main); }
.mobile-menu-toggle { display: none; background:none; border:none; font-size:2rem; color:var(--text-main); cursor:pointer;}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed; top:0; left:0; width:100%; height:100%;
    background: var(--bg-dark); color: var(--ivory);
    z-index: 10001; transform: translateY(-100%); transition: transform 0.4s ease;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.mobile-menu-overlay.active { transform: translateY(0); }
.close-menu { position: absolute; top:2rem; right:2rem; font-size: 2rem; background:none; border:none; color:var(--ivory); cursor:pointer;}
.mobile-nav a { display: block; font-size: 2rem; color: var(--ivory); text-decoration: none; margin: 1rem 0; }

/* Hero Video */
.video-hero { position: relative; height: 100vh; width: 100vw; overflow: hidden; }
.video-hero video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, rgba(15,42,29,0.3), rgba(15,42,29,0.8));
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--ivory);
}
.hero-overlay h1 { font-size: 4rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 2px;}
.hero-overlay p { font-size: 1.5rem; max-width: 600px; margin-bottom: 2rem; }

/* Sections */
section { padding: 6rem 0; }
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.img-fluid { max-width: 100%; height: auto; border-radius: 8px; }

/* Inner Hero */
.inner-hero {
    height: 60vh; background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.inner-hero::before { content: ''; position: absolute; top:0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.5); }
.inner-hero h1 { position: relative; color: white; font-size: 3rem; z-index: 1; animation: slowZoom 10s infinite alternate;}

@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.1); } }

/* Horizontal Scroll */
.h-scroll-wrapper { width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; display: flex; gap: 2rem; padding: 2rem; scrollbar-width: none; }
.h-scroll-wrapper::-webkit-scrollbar { display: none; }
.h-card { min-width: 400px; height: 500px; position: relative; scroll-snap-align: center; border-radius: 12px; overflow: hidden; }
.h-card img { width: 100%; height: 100%; object-fit: cover; }
.h-card-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: white; }

/* Marquee */
.marquee { background: var(--saffron); color: var(--bg-dark); padding: 1rem 0; overflow: hidden; white-space: nowrap; }
.marquee-content { display: inline-block; animation: marquee 20s linear infinite; font-weight: bold; font-size: 1.2rem;}
.marquee-content span { padding: 0 2rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Footer */
.site-footer { background: var(--bg-dark); color: var(--ivory); padding-top:0;}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; padding: 4rem 2rem; }
.footer-col a { color: var(--saffron); text-decoration: none; display: block; margin-bottom: 0.5rem;}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 2rem 0; text-align: center; }

/* Misc */
.stats-strip { display: flex; justify-content: space-around; background: var(--terracotta); color: white; padding: 3rem; }
.stat-item h3 { font-size: 3rem; margin-bottom: 0.5rem; }
.masonry { column-count: 3; column-gap: 1rem; }
.masonry img { width: 100%; margin-bottom: 1rem; border-radius: 8px; }

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .grid-2 { grid-template-columns: 1fr; }
    .hero-overlay h1 { font-size: 2.5rem; }
    .stats-strip { flex-direction: column; gap: 2rem; text-align: center; }
    .masonry { column-count: 1; }
}