@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&family=Noto+Sans+Telugu:wght@300;400;500;600;700&display=swap');

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

:root {
    --primary-orange: #FF6B35;
    --primary-red: #D32F2F;
    --accent-yellow: #FFC107;
    --accent-green: #4CAF50;
    --deep-purple: #6A1B9A;
    --warm-brown: #8D6E63;
    --cream-white: #FFFEF7;
    --soft-pink: #FCE4EC;
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #D32F2F 100%);
    --gradient-secondary: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
    --gradient-accent: linear-gradient(135deg, #6A1B9A 0%, #8E24AA 100%);
    --shadow-soft: 0 10px 40px rgba(255, 107, 53, 0.15);
    --shadow-hover: 0 20px 60px rgba(255, 107, 53, 0.25);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 20px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--cream-white);
    overflow-x: hidden;
}

.menu-item-en {
    font-family: 'Poppins', sans-serif;
}

.menu-item-te, .menu-folder-te {
    font-family: 'Noto Sans Telugu', 'Poppins', sans-serif;
}

/* Header Styles */
header {
    background: var(--gradient-primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.2);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.8s ease-out;
}

.lang-switcher button {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.lang-switcher button.active,
.lang-switcher button:hover {
    background: white;
    color: var(--primary-orange);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0.5rem 0 1rem 0;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    animation: slideInUp 1s ease-out;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-yellow);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
    border-radius: 2px;
}

nav a:hover {
    color: var(--accent-yellow);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

nav a:hover::after {
    width: 80%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 280px;
    box-shadow: var(--shadow-soft);
    border-radius: var(--border-radius);
    padding: 1rem 0;
    margin-top: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
    animation: dropdownSlide 0.4s ease-out;
}

.dropdown-content a,
.dropdown-content span {
    color: var(--primary-orange);
    padding: 1rem 1.5rem;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.dropdown-content a:hover,
.dropdown-content span:hover {
    background: linear-gradient(90deg, var(--soft-pink) 0%, rgba(255, 107, 53, 0.1) 100%);
    color: var(--primary-red);
    transform: translateX(10px);
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > span {
    font-weight: 600;
    cursor: pointer;
}

.dropdown-submenu .dropdown-content {
    left: 100%;
    top: 0;
    margin-left: 1rem;
    margin-top: 0;
}

/* Hero Section */
#home {
    background: radial-gradient(ellipse at center, #6A1B9A 0%, #8E24AA 35%, #FF6B35 70%, #D32F2F 100%);
    color: white;
    text-align: center;
    padding: 12rem 2rem 8rem;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    border-radius: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#home::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite alternate;
    pointer-events: none;
}

#home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="hero-gradient" cx="50%" cy="50%"><stop offset="0%" style="stop-color:rgba(255,193,7,0.2)"/><stop offset="100%" style="stop-color:rgba(255,193,7,0)"/></radialGradient></defs><circle cx="150" cy="150" r="80" fill="url(%23hero-gradient)" opacity="0.8"><animate attributeName="r" values="80;120;80" dur="4s" repeatCount="indefinite"/></circle><circle cx="850" cy="200" r="100" fill="url(%23hero-gradient)" opacity="0.6"><animate attributeName="r" values="100;140;100" dur="5s" repeatCount="indefinite"/></circle><circle cx="500" cy="800" r="90" fill="url(%23hero-gradient)" opacity="0.7"><animate attributeName="r" values="90;130;90" dur="4.5s" repeatCount="indefinite"/></circle></svg>');
    opacity: 0.4;
    pointer-events: none;
}

#home h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFC107 50%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: slideInUp 1s ease-out 0.5s both, glow 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

#home p {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    animation: slideInUp 1s ease-out 0.7s both;
    background: rgba(255, 255, 255, 0.9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

.hero-cta {
    display: inline-block;
    background: var(--gradient-secondary);
    color: var(--primary-red);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    animation: slideInUp 1s ease-out 0.9s both;
}

.hero-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-hover);
    background: var(--accent-yellow);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.gayatri-image {
    flex-shrink: 0;
    animation: fadeInLeft 1s ease-out;
}

.gayatri-mata-img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
}

.gayatri-mata-img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.hero-text {
    flex: 1;
    text-align: left;
    animation: fadeInRight 1s ease-out;
}

.hero-tagline {
    font-size: 2.2rem !important;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 1.5rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Playfair Display', serif;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sections */
section {
    max-width: 1400px;
    margin: 2.5rem auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

/* Reduce gap between closely related sections */
#menu + #review {
    margin-top: 1.5rem;
}

#review + #inquiry {
    margin-top: 1.5rem;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

section:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-smooth);
    background: linear-gradient(45deg, var(--soft-pink) 0%, var(--cream-white) 100%);
    border-radius: var(--border-radius);
}

