/* CSS Variables - Updated to match sss2.universalnet.in */
:root {
    --primary-color: #8b0000;
    --secondary-color: #a52a2a;
    --accent-color: #ff8c00;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #fffaf0;
    --bg-white: #ffffff;
    --border-color: #e8e8e8;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --sacred-gold: #ffd700;
    --sacred-orange: #ff8c00;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Telugu', 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Language Toggle Button */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.lang-toggle i {
    font-size: 18px;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #128C7E;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideDown 0.4s;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 18px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

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

.logo i {
    font-size: 40px;
    color: var(--sacred-gold);
}

.logo-text h1 {
    font-size: 20px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 12px;
    opacity: 0.9;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation */
.nav {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav a:hover,
.nav a.active {
    background: rgba(255,255,255,0.2);
}

/* News Ticker */
.news-ticker {
    background: var(--bg-light);
    border-bottom: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 45px;
}

.ticker-label {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-items {
    display: flex;
    gap: 50px;
    animation: scroll 30s linear infinite;
    padding: 10px 0;
}

.ticker-items span {
    white-space: nowrap;
    font-size: 14px;
    color: var(--text-dark);
}

.ticker-items span::before {
    content: '•';
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(212, 56, 13, 0.85), rgba(255, 122, 69, 0.85)),
                url('../images/hero-bg.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero-content h2 {
    font-size: 36px;
    font-family: 'Cinzel', serif;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--sacred-gold);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--sacred-gold);
    color: white;
}

.btn-secondary {
    background: transparent;
    border-color: white;
    color: white;
}

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

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    color: var(--secondary-color);
}

/* Quick Info Cards */
.quick-info {
    padding: 60px 20px;
    background: var(--bg-white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.info-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-family: 'Cinzel', serif;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin: 30px 0;
}

.feature-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dark);
}

.feature-list i {
    color: var(--primary-color);
    font-size: 20px;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Featured Poojas */
.featured-poojas {
    padding: 80px 20px;
    background: var(--bg-white);
}

.pooja-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.pooja-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.pooja-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.pooja-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

.pooja-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.pooja-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 40px;
}

/* Panchangam Section */
.panchangam-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.panchangam-section .section-header h2,
.panchangam-section .divider {
    color: white;
}

.panchangam-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

.panchangam-item {
    text-align: center;
}

.panchangam-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.panchangam-item span {
    font-size: 20px;
    font-weight: 600;
}

/* Health Tip */
.health-tip {
    padding: 60px 20px;
    background: var(--bg-white);
}

.health-tip-card {
    background: linear-gradient(135deg, #52c41a, #73d13d);
    color: white;
    padding: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: var(--shadow-lg);
}

.tip-icon {
    font-size: 64px;
    opacity: 0.9;
}

.tip-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.tip-content p {
    font-size: 16px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--sacred-gold);
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--sacred-gold);
}

.footer-col p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-col ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.footer-col a {
    color: #ccc;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--sacred-gold);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--sacred-gold);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: #999;
}

/* Contact Page */
.contact-section {
    padding: 60px 20px;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.contact-form-container h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-family: 'Cinzel', serif;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 25px;
    }
}
