:root {
    --color-bg-dark: #050301;
    --color-bg-light: #0d0a06;
    --color-gold: #D4AF37;
    --color-gold-bright: #FFDF73;
    --color-gold-glow: rgba(212, 175, 55, 0.5);
    --color-text-main: #F4EBE1;
    --color-text-muted: #A89F91;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-gold);
}

/* Breathtaking Floating Navbar */
.floating-nav {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 1000;
    padding: 12px 30px;
    background: rgba(13, 10, 6, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.05);
    transition: var(--transition-smooth);
}

.floating-nav.scrolled {
    top: 15px;
    padding: 10px 30px;
    background: rgba(13, 10, 6, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px var(--color-gold));
    animation: pulseIcon 3s infinite ease-in-out;
}

.logo h1 {
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin: 0;
    background: linear-gradient(to right, var(--color-gold-bright), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background-color: var(--color-gold-bright);
    box-shadow: 0 0 10px var(--color-gold-bright);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--color-gold-bright);
    text-shadow: 0 0 10px rgba(255, 223, 115, 0.5);
}

.nav-links a:hover::after {
    transform: translateX(-50%) scale(1);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: url('./assets/kingdom_card.jpg') center/cover no-repeat;
    filter: brightness(0.4) contrast(1.2);
    z-index: 1;
    animation: subtleZoom 20s infinite alternate linear;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.smoke-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60%;
    background: radial-gradient(ellipse at bottom, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
    animation: breatheSmoke 8s infinite alternate ease-in-out;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 2rem;
    margin-top: -5vh; /* Push up slightly to leave room for deepam */
}

.shimmer-text {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 4px;
    color: var(--color-gold-bright);
    background: linear-gradient(to right, var(--color-gold) 20%, #fff 40%, #fff 60%, var(--color-gold) 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
}

.glow-text {
    font-size: 5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255,255,255,0.3), 0 0 40px var(--color-gold-glow);
}

.hero p {
    font-size: 1.3rem;
    color: var(--color-text-main);
    margin-bottom: 3.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    font-weight: 300;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold-bright);
    border: 1px solid rgba(212, 175, 55, 0.5);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cta-glow {
    position: absolute;
    width: 50px;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    top: 0;
    left: -100px;
    transform: skewX(-45deg);
    transition: 0.5s;
    filter: blur(10px);
}

.cta-button:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--color-gold-bright);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3), inset 0 0 15px rgba(212, 175, 55, 0.2);
}

.cta-button:hover .cta-glow {
    left: 120%;
    transition: 0.7s;
}

/* Deepam & Spiritual Elements */
.spiritual-elements {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: flex-end;
    gap: 60px;
}

/* Deepam SVG Animation */
.deepam-container {
    position: relative;
    width: 100px;
    height: 100px;
    animation: float 4s ease-in-out infinite;
}

.deepam-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.8));
}

.glow-aura {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.4) 0%, rgba(255, 140, 0, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulseGlow 2s infinite alternate ease-in-out;
}

.flame {
    transform-origin: 50% 58px;
    animation: flicker 0.15s infinite alternate;
}

.flame-inner {
    transform-origin: 50% 56px;
    animation: flickerInner 0.12s infinite alternate;
}