.gallery-item:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: var(--shadow-hover);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.2) saturate(1.3);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    opacity: 0.9;
}

/* Menu Matrix Layout */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.menu-tile {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.menu-tile:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-orange);
}

.menu-tile-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.menu-tile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease-in-out;
}

.menu-tile:hover .menu-tile-header::before {
    left: 100%;
}

.menu-tile-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.menu-tile-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(90deg);
    border-color: rgba(255, 255, 255, 0.5);
}

.menu-tile-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.4s ease;
    background: linear-gradient(135deg, var(--cream-white) 0%, #fff 100%);
    opacity: 0;
    padding: 0 1.5rem;
}

.menu-tile.expanded .menu-tile-content {
    max-height: 1000px;
    opacity: 1;
    padding: 1.5rem;
}

.menu-tile.expanded .menu-toggle {
    transform: rotate(45deg);
    background: rgba(255, 255, 255, 0.25);
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
}

.menu-list li {
    background: white;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    border-left: 3px solid var(--accent-yellow);
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.08);
}

.menu-list li::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 50%;
    width: 6px;
    height: 0;
    background: var(--primary-orange);
    transform: translateY(-50%);
    transition: height 0.3s ease;
    border-radius: 0 3px 3px 0;
}

.menu-list li:hover {
    background: linear-gradient(135deg, var(--soft-pink) 0%, #fff 100%);
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.15);
    border-left-color: var(--primary-orange);
}

.menu-list li:hover::before {
    height: 60%;
}

/* Contact and Address */
#contact, #address {
    background: var(--gradient-accent);
    color: white;
}

#contact h2, #address h2 {
    color: white;
}

#contact p, #address p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

#contact a, #address a {
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

#contact a:hover, #address a:hover {
    color: white;
    text-shadow: 0 0 10px var(--accent-yellow);
}

/* Review Section */
#review {
    background: linear-gradient(135deg, var(--cream-white) 0%, var(--soft-pink) 100%);
    text-align: center;
    padding: 2rem;
}

#review h2 {
    color: var(--deep-purple);
    margin-bottom: 1.5rem;
}

#review a:hover {
    transform: scale(1.05);
    transition: var(--transition-smooth);
}

/* Inquiry Section */
#inquiry {
    background: var(--gradient-primary);
    color: white;
}

#inquiry h2 {
    color: white;
}

#inquiry iframe {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

#inquiry iframe:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Footer */
footer {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><path d="M0,100 C300,150 700,50 1000,100 L1000,300 L0,300 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    animation: wave 15s ease-in-out infinite;
}

footer p {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes wave {
    0%, 100% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(-50px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    #home h2 {
        font-size: 2.5rem;
    }
    
    #home p {
        font-size: 1.1rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .gayatri-mata-img {
        width: 250px;
        height: 300px;
    }
    
    .hero-tagline {
        font-size: 1.8rem !important;
    }
    
    section {
        margin: 2rem 1rem;
        padding: 2rem 1.5rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .menu-list {
        grid-template-columns: 1fr;
    }
    
    .menu-section h3::before,
    .menu-section h3::after {
        display: none;
    }
    
    .dropdown-content {
        position: static;
        display: block;
        visibility: visible;
        opacity: 1;
        transform: none;
        margin-top: 0.5rem;
        min-width: auto;
    }
    
    .dropdown-submenu .dropdown-content {
        left: 0;
        margin-left: 1rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    #home {
        padding: 10rem 1rem 6rem;
    }
    
    #home h2 {
        font-size: 2rem;
    }
    
    .hero-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    section {
        margin: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .lang-switcher {
        justify-content: center;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes glow {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(255, 193, 7, 0.6)) drop-shadow(0 0 50px rgba(255, 193, 7, 0.2));
    }
}

/* Ensure menu items are visible by default */
.menu-item-en, .menu-folder-en {
    display: inline !important;
    opacity: 1 !important;
}

.menu-item-te, .menu-folder-te {
    display: none !important;
    opacity: 0 !important;
}

/* Fallback: Ensure menu items are always visible */
.menu-list li {
    opacity: 1 !important;
    transform: translateX(0) !important;
    display: block !important;
    visibility: visible !important;
}

/* Ensure menu sections are visible */
.menu-section {
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

/* Ensure menu section is always visible */
#menu {
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Ensure menu items and sections within menu are visible */
#menu .menu-section,
#menu .menu-list,
#menu .menu-list li {
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

/* Interactive elements */
.interactive-hover {
    position: relative;
    overflow: hidden;
}

.interactive-hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease-out;
    border-radius: 50%;
    pointer-events: none;
}

.interactive-hover:hover::after {
    width: 300px;
    height: 300px;
}