/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary-red: #C62828;
    --dark-red: #8E0000;
    --light-red: #FFCDD2;
    --primary-gold: #C62828;
    --dark-gold: #FFC107;
    --light-gold: #FFF8E1;
    --white: #FFFFFF;
    --off-white: #FFF9F5;
    --cream: #FFFBF0;
    --text-dark: #2D2D2D;
    --text-medium: #555555;
    --text-light: #777777;
    --border-light: #E0E0E0;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.3s ease;
    --font-main: 'Noto Sans Tamil', 'Segoe UI', Tahoma, sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 0;
    background: var(--white);
    border-radius: 30px;
    padding: 4px;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--primary-red);
}

.lang-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 25px;
    transition: var(--transition-smooth);
    color: var(--text-dark);
}

.lang-btn:hover {
    background: var(--light-red);
}

.lang-btn.active {
    background: var(--primary-red);
    color: var(--white);
}

/* ============================================
   HEADER SECTION
   ============================================ */
.header-section {
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
    padding: 20px;
    border-bottom: 3px solid var(--primary-gold);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.siddhar-image {
    width: 160px;
    flex-shrink: 0;
    align-self: center;
}

.siddhar-image img {
    width: 100%;
    border-radius: 12px;
    border: 4px solid var(--primary-gold);
    box-shadow: 0 8px 30px rgba(198, 40, 40, 0.2), 0 0 20px rgba(255, 215, 0, 0.3);
}

.header-content {
    flex: 1;
    display: flex;
    gap: 30px;
}

.header-column {
    flex: 1;
    text-align: center;
    padding: 10px 20px;
    border-radius: 12px;
}

.tamil-header {
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-left: 4px solid var(--primary-red);
}

.english-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(198, 40, 40, 0.05) 100%);
    border-left: 4px solid var(--primary-gold);
}

.goddess-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.goddess-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.english-title {
    color: var(--dark-red);
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 10px;
    line-height: 1.4;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-red);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.phone-link:hover {
    background: var(--dark-red);
    transform: scale(1.05);
}

.phone-icon {
    font-size: 1rem;
}

.locations {
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 8px;
}

.tagline {
    font-size: 0.8rem;
    color: var(--text-medium);
    font-style: italic;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-container {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.two-column-layout {
    display: flex;
    gap: 40px;
}

.column {
    flex: 1;
    padding: 20px;
}

.tamil-column {
    border-right: 2px dashed var(--light-red);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-gold);
}

.title-icon {
    font-size: 1.5rem;
}

/* ============================================
   SERVICES LIST
   ============================================ */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(90deg, var(--light-gold) 0%, var(--white) 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.service-link:hover .service-item,
.service-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-soft);
    border-left-color: var(--primary-gold);
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--light-gold) 100%);
}

.service-icon {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   WHY US SECTION
   ============================================ */
.why-section .section-container {
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.why-title {
    color: var(--dark-red);
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-dark);
    padding: 10px 0;
}

.bullet {
    color: var(--primary-red);
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

/* ============================================
   WHATSAPP CTA SECTION
   ============================================ */
.whatsapp-section {
    background: linear-gradient(90deg, var(--light-gold) 0%, #f5222d  50%, var(--light-gold) 100%);
    padding: 25px 20px;
    border-radius: 16px;
    margin: 30px auto;
    max-width: 1200px;
    box-shadow: var(--shadow-medium);
}

.whatsapp-container {
    max-width: 100%;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-red);
}

.cta-text .highlight {
    color: #25D366;
    font-weight: 700;
    text-transform: uppercase;
}

.pointer {
    font-size: 1.3rem;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: #25D366;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 100%;
    height: 100%;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-red);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-red);
    transform: translateY(-5px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .siddhar-image {
        width: 100px;
        order: 0;
    }

    .left-siddhar {
        order: 1;
    }

    .header-content {
        order: 2;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .right-siddhar {
        order: 3;
    }

    .header-column {
        border-left: none !important;
        border-bottom: 3px solid var(--primary-gold);
        padding-bottom: 20px;
    }

    .tamil-header {
        border-right: none;
    }

    .two-column-layout {
        flex-direction: column;
        gap: 30px;
    }

    .tamil-column {
        border-right: none;
        border-bottom: 2px dashed var(--light-red);
        padding-bottom: 30px;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cta-text {
        font-size: 1rem;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .header-container {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .siddhar-image {
        width: 120px;
    }
    
    .left-siddhar, .right-siddhar {
        order: unset;
    }
    
    .header-content {
        order: unset;
        width: auto;
    }
}

@media (max-width: 768px) {
    .language-toggle {
        top: 10px;
        right: 10px;
    }

    .lang-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .main-title {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .service-item {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .service-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .section-container {
        padding: 20px 15px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .siddhar-image {
        width: 80px;
    }

    .left-siddhar {
        order: 1;
    }

    .header-content {
        order: 3;
        width: 100%;
    }

    .right-siddhar {
        order: 2;
    }
}

@media (max-width: 480px) {
    .language-toggle {
        position: relative;
        top: 0;
        right: 0;
        margin: 10px auto;
        width: fit-content;
    }

    .siddhar-image {
        width: 70px;
    }

    .main-title {
        font-size: 1.2rem;
    }

    .goddess-icon {
        width: 60px;
        height: 60px;
    }

    .phone-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .whatsapp-btn {
        width: 60px;
        height: 60px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

/* Smooth scroll for all anchor links */
html {
    scroll-behavior: smooth;
}
