/* ===== CSS Variables ===== */
:root {
    --primary-color: #1a365d;
    --primary-light: #2c5282;
    --secondary-color: #c9a227;
    --accent-color: #e53e3e;
    --text-color: #2d3748;
    --text-light: #718096;
    --background: #ffffff;
    --background-alt: #f7fafc;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
}

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

a:hover {
    color: var(--secondary-color);
}

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

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(26, 54, 93, 0.98);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo .cross {
    font-size: 2rem;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    background-image: url('images/church-exterior.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(44, 82, 130, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 20px;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .telugu {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero .tagline {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== Welcome Section ===== */
.welcome {
    padding: 100px 0;
    text-align: center;
    background: var(--background-alt);
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}

.welcome h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.welcome .verse {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-light);
    margin-bottom: 5px;
}

.welcome .verse-ref {
    color: var(--text-light);
    margin-bottom: 30px;
}

.welcome p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
}

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

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.timeline-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
}

.founder-tribute {
    margin-top: 30px;
    padding: 20px;
    background: var(--background-alt);
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 10px 10px 0;
}

/* ===== Beliefs Section ===== */
.beliefs {
    padding: 100px 0;
    background: var(--primary-color);
    color: #fff;
}

.beliefs h2 {
    color: #fff;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.belief-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: var(--transition);
}

.belief-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.belief-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.belief-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.belief-card p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* ===== Services Section ===== */
.services {
    padding: 100px 0;
    background: var(--background-alt);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
}

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

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-time {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.open-hours {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 100px 0;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.testimonial-card {
    background: var(--background-alt);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.stars {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
}

.author {
    color: var(--text-light);
    font-weight: 600;
}

.rating-summary {
    text-align: center;
    padding: 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.rating-stars {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 0;
    background: var(--background-alt);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

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

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 600;
}

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

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.google {
    background: #ea4335;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    display: block;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-logo .cross {
    font-size: 2rem;
    color: var(--secondary-color);
}

.footer-verse {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
    font-style: italic;
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .beliefs-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .telugu {
        font-size: 1.2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 480px) {
    .beliefs-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    .rating-summary {
        flex-direction: column;
        gap: 10px;
    }
}
