/* Global Styles */
:root {
    --gold: #C69C6D;
    --gold-hover: #b08d55;
    --dark-overlay: rgba(0, 0, 0, 0.75);
    --text-light: #e0e0e0;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--white);
    overflow-x: hidden;
    background-color: #0f0f0f;
    /* Fallback */
    /* Mobile default: allow scroll */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('assets/background.jpeg');
    /* Using user provided JPEG */
    background-size: cover;
    background-position: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(198, 156, 109, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}


/* Header */
header {
    padding: 2vh 0;
    /* Responsive padding */
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    width: auto;
}

.logo-text h1 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.logo-text span {
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--text-light);
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links>li {
    position: relative;
    /* For dropdown positioning */
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--gold);
    /* Ensuring gold color for nav as per image */
    text-transform: uppercase;
    padding: 10px 0;
    display: block;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links i {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Dropdown Styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-top: 2px solid var(--gold);
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 12px 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-light);
    text-transform: capitalize;
    /* Submenu items usually sentence case/capitalize */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu a:hover {
    background-color: rgba(198, 156, 109, 0.1);
    color: var(--gold);
    padding-left: 25px;
    /* Slight movement on hover */
}

.mobile-menu-icon {
    display: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    /* Main adjustment for full height layout */
    flex-grow: 1;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    padding: 0;
    /* Remove fixed padding to allow flex to center */
    overflow: hidden;
    /* Prevent spillover */
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    /* Fill the flex area */
}

.hero-left {
    flex: 1;
    max-width: 650px;
    padding-right: 20px;
}

.subtitle-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2vh;
}

.line {
    width: 40px;
    height: 2px;
    background-color: var(--gold);
}

.subtitle {
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 8vh;
    /* Scale with height */
    line-height: 1.1;
    color: var(--white);
    /* White color for Arulmigu and Temple */
    margin-bottom: 1vh;
    font-weight: 400;
}

.highlight-gold {
    color: var(--gold);
    /* Gold color for Murugan */
    font-weight: 400;
    /* Match main title weight */
}



.tamil-title {
    font-family: var(--font-heading);
    /* Or a specific Tamil font if available */
    color: var(--gold);
    font-size: 4vh;
    /* Scale with height */
    margin-bottom: 3vh;
    line-height: 1.3;
}

.description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 4vh;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 1.5vh 35px;
    /* Scale padding */
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-gold {
    background: linear-gradient(135deg, #b08d55 0%, #8a6a38 100%);
    /* Gold gradient */
    color: var(--white);
    box-shadow: 0 10px 20px rgba(198, 156, 109, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(198, 156, 109, 0.4);
}

.btn-white {
    background-color: var(--white);
    color: #1a100e;
}

.btn-white:hover {
    transform: translateY(-3px);
    background-color: #f0f0f0;
}

/* Hero Right (Image) */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    position: relative;
}

.image-wrapper {
    position: relative;
    max-width: 500px;
    width: 100%;
    max-height: 70vh;
    /* Constrain image height */
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image {
    width: auto;
    /* Allow width to adjust */
    max-width: 100%;
    max-height: 70vh;
    /* Constrain image height so it doesn't overflow */
    object-fit: contain;
    border-radius: 4px;
    border-radius: 4px;
    display: block;
    position: relative;
    z-index: 2;
}

/* Footer Strip */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2vh 0;
    /* Responsive padding */
    background-color: rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 100;
    flex-shrink: 0;
    /* Don't shrink footer */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gold);
}

.location {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icons {
    display: flex;
    gap: 15px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(198, 156, 109, 0.3);
}

.contact-icons a {
    color: var(--gold);
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-icons a:hover {
    transform: translateY(-2px);
    color: var(--white);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links a {
    color: var(--gold);
    font-size: 1.1rem;
}

.copyright {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(198, 156, 109, 0.3);
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.7rem;
}

/* Desktop Specific: Enforce No Scroll */
@media (min-width: 1025px) {

    body,
    html {
        height: 100%;
        overflow: hidden;
        /* Strict no scroll on desktop */
    }
}

/* Responsive */
@media (max-width: 1024px) {

    /* Mobile/Tablet: Auto height, allow scroll */
    body {
        height: auto;
        overflow-y: auto;
    }

    .hero-section {
        min-height: auto;
        /* Remove fixed height constraint */
        padding: 50px 0;
    }

    .image-wrapper {
        max-height: none;
    }

    .hero-image {
        max-height: none;
        width: 100%;
    }

    .main-title {
        font-size: 4rem;
        /* Fixed units for mobile */
    }

    .tamil-title {
        font-size: 2.5rem;
    }

    .hero-right {
        justify-content: center;
        margin-top: 50px;
    }

    .hero-content {
        flex-direction: column;
        justify-content: center;
    }

    .hero-left {
        text-align: center;
        max-width: 100%;
        padding-right: 0;
    }

    .subtitle-wrapper {
        justify-content: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .copyright {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        display: block;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 1rem;
    }

    .logo {
        height: 50px;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background-color: #1a100e;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-icon {
        display: block;
        z-index: 1000;
    }

    .main-title {
        font-size: 3rem;
    }

    .tamil-title {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}