/* Agarbatti */
.agarbatti {
    position: relative;
    height: 80px;
    width: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.agarbatti-left { transform: rotate(-15deg); }
.agarbatti-right { transform: rotate(15deg); }

.stick {
    width: 3px;
    height: 60px;
    background: linear-gradient(to top, #4A3B32, #2A1B12);
    border-radius: 2px;
}

.ember {
    width: 5px;
    height: 5px;
    background: #FF4500;
    border-radius: 50%;
    box-shadow: 0 0 8px 2px #FF8C00;
    animation: emberGlow 1.5s infinite alternate;
    margin-bottom: -1px;
}

.css-smoke {
    position: absolute;
    top: 15px;
    width: 2px;
    height: 40px;
    background: rgba(255,255,255,0.4);
    filter: blur(4px);
    border-radius: 50%;
    transform-origin: bottom center;
    opacity: 0;
}

.css-smoke-1 { animation: riseSmoke 4s infinite linear; }
.css-smoke-2 { animation: riseSmoke 4s infinite linear 2s; }

/* Container & Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.section-title {
    font-size: 3rem;
    color: var(--color-gold-bright);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    margin: 0;
}

.ornament {
    color: var(--color-gold);
    font-size: 1.5rem;
    opacity: 0.6;
    animation: rotateSlow 10s infinite linear;
}

/* About Section */
.about-section {
    padding: 10rem 0;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-light) 100%);
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.about-content::before {
    content: '"';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 120px;
    color: rgba(212, 175, 55, 0.1);
    line-height: 1;
}

.lead-text {
    font-size: 1.8rem;
    color: var(--color-gold-bright);
    margin-bottom: 2.5rem;
    font-family: var(--font-heading);
    line-height: 1.4;
}

.about-content p:not(.lead-text) {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

/* Topics Section */
.topics-section {
    padding: 8rem 0 12rem;
    background: var(--color-bg-light);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    perspective: 1000px;
}

.tilt-card {
    background: transparent;
    border-radius: 12px;
    transform-style: preserve-3d;
}

.card-inner {
    background: rgba(20, 15, 10, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: border-color 0.4s ease;
    height: 100%;
}

.tilt-card:hover .card-inner {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(212, 175, 55, 0.15);
}

.card-image-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
    transform: translateZ(30px); /* 3D pop out */
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tilt-card:hover .card-image-wrapper img {
    transform: scale(1.15);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(20, 15, 10, 1) 0%, rgba(20, 15, 10, 0) 100%);
}

.card-content {
    padding: 2.5rem 2rem;
    transform: translateZ(40px); /* Text pops out more */
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-gold-bright);
}

.card-content p {
    color: var(--color-text-main);
    font-size: 1rem;
    font-weight: 300;
}

/* Subscribe Section */
.subscribe-section {
    padding: 8rem 0;
    background: var(--color-bg-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.subscribe-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.subscribe-section p {
    color: var(--color-text-main);
    margin-bottom: 4rem;
    font-size: 1.2rem;
    font-weight: 300;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    color: var(--color-text-main);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition-smooth);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    transition: width 0.5s ease, height 0.5s ease;
    z-index: -1;
}

.social-btn:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.social-btn:hover .btn-glow {
    width: 150px;
    height: 150px;
}

.social-btn.facebook:hover { color: #1877f2; border-color: #1877f2; }
.social-btn.instagram:hover { color: #e1306c; border-color: #e1306c; }
.social-btn.youtube:hover { color: #ff0000; border-color: #ff0000; }

/* Footer */
footer {
    padding: 5rem 0 3rem;
    text-align: center;
    background: #020101;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    font-size: 2rem;
    color: var(--color-gold-bright);
}

.footer-links {
    margin-bottom: 2.5rem;
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
}

.footer-links span {
    margin: 0 15px;
    color: var(--color-text-muted);
    transition: color 0.3s;
    cursor: pointer;
}

.footer-links span:hover {
    color: var(--color-gold-bright);
}

.copyright {
    color: rgba(255,255,255,0.2);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Animations */
@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes subtleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

@keyframes flicker {
    0% { transform: scaleY(1) rotate(-2deg); }
    50% { transform: scaleY(1.05) rotate(1deg); }
    100% { transform: scaleY(0.95) rotate(3deg); }
}

@keyframes flickerInner {
    0% { transform: scaleY(0.9) rotate(2deg); }
    50% { transform: scaleY(1.1) rotate(-1deg); }
    100% { transform: scaleY(0.95) rotate(-3deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes emberGlow {
    0% { box-shadow: 0 0 5px 1px #FF8C00; opacity: 0.8; }
    100% { box-shadow: 0 0 12px 3px #FF4500; opacity: 1; }
}

@keyframes riseSmoke {
    0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0; }
    20% { opacity: 0.6; }
    100% { transform: translateY(-60px) scale(3) rotate(20deg); opacity: 0; }
}

@keyframes breatheSmoke {
    0% { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes rotateSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-up.delay-1 { animation-delay: 0.3s; }
.animate-up.delay-2 { animation-delay: 0.6s; }
.animate-up.delay-3 { animation-delay: 0.9s; }
.animate-up.delay-4 { animation-delay: 1.2s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.scroll-fade {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade.delay-1 { transition-delay: 0.2s; }
.scroll-fade.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .floating-nav { width: 95%; padding: 10px 20px; }
    .hero h1 { font-size: 3rem; }
    .hero h2 { font-size: 2rem; }
    .nav-links { display: none; }
    .section-title { font-size: 2.2rem; }
    .shimmer-text { font-size: 2.5rem; }
    .glow-text { font-size: 3.5rem; }
}
