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

body {
    font-family: 'Quicksand', verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, aliceblue, lavender);
    font-size: 13px;
}

/* Tamil font styling */
.tamil {
    font-family: 'Noto Sans Tamil', Tamil, serif;
    font-size: 11px;
}

/* Hero Section */
.hero-section {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(170deg, #121249 5%, #00000000 95%);
    z-index: 2;
}

.hero-content {
    z-index: 3;
    max-width: 800px;
    animation: fadeInUp 2s ease-out;
}

.hero-title {
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1em;
}

.hero-title.tamil {
    font-size: 3.5em;
}

.hero-subtitle {
    font-size: 0.8em;
    background: rgb(53 67 96 / 57%);
    border-radius: 5px;
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid rgb(63 64 109 / 22%);
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 7px 30px;
    background: linear-gradient(45deg, #0D47A1, #009688, #3F51B5);
    background-size: 300% 300%;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: gradientShift 2s ease infinite;
    text-align: center;
}

.featured-festival-btn {
    background: linear-gradient(135deg, #ffeb3b 0%, #fbc02d 100%) !important;
    color: #1a237e !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 235, 59, 0.4) !important;
    text-decoration: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

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

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgb(34 34 85 / 79%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-left: auto;
    margin-right: auto;
}

.nav-links li {
    padding: 0 5px;
    list-style: none;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    color: #FFD700;
}



.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: #FFD700;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    position: relative;
    transition: background 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: white;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

.hamburger-icon.open {
    background: transparent;
}

.hamburger-icon.open::before {
    transform: rotate(45deg);
    top: 0;
}

.hamburger-icon.open::after {
    transform: rotate(-45deg);
    top: 0;
}

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

/* Language Switch */
.language-switch {
    background: rgb(255 255 255 / 14%);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2px 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

.language-btn {
    padding: 3px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.8em;
    transition: all 0.3s ease;
    color: white;
}

.language-btn.active {
    background: linear-gradient(45deg, #3F51B5, #009688);
    color: white;
    box-shadow: 0 3px 10px rgba(63, 81, 181, 0.3);
}

.language-btn:hover {
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section-title {
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
}

.section-title.tamil {
    font-size: 2.2em;
}

.section-title-legacy {
    font-size: 0.6em;
    font-weight: bold;
    background: #7452ab38;
    color: #4a3473;
    padding: 4px 7px;
    border-radius: 3px;
    line-height: 1em;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4em;
    margin-bottom: 5em;
    margin-top: 6em;
}

.about-text {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
}

.about-text p {
    margin-bottom: 1.5em;
}

.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.highlight-box h3 {
    font-size: 1.5em;
    margin-bottom: 1em;
    font-weight: 600;
}

.highlight {
    margin-top: 40px;
}

/* Attractions */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.attraction-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.attraction-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.attraction-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #3F51B5;
}

.attraction-title.tamil {
    font-size: 2em;
}

.attraction-description {
    color: #666;
    line-height: 1.8;
}

/* Temples Section */
.temples-section {
    padding: 40px 40px;
    text-align: center;
}

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

.temple-card {
    border-radius: 0px;
    padding: 35px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: left;
    color: midnightblue;
    border-left: 5px solid #1919701f;
}

.temple-card:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #311B92 0%, #9E9E9E 100%);
    padding: 60px 40px;
    color: white;
    text-align: center;
    margin-top: 50px;
}

.maps-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 10px 30px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: inline-block;
    vertical-align: middle;
    max-width: calc(100% - 50px);
    width: 500px;
}

.maps-container h3 {
    color: #2F4F4F;
    font-size: 2em;
    margin-bottom: 20px;
}

.map-embed {
    width: 100%;
    height: 400px;
    border: none;
}

.contact-info {
    display: inline-block;
    vertical-align: middle;
    margin-right: 50px;
    border-radius: 20px;
    overflow: hidden;
    max-width: calc(100% - 50px);
    background: linear-gradient(45deg, rgb(0 0 0 / 33%), rgb(255 255 255 / 9%));
    text-align: left;
    line-height: 20px;
}

.contact-item {
    padding: 20px;
    backdrop-filter: blur(10px);
    max-width: 400px;
}

.contact-item h4 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFD700;
}

.email-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: #FFF;
    text-shadow: 0 0 10px #FFD700;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    padding: 40px 0;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-bar {
        padding: 10px 0;
    }

    .nav-controls {
        order: 2;
        gap: 8px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .logo {
        order: 1;
        font-size: 1.1em;
        max-width: 50%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .language-switch {
        background: rgba(255, 255, 255, 0.1);
        padding: 2px 4px;
        border-radius: 6px;
    }

    .language-btn {
        padding: 2px 8px;
        font-size: 0.7em;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1a1a4b;
        padding: 20px 0;
        margin: 0;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.show {
        display: block;
    }

    .nav-links .content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .content li {
        padding: 10px 0;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-title.tamil {
        font-size: 2.2em;
    }

    .attractions-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2em;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .map-embed {
        height: 300px;
    }

    .cta-button {
        padding: 8px 15px;
        font-size: 0.9em;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center !important;
        gap: 12px !important;
    }

    .featured-festival-btn {
        font-size: 0.85em !important;
        padding: 10px 15px !important;
        line-height: 1.2;
    }
}