:root {
    --primary-color: #d4af37; /* Gold */
    --primary-dark: #b8860b;
    --primary-glow: rgba(212, 175, 55, 0.4);
    --bg-dark: #07070a;
    --bg-darker: #040406;
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(15, 15, 20, 0.6);
    --glass-border: rgba(212, 175, 55, 0.15);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Cinzel', serif;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(4,4,6,0.9), transparent);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--primary-glow);
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

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

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: filter 1s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--bg-darker) 100%);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
    animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.cta-button {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px var(--primary-glow);
}

.cta-button:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 30px var(--primary-glow);
    transform: translateY(-2px);
}

.cta-button .icon {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 60px;
        align-items: flex-start; /* Prevent vertical centering from pushing text behind navbar */
    }
    
    .hero-content {
        margin-top: 40px;
    }
    
    .glow-text {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.05rem;
    }
}

/* Info Section */
.info-section {
    padding: 100px 5%;
    background-color: var(--bg-dark);
    position: relative;
}

.info-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
    letter-spacing: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s;
    position: relative;
    overflow: hidden;
}

.glassmorphism::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s;
}

.glassmorphism:hover::before {
    left: 150%;
}

.glassmorphism:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 20px var(--primary-glow);
    border-color: rgba(212, 175, 55, 0.4);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.glassmorphism h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.glassmorphism p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Card Specifics for Read More */
.card.glassmorphism {
    display: flex;
    flex-direction: column;
}

.card-summary {
    flex-grow: 1;
    margin-bottom: 20px;
}

.read-more-btn.inline-btn {
    background: transparent;
    color: var(--primary-color);
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
    display: inline;
}

.read-more-btn.inline-btn:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-glow);
}

.card-modal-body p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* New Section: Ramanjan */
.ramanjan-section {
    padding: 60px 4%;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.split-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.split-image {
    flex: 1;
    max-width: 350px;
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    height: auto;
    aspect-ratio: 4/5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.split-image:hover img {
    transform: scale(1.05);
}

.split-content {
    flex: 1.5;
    padding-right: 20px;
}

.section-title.left-align {
    text-align: left;
    margin-bottom: 15px;
    font-size: 2rem;
}

.intro {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.split-content p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.highlight-box {
    margin: 15px 0;
    padding: 15px 20px;
    border-left: 3px solid var(--primary-color);
    background: rgba(212, 175, 55, 0.05);
}

.highlight-box p {
    margin-bottom: 0;
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
}

.cta-wrapper {
    margin-top: 20px;
}

.cta-button.mini {
    padding: 12px 25px;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .split-layout {
        flex-direction: column;
        text-align: center;
    }
    .section-title.left-align {
        text-align: center;
    }
    .split-image {
        width: 100%;
        max-width: 500px;
    }
}

/* Footer (Updated to match background better) */
footer {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-darker);
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Custom Language Selector */
.custom-lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.lang-btn:hover {
    transform: scale(1.1);
}

.lang-dropdown {
    position: fixed;
    top: 100px;
    right: 5%;
    background: rgba(4, 4, 6, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    list-style: none;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 999999;
}

@media (max-width: 768px) {
    .lang-dropdown {
        position: fixed;
        top: 100px;
        right: 15px;
        min-width: 150px;
        z-index: 9999;
        transform: translateY(-10px);
    }
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lang-dropdown li:last-child {
    border-bottom: none;
}

.lang-dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s, color 0.3s;
}

.lang-dropdown a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
}

/* Hide original translate elements globally without breaking the script */
#google_translate_element,
.goog-te-banner-frame,
.skiptranslate.goog-te-gadget {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

body {
    top: 0px !important;
}

#goog-gt-tt {
    display: none !important;
}

/* Modal Overlay Section */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content and Form */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
    width: 90%;
    border-radius: 15px;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2); 
    border-radius: 15px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color); 
    border-radius: 15px;
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    background: rgba(15, 15, 20, 0.85);
    position: relative;
    border-radius: 15px;
}

.text-popup {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: #0f0f14;
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-family: 'Cinzel', serif;
}

.equal-title {
    min-height: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-family: 'Cinzel', serif;
    padding-right: 30px; /* space for close button */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.popup-body p {
    color: #e0e0e0;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.popup-body h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.2rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s;
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.yantra-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group label {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.required {
    color: #e74c3c;
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

select.form-control option {
    background: var(--bg-darker);
    color: var(--text-light);
}

.file-input {
    padding: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.file-input::-webkit-file-upload-button {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.file-input::-webkit-file-upload-button:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-radio {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    transition: all 0.3s;
}

.radio-label:hover input ~ .custom-radio {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.radio-label input:checked ~ .custom-radio {
    background-color: transparent;
    border-color: var(--primary-color);
}

.custom-radio:after {
    content: "";
    position: absolute;
    display: none;
    top: 5px;
    left: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-glow);
}

.radio-label input:checked ~ .custom-radio:after {
    display: block;
}

.radio-text {
    font-size: 0.95rem;
    color: var(--text-light);
}

.delivery-notice {
    margin-top: 5px;
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.delivery-notice p {
    color: #e74c3c;
    font-weight: 500;
}

.form-submit {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.submit-button {
    width: 100%;
    justify-content: center;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .glow-text {
        font-size: 2.5rem;
    }
    .nav-links li:not(.custom-lang-selector) {
        display: none;
    }
    .nav-links {
        gap: 1rem;
    }
    .form-row {
        flex-direction: column;
        gap: 25px;
    }
    .form-wrapper {
        padding: 30px 20px;
    }
}

@keyframes floatGlow {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 10px 20px rgba(37, 211, 102, 0), 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: floatGlow 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    animation-play-state: paused;
    transform: scale(1.1) !important;
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.6) !important;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}
