/* AstroVeda Professional Dark Theme - Inspired by Reference Design */

/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Root CSS Variables - Professional Dark Theme */
:root {
    --primary-dark: #000000;           /* Pure black backgrounds */
    --secondary-dark: #1a1a1a;        /* Slightly lighter black */
    --tertiary-dark: #2a2a2a;         /* Card backgrounds */
    --accent-gold: #FFD700;           /* Gold accents */
    --accent-gold-hover: #FFC107;     /* Gold hover */
    --text-white: #ffffff;            /* Primary white text */
    --text-gray: #e0e0e0;            /* Secondary gray text */
    --text-light-gray: #b0b0b0;      /* Light gray text */
    --border-color: #333333;         /* Border color */
    --success-color: #28a745;        /* Success green */
    --danger-color: #dc3545;         /* Error red */
    --warning-color: #ffc107;        /* Warning yellow */
}

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-white);
    line-height: 1.6;
    font-size: 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.25rem; font-weight: 700; }
h2 { font-size: 2.25rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 500; }
h5 { font-size: 1rem; font-weight: 500; }
h6 { font-size: 0.875rem; font-weight: 500; }

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-weight: 400;
}

/* Navigation Styles */
.navbar {
    background-color: var(--primary-dark) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-gold) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--text-white) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-gold) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-gold);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
    left: 10%;
}

.navbar-toggler {
    border-color: var(--accent-gold);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 215, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Language Dropdown Styles */
.dropdown-menu {
    background-color: var(--tertiary-dark) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    margin-top: 10px !important;
    padding: 0.5rem 0 !important;
}

.dropdown-item {
    color: var(--text-white) !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    background: transparent !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--accent-gold) !important;
    background-color: var(--secondary-dark) !important;
    transform: translateX(5px) !important;
}

.dropdown-divider {
    border-color: var(--border-color) !important;
    margin: 0.5rem 0 !important;
}

.nav-item.dropdown .nav-link.dropdown-toggle::after {
    display: none !important;
}

.nav-item.dropdown .nav-link {
    display: flex !important;
    align-items: center !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23333333" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-light-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
    border: none;
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: var(--primary-dark);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline-primary:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--primary-dark);
}

/* Section Styles */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-dark {
    background-color: var(--secondary-dark);
}

.section-title {
    font-size: 2.75rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.card {
    background-color: var(--tertiary-dark);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-gold);
}

.card-header {
    background-color: var(--accent-gold);
    border-bottom: none;
    padding: 1.5rem;
}

.card-header h5, .card-header h6 {
    color: var(--primary-dark);
    margin-bottom: 0;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
    color: var(--text-gray);
}

.card-title {
    color: var(--text-white);
    margin-bottom: 1rem;
}

/* Service Cards */
.service-card {
    background: var(--tertiary-dark);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--primary-dark);
}

.service-title {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-description {
    color: var(--text-gray);
    line-height: 1.7;
}

/* FAQ Styles */
.faq-item {
    background: var(--tertiary-dark);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    background: transparent;
    border: none;
    width: 100%;
    padding: 1.5rem 2rem;
    text-align: left;
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: rgba(255, 215, 0, 0.1);
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Testimonials */
.testimonial-card {
    background: var(--tertiary-dark);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.testimonial-author {
    color: var(--accent-gold);
    font-weight: 600;
}

.testimonial-role {
    color: var(--text-light-gray);
    font-size: 0.85rem;
}

/* Forms */
.form-control {
    background-color: var(--tertiary-dark);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: var(--tertiary-dark);
    border-color: var(--accent-gold);
    color: var(--text-white);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.form-control::placeholder {
    color: var(--text-light-gray);
}

.form-label {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-select {
    background-color: var(--tertiary-dark);
    border: 1px solid var(--border-color);
    color: var(--text-white);
}

.form-check-input {
    background-color: var(--tertiary-dark);
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.form-check-label {
    color: var(--text-white);
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-title {
    color: var(--accent-gold);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    color: var(--text-light-gray);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 2rem 1rem;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 1rem;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

/* Utility Classes */
.text-gold {
    color: var(--accent-gold);
}

.bg-dark-secondary {
    background-color: var(--secondary-dark);
}

.bg-dark-tertiary {
    background-color: var(--tertiary-dark);
}

.border-gold {
    border-color: var(--accent-gold) !important;
}

.shadow-gold {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Success/Error Messages */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid var(--warning-color);
    color: var(--warning-color);
}

/* Enhanced Panchangam Styles */
.festival-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #F39C12 !important;
    transition: all 0.3s ease;
}

.festival-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
    background: rgba(243, 156, 18, 0.1);
}

.border-left-danger {
    border-left: 4px solid #dc3545 !important;
}

/* Enhanced Card Headers */
.card-header.bg-success {
    background-color: #198754 !important;
}

.card-header.bg-primary {
    background-color: #0d6efd !important;
}

.card-header.bg-warning {
    background-color: #ffc107 !important;
}

.card-header.bg-info {
    background-color: #0dcaf0 !important;
}

.card-header.bg-danger {
    background-color: #dc3545 !important;
}

.card-header.bg-secondary {
    background-color: #6c757d !important;
}