:root {
    --primary-color: #d35400; /* Deep Saffron */
    --secondary-color: #f39c12; /* Gold */
    --dark-color: #2c3e50;
    --text-color: #333;
    --light-bg: #fdfbf7;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-color);
}

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

/* Typography */
.telugu-text {
    font-size: 0.95rem;
    color: #555;
    margin-top: 10px;
    font-style: italic;
    border-left: 3px solid var(--secondary-color);
    padding-left: 10px;
}

/* Navigation */
.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo, .footer-logo {
    width: 40px;
    height: 40px;
    animation: spin 20s linear infinite;
}

.logo h1 {
    font-size: 1.8rem;
    top: 0;
    z-index: 1000;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    font-size: 1rem;
    color: var(--secondary-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
}

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

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color), #e67e22);
    color: var(--white) !important;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 3s infinite;
    transform: skewX(-20deg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 84, 0, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(44, 62, 80, 0.8));
    z-index: -1;
}

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

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--secondary-color);
    animation: blink 0.7s infinite;
    margin-left: 5px;
    font-weight: 300;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.discount-badge {
    display: inline-block;
    background: rgba(243, 156, 18, 0.9);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    border: 1px solid rgba(255,255,255,0.3);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

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

.about-text h2 {
    color: var(--primary-color);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.highlight {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    animation: floatCard 6s infinite ease-in-out;
}

.stat-card:nth-child(2) {
    animation-delay: 2s;
}

.stat-card:nth-child(3) {
    animation-delay: 4s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card h4 {
    font-size: 2rem;
    color: var(--dark-color);
}

/* Panchangam Section */
.panchangam {
    padding: 80px 0;
    background: url('images/pooja_bg.png') no-repeat center center/cover;
    position: relative;
    color: var(--white);
}

.panchangam::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85); /* Dark overlay */
    backdrop-filter: blur(5px);
}

.panchangam .container {
    position: relative;
    z-index: 2;
}

.panchangam .section-title, .panchangam .section-subtitle {
    color: var(--white);
}

.panchangam-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(15px);
    transition: transform 0.3s;
}

.panchangam-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(243, 156, 18, 0.2);
}

.panchangam-loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
}

.panchangam-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.panchangam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.p-item {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.p-item:hover {
    background: rgba(243, 156, 18, 0.1);
    border-color: rgba(243, 156, 18, 0.3);
    transform: translateY(-3px);
}

.p-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.p-item span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.p-item strong {
    font-size: 1.1rem;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--light-bg);
}

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

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 60px;
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.1s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card.has-bg {
    background-size: cover;
    background-position: center;
    transition: background-size 0.5s ease-in-out;
}

.service-card.has-bg:hover {
    background-size: 110%;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Ripple Effect */
span.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 600ms linear;
    background-color: rgba(255, 255, 255, 0.7);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

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

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

@keyframes floatAura {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-10px) scale(1.1); opacity: 0.8; }
}

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

@keyframes floatIcon {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

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

@keyframes swingIcon {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-15deg); }
    100% { transform: rotate(0deg); }
}

@keyframes glowEffect {
    0% { box-shadow: 0 0 5px rgba(243, 156, 18, 0.2); }
    50% { box-shadow: 0 0 20px rgba(243, 156, 18, 0.8); }
    100% { box-shadow: 0 0 5px rgba(243, 156, 18, 0.2); }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.pulse-icon {
    animation: pulse 2s infinite ease-in-out;
    display: inline-block;
}

.float-icon {
    animation: floatIcon 3s infinite ease-in-out;
    display: inline-block;
}

.spin-icon {
    animation: spinIcon 10s infinite linear;
    display: inline-block;
}

.swing-icon {
    animation: swingIcon 3s infinite ease-in-out;
    display: inline-block;
}

.glow-effect {
    animation: glowEffect 2s infinite;
}

.fire-animation {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,165,0,0.4) 0%, rgba(255,0,0,0) 70%);
    border-radius: 50%;
    animation: flicker 2s infinite ease-in-out;
    z-index: -1;
}

.aura-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    animation: floatAura 4s infinite ease-in-out;
    z-index: -1;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(-45deg, var(--dark-color), #34495e, #1a252f, #2c3e50);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: rgba(255,255,255,0.05);
    padding: 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-info h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 40px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.detail-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input, 
.form-group textarea,
.form-group select {
    padding: 15px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.9);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.5);
    background: var(--white);
}

.btn-submit {
    background: #25D366; /* WhatsApp Green */
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #1a252f;
    color: #bdc3c7;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-logo h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Fade in for Hero */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}
.delay-1 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; transition-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; transition-delay: 0.9s; }

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

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real app, add a hamburger menu */
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-wrapper {
        padding: 30px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}
