/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu Sans', sans-serif;
    line-height: 1.6;
    color: #2c1810;
    background: #ffffff;
    position: relative;
    overflow-x: hidden;
    /* Prevent horizontal scroll on mobile */
    max-width: 100vw;
    width: 100%;
    /* Improve touch scrolling */
    -webkit-overflow-scrolling: touch;
    /* Prevent text selection on drag */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Prevent horizontal movement */
    touch-action: pan-y;
}

/* Allow text selection in content areas */
p, h1, h2, h3, h4, h5, h6, span, div {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Root container to prevent overflow */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Prevent any element from causing horizontal scroll */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Traditional Background with Subtle Decorations */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(230, 184, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(204, 41, 54, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(210, 180, 140, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(230, 184, 0, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(204, 41, 54, 0.04) 0%, transparent 50%),
        #ffffff;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { 
        background: 
            url('images/bg.jpg') center/cover no-repeat,
            radial-gradient(circle at 20% 80%, rgba(204, 41, 54, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(230, 184, 0, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(210, 180, 140, 0.03) 0%, transparent 50%);
    }
    33% { 
        background: 
            url('images/bg.jpg') center/cover no-repeat,
            radial-gradient(circle at 60% 20%, rgba(204, 41, 54, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 20% 60%, rgba(230, 184, 0, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(210, 180, 140, 0.03) 0%, transparent 50%);
    }
    66% { 
        background: 
            url('images/bg.jpg') center/cover no-repeat,
            radial-gradient(circle at 80% 60%, rgba(204, 41, 54, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, rgba(230, 184, 0, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 20% 20%, rgba(210, 180, 140, 0.03) 0%, transparent 50%);
    }
}

/* Traditional Floating Elements - Lightweight */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    opacity: 0.08;
    font-size: 20px;
    z-index: -10;
    animation: float 20s infinite linear;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
    color: var(--turmeric-primary);
}

.floating-element:nth-child(2) {
    top: 20%;
    left: 80%;
    animation-delay: 5s;
    animation-duration: 30s;
    color: var(--kunkuma-primary);
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 10s;
    animation-duration: 22s;
    color: var(--sandalwood);
}

.floating-element:nth-child(4) {
    bottom: 10%;
    left: 70%;
    animation-delay: 15s;
    animation-duration: 28s;
    color: var(--turmeric-primary);
}

.floating-element:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 8s;
    animation-duration: 35s;
    color: var(--kunkuma-primary);
}

.floating-element:nth-child(6) {
    top: 30%;
    left: 90%;
    animation-delay: 12s;
    animation-duration: 26s;
    color: var(--sandalwood);
}


.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.floating-element:nth-child(2) {
    top: 20%;
    left: 15%;
    animation-delay: 3s;
    animation-duration: 18s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 6s;
    animation-duration: 22s;
}

.floating-element:nth-child(4) {
    bottom: 10%;
    left: 25%;
    animation-delay: 9s;
    animation-duration: 16s;
}

.floating-element:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 12s;
    animation-duration: 25s;
}

.floating-element:nth-child(6) {
    top: 30%;
    left: 10%;
    animation-delay: 15s;
    animation-duration: 19s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.04;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.04;
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.04;
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
        opacity: 0.04;
    }
    100% {
        transform: translateY(0px) rotate(360deg);
        opacity: 0.04;
    }
}

/* Traditional Kolam Pattern */
.kolam-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, var(--kunkuma-primary) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, var(--turmeric-primary) 2px, transparent 2px),
        radial-gradient(circle at 50% 10%, var(--sandalwood) 2px, transparent 2px),
        radial-gradient(circle at 10% 50%, var(--kunkuma-primary) 2px, transparent 2px),
        radial-gradient(circle at 90% 30%, var(--turmeric-primary) 2px, transparent 2px);
    background-size: 120px 120px, 140px 140px, 100px 100px, 110px 110px, 130px 130px;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

@keyframes kolamMove {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-10px, -10px); }
    50% { transform: translate(-20px, 0); }
    75% { transform: translate(-10px, 10px); }
    100% { transform: translate(0, 0); }
}

/* Traditional Border Decoration */
.traditional-border {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    background: linear-gradient(45deg, var(--turmeric-primary), var(--kunkuma-primary), var(--sandalwood)) border-box;
    background-clip: border-box;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes borderGlow {
    0%, 100% { 
        border-color: var(--kunkuma-primary);
        box-shadow: 0 0 20px rgba(204, 41, 54, 0.3);
    }
    33% { 
        border-color: var(--turmeric-primary);
        box-shadow: 0 0 20px rgba(230, 184, 0, 0.3);
    }
    66% { 
        border-color: var(--sandalwood);
        box-shadow: 0 0 20px rgba(210, 180, 140, 0.3);
    }
}

/* Floating Petals - Disabled for performance */
.petal {
    display: none;
}

.petal:nth-child(odd) {
    background: var(--turmeric-primary);
    animation-duration: 10s;
    box-shadow: 0 0 8px rgba(230, 184, 0, 0.6);
}

.petal:nth-child(3n) {
    background: var(--sandalwood);
    animation-duration: 12s;
    box-shadow: 0 0 8px rgba(210, 180, 140, 0.6);
}

.petal:nth-child(4n) {
    background: #ff6b9d;
    animation-duration: 9s;
    box-shadow: 0 0 8px rgba(255, 107, 157, 0.6);
}

.petal:nth-child(5n) {
    background: #ff9f43;
    animation-duration: 11s;
    box-shadow: 0 0 8px rgba(255, 159, 67, 0.6);
}

@keyframes petalFall {
    0% {
        transform: translateY(-100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    5% {
        opacity: 0.04;
        transform: translateY(-90vh) rotate(45deg) scale(0.8);
    }
    15% {
        opacity: 0.04;
        transform: translateY(-70vh) rotate(90deg) scale(1);
    }
    85% {
        opacity: 0.04;
        transform: translateY(70vh) rotate(270deg) scale(1);
    }
    95% {
        opacity: 0.04;
        transform: translateY(90vh) rotate(315deg) scale(0.8);
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* Additional Flower Types - Disabled for performance */
.flower-petal {
    display: none;
}

.flower-petal:nth-child(odd) {
    background: radial-gradient(circle, var(--turmeric-primary) 30%, transparent 70%);
    animation-duration: 16s;
    box-shadow: 0 0 10px rgba(230, 184, 0, 0.7);
}

.flower-petal:nth-child(3n) {
    background: radial-gradient(circle, #ff6b9d 30%, transparent 70%);
    animation-duration: 18s;
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.7);
}

@keyframes flowerFall {
    0% {
        transform: translateY(-100vh) rotate(0deg) scale(0.3);
        opacity: 0;
    }
    10% {
        opacity: 0.04;
        transform: translateY(-80vh) rotate(60deg) scale(0.6);
    }
    20% {
        opacity: 0.04;
        transform: translateY(-60vh) rotate(120deg) scale(0.8);
    }
    80% {
        opacity: 0.04;
        transform: translateY(60vh) rotate(240deg) scale(0.8);
    }
    90% {
        opacity: 0.04;
        transform: translateY(80vh) rotate(300deg) scale(0.6);
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.3);
        opacity: 0;
    }
}

/* Large Flower Petals - Disabled for performance */
.large-petal {
    display: none;
}

.large-petal:nth-child(odd) {
    background: linear-gradient(45deg, var(--turmeric-primary), #ff6b9d);
    animation-duration: 22s;
    box-shadow: 0 0 12px rgba(230, 184, 0, 0.6);
}

@keyframes largePetalFall {
    0% {
        transform: translateY(-100vh) rotate(0deg) scale(0.2);
        opacity: 0;
    }
    15% {
        opacity: 0.04;
        transform: translateY(-70vh) rotate(90deg) scale(0.6);
    }
    85% {
        opacity: 0.04;
        transform: translateY(70vh) rotate(270deg) scale(0.6);
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.2);
        opacity: 0;
    }
}

/* Traditional Corner Decorations */
.traditional-corner {
    position: fixed;
    width: 60px;
    height: 60px;
    border: 3px solid var(--turmeric-primary);
    border-radius: 50%;
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}

.traditional-corner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 1px solid var(--kunkuma-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.traditional-corner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    border: 1px solid var(--sandalwood);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Position corner decorations */
.traditional-corner:nth-child(1) {
    top: 20px;
    left: 20px;
}

.traditional-corner:nth-child(2) {
    top: 20px;
    right: 20px;
}

.traditional-corner:nth-child(3) {
    bottom: 20px;
    left: 20px;
}

.traditional-corner:nth-child(4) {
    bottom: 20px;
    right: 20px;
}

.mandala-element::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 1px solid var(--turmeric-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.mandala-element::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 1px solid var(--sandalwood);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@keyframes mandalaRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Traditional Lotus Animation - Disabled for performance */
.lotus {
    display: none;
}

@keyframes lotusFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 0.3;
    }
}

/* Traditional Bell Animation - Disabled for performance */
.bell {
    display: none;
}

@keyframes bellSwing {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* Custom Font */
@font-face {
    font-family: 'Tw Cen MT';
    src: url('Tw Cen MT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* South Indian Traditional Color Palette */
:root {
    --turmeric-primary: #e6b800;
    --turmeric-light: #f4d03f;
    --kunkuma-primary: #cc2936;
    --kunkuma-dark: #a93226;
    --sandalwood: #d2b48c;
    --sandalwood-light: #e6d3a3;
    --cream: #fefcf8;
    --warm-brown: #8b4513;
    --dark-brown: #2c1810;
    --white: #ffffff;
}

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

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

/* Reduce animations on mobile for better performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile optimization class - Keep decorations but reduce them */
.mobile-optimized .floating-elements {
    opacity: 0.3 !important;
}

.mobile-optimized .traditional-corner {
    opacity: 0.1 !important;
}

.mobile-optimized .kolam-pattern {
    opacity: 0.03 !important;
}

.mobile-optimized .traditional-border {
    opacity: 0.1 !important;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Traditional South Indian Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(230, 184, 0, 0.98);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--kunkuma-primary);
}

.navbar.scrolled {
    background: rgba(230, 184, 0, 1);
}



/* Traditional Decorative Garland */
.decorative-garland {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    z-index: 1;
}

.garland-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 120px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    min-height: 60px;
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    margin-left: -18px;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    margin-left: -4px;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--kunkuma-primary);
    text-transform: lowercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: all 0.3s ease;
    margin-top: -10px;
    margin-left: 5px;
}

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

.nav-link {
    color: var(--kunkuma-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 6px 12px;
    border-radius: 6px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}



.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--kunkuma-primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;

}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--cream);
    background: rgba(204, 41, 54, 0.2);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Traditional Hero Section */
.hero {
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 100px 40px 60px;
    position: relative;
    overflow: hidden;
    gap: 60px;
}

@keyframes heroGlow {
    0%, 100% { 
        box-shadow: inset 0 0 30px rgba(204, 41, 54, 0.05);
    }
    50% { 
        box-shadow: inset 0 0 50px rgba(230, 184, 0, 0.08);
    }
}

.hero::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 100 100"><defs><pattern id="kolam" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23e6b800" opacity="0.1"/><circle cx="5" cy="5" r="0.5" fill="%23cc2936" opacity="0.1"/><circle cx="15" cy="15" r="0.5" fill="%23cc2936" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23kolam)"/></svg>');
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    animation: heroContentFadeIn 1.2s ease-out 0.5s both;
    text-align: left;
    padding-right: 40px;
}

/* Full Width Decorative Image */
.full-width-decor {
    width: 100%;
    max-width: 100vw;
    margin: -80px 0 20px 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    text-align: left;
    height: 650px;
    background: transparent;
    opacity: 1;
    visibility: visible;
}

.full-width-decor img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: left 50%;
    /* Ensure image loads and displays properly */
    min-height: 500px;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    outline: none;
}

@keyframes heroImageFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes heroContentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-title {
    font-size: 4.5rem;
    color: var(--dark-brown);
    margin-top: 60px;
    margin-bottom: 20px;
    font-weight: normal;
    font-family: 'Tw Cen MT', 'Arial', sans-serif;
    position: relative;
    display: block;
    line-height: 1.2;
}

.photography-text {
    color: var(--kunkuma-primary);
}






.hero-subtitle {
    font-size: 1.3rem;
    color: var(--dark-brown);
    margin-bottom: 40px;
    font-style: italic;
    font-family: 'Tw Cen MT', 'Arial', sans-serif;
    animation: subtitleSlideIn 1s ease-out 0.8s both;
    position: relative;
    display: block;
    line-height: 1.6;
}

@keyframes subtitleSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}



/* Auto Scrolling Image Gallery */
.auto-scroll-gallery {
    flex: 1;
    max-width: 500px;
    margin: 0;
    animation: galleryEntrance 1.5s ease-out 1s both;
    position: relative;
}

@keyframes galleryEntrance {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 4px solid var(--turmeric-primary);
}

.gallery-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--turmeric-primary), var(--kunkuma-primary), var(--turmeric-primary));
    border-radius: 25px;
    z-index: -1;
    opacity: 0.3;
    animation: galleryBorderGlow 3s ease-in-out infinite;
}

@keyframes galleryBorderGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

.image-stack {
    position: relative;
    width: 100%;
    height: 100%;
    animation: autoScroll 15s ease-in-out infinite;
}

@keyframes autoScroll {
    0%, 16.66% {
        transform: translateY(0);
    }
    20%, 36.66% {
        transform: translateY(-100%);
    }
    40%, 56.66% {
        transform: translateY(-200%);
    }
    60%, 76.66% {
        transform: translateY(-300%);
    }
    80%, 96.66% {
        transform: translateY(-400%);
    }
    100% {
        transform: translateY(-500%);
    }
}

.image-item {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.image-item:nth-child(1) {
    top: 0;
}

.image-item:nth-child(2) {
    top: 100%;
}

.image-item:nth-child(3) {
    top: 200%;
}

.image-item:nth-child(4) {
    top: 300%;
}

.image-item:nth-child(5) {
    top: 400%;
}

.image-item:nth-child(6) {
    top: 500%;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Traditional Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header.animate {
    opacity: 1;
    transform: translateY(0);
}

@keyframes sectionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll-scale.animated {
    opacity: 1;
    transform: scale(1);
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Georgia', serif;
    position: relative;
}

.title-decoration {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--turmeric-primary), var(--kunkuma-primary));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--warm-brown);
    font-style: italic;
}

/* Traditional About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--cream) 0%, var(--sandalwood-light) 100%);
}

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

.about-text {
    padding-right: 40px;
}

.traditional-frame {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 3px solid var(--turmeric-primary);
    position: relative;
}

.traditional-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--kunkuma-primary), var(--turmeric-primary));
    border-radius: 25px;
    z-index: -1;
    opacity: 0.3;
}

.traditional-frame h3 {
    color: var(--kunkuma-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    text-align: center;
}

.traditional-frame p {
    color: var(--dark-brown);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--turmeric-light), var(--turmeric-primary));
    border-radius: 15px;
    color: var(--dark-brown);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::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.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(230, 184, 0, 0.4);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.about-image {
    text-align: center;
}

.image-frame {
    position: relative;
    display: inline-block;
}

.image-frame img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    border: 4px solid var(--turmeric-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(230, 184, 0, 0.3), rgba(204, 41, 54, 0.3));
    border-radius: 20px;
}

/* Traditional Gallery Section */
.gallery {
    padding: 30px 0;
    background: linear-gradient(135deg, var(--sandalwood-light) 0%, var(--cream) 100%);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.filter-btn {
    background: var(--white);
    border: 2px solid var(--turmeric-primary);
    color: var(--dark-brown);
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(230, 184, 0, 0.2), transparent);
    transition: left 0.6s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--turmeric-primary), var(--gold));
    color: var(--dark-brown);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(230, 184, 0, 0.4), 0 0 20px rgba(230, 184, 0, 0.3);
    border-color: var(--gold);
}

.filter-btn.active {
    animation: activeButtonPulse 2s ease-in-out infinite;
}

@keyframes activeButtonPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(230, 184, 0, 0.4), 0 0 20px rgba(230, 184, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(230, 184, 0, 0.6), 0 0 30px rgba(230, 184, 0, 0.5);
    }
}

.gallery-section {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.gallery-section.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.gallery-section h3 {
    color: var(--kunkuma-primary);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Georgia', serif;
    position: relative;
}

.gallery-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--turmeric-primary), var(--kunkuma-primary));
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
    grid-auto-rows: auto;
    align-items: start;
}

.gallery-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 3px solid var(--sandalwood);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    max-height: 400px;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--turmeric-primary), var(--kunkuma-primary));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: 20px;
}

.gallery-item:hover {
    border-color: var(--turmeric-primary);
}

.gallery-item img {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 400px;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) contrast(1.1);
    flex: 1;
}

/* Gallery items with consistent sizing */

.gallery-item:hover img {
    filter: brightness(1.1) contrast(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(204, 41, 54, 0.9), rgba(230, 184, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    backdrop-filter: blur(5px);
    pointer-events: none;
}

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

.gallery-overlay i {
    color: var(--dark-brown);
    font-size: 2.5rem;
    transform: scale(0.5) rotate(180deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(0.5) rotate(180deg);
}

/* Traditional Reviews Section */
.reviews {
    padding: 20px 0;
    margin-top: -31px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--sandalwood-light) 100%)
}

/* Hide Admin Panel Button */
.admin-link-section {
    display: none;
}

.reviews-content {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.review-form-container {
    background: var(--white);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 4px solid var(--turmeric-primary);
    max-width: 700px;
    width: 100%;
    position: relative;
}

.review-form-container::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(45deg, var(--kunkuma-primary), var(--turmeric-primary));
    border-radius: 30px;
    z-index: -1;
    opacity: 0.2;
}

.review-form-container h3 {
    color: var(--kunkuma-primary);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Georgia', serif;
}

.review-form .form-group {
    margin-bottom: 25px;
}

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 20px 20px 10px 20px;
    border: 2px solid var(--sandalwood);
    border-radius: 15px;
    font-family: 'Ubuntu Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--cream);
    position: relative;
    color: var(--dark-brown);
    line-height: 1.6;
    resize: vertical;
}

.review-form input:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--turmeric-primary);
    box-shadow: 0 0 25px rgba(230, 184, 0.4), inset 0 0 10px rgba(230, 184, 0.1);
    background: var(--white);
    transform: translateY(-2px);
}

.review-form textarea::placeholder {
    color: var(--dark-brown);
    opacity: 0.7;
    font-size: 1rem;
    line-height: 1.6;
}

.review-form input:focus + label,
.review-form textarea:focus + label,
.review-form input:not(:placeholder-shown) + label,
.review-form textarea:not(:placeholder-shown) + label {
    transform: translateY(-25px) scale(0.85);
    color: var(--turmeric-primary);
    font-weight: 600;
}

.review-form .form-group {
    position: relative;
}

.review-form label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--warm-brown);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: var(--cream);
    padding: 0 5px;
}

.review-form textarea + label {
    top: 20px;
    transform: translateY(0);
}

.review-form textarea:focus + label,
.review-form textarea:not(:placeholder-shown) + label {
    transform: translateY(-15px) scale(0.85);
}

/* Rating specific form group */
.review-form .rating-group {
    position: static;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    width: 100%;
}

.rating-input label {
    font-weight: 600;
    color: var(--dark-brown);
    font-size: 1.1rem;
    white-space: nowrap;
    min-width: fit-content;
    position: static;
    transform: none;
    background: none;
    padding: 0;
    margin: 0;
}

.stars {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.star {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.star:hover,
.star.active,
.star.filled {
    color: var(--turmeric-primary);
    transform: scale(1.2);
}

.star.filled {
    color: var(--turmeric-primary);
}

.submit-btn {
    background: linear-gradient(135deg, var(--kunkuma-primary), var(--kunkuma-dark));
    color: var(--dark-brown);
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(204, 41, 54, 0.5), 0 0 30px rgba(204, 41, 54, 0.3);
    background: linear-gradient(135deg, var(--kunkuma-dark), var(--kunkuma-primary));
}

.submit-btn:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

/* Reviews Below Form */
.reviews-below-form {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 3px solid var(--turmeric-primary);
}

.reviews-below-form h4 {
    color: var(--kunkuma-primary);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Georgia', serif;
}

/* Admin Link Section */
.admin-link-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 3px solid var(--kunkuma-primary);
    text-align: center;
}

.admin-note {
    color: var(--warm-brown);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.admin-link {
    color: var(--kunkuma-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--kunkuma-primary);
    border-radius: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.admin-link:hover {
    background: var(--kunkuma-primary);
    color: var(--dark-brown);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(204, 41, 54, 0.4);
}



.reviews-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.review-item {
    background: linear-gradient(135deg, var(--cream), var(--sandalwood-light));
    padding: 25px;
    margin: 20px 0;
    border-radius: 20px;
    border-left: 5px solid var(--turmeric-primary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.review-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-header h4 {
    color: var(--kunkuma-primary);
    font-size: 1.3rem;
    margin: 0;
    font-family: 'Georgia', serif;
}

.review-rating .star {
    color: var(--turmeric-primary);
    font-size: 1.2rem;
}

.review-rating .star.filled {
    color: var(--turmeric-primary);
}

.review-text {
    color: var(--dark-brown);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.review-date {
    color: var(--warm-brown);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Traditional Contact Section */
.contact {
    padding: 60px 0;
    margin-top: -100px;
    background: linear-gradient(135deg, var(--sandalwood-light) 0%, var(--cream) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info {
    padding-right: 40px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    border: 2px solid var(--sandalwood);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(230, 184, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    border-color: var(--turmeric-primary);
    transform: translateX(10px) translateY(-5px);
    box-shadow: 0 10px 25px rgba(230, 184, 0, 0.2);
}

.contact-item i {
    color: var(--kunkuma-primary);
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-item h4 {
    color: var(--dark-brown);
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
}

.contact-item p {
    color: var(--warm-brown);
    line-height: 1.6;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--kunkuma-primary), var(--kunkuma-dark));
    color: var(--dark-brown);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(204, 41, 54, 0.4);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 3px solid var(--turmeric-primary);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 20px 20px 10px 20px;
    border: 2px solid var(--sandalwood);
    border-radius: 15px;
    font-family: 'Ubuntu Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--cream);
    position: relative;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--turmeric-primary);
    box-shadow: 0 0 25px rgba(230, 184, 0.4), inset 0 0 10px rgba(230, 184, 0.1);
    background: var(--white);
    transform: translateY(-2px);
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 30px;
}

.contact-form label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--warm-brown);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: var(--cream);
    padding: 0 5px;
}

.contact-form textarea + label {
    top: 20px;
    transform: translateY(0);
}

.contact-form input:focus + label,
.contact-form textarea:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:not(:placeholder-shown) + label {
    transform: translateY(-25px) scale(0.85);
    color: var(--turmeric-primary);
    font-weight: 600;
}

.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
    transform: translateY(-15px) scale(0.85);
}

/* Traditional Footer */
.footer {
    background: linear-gradient(135deg, var(--kunkuma-primary) 0%, var(--kunkuma-dark) 100%);
    color: var(--dark-brown);
    padding: 60px 0 20px;
    text-align: center;
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--turmeric-primary);
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--dark-brown);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--turmeric-primary);
}

.footer-bottom {
    border-top: 2px solid var(--turmeric-primary);
    padding-top: 20px;
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    border: 4px solid var(--turmeric-primary);
}

.close {
    color: var(--dark-brown);
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 35px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--turmeric-primary);
}

.modal-caption {
    color: var(--dark-brown);
    text-align: center;
    padding: 20px;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 30px 60px;
        gap: 50px;
    }
    
    .hero-content {
        max-width: 100%;
        padding-right: 0;
        text-align: center;
    }
    
    .auto-scroll-gallery {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
        flex: none;
    }
    
    .hero-title {
        font-size: 4rem;
        margin-top: 70px;
    }
    
    .photography-text {
        color: var(--kunkuma-primary);
    }
}

@media (max-width: 768px) {
    /* Garland responsive adjustments */
    .garland-image {
        max-height: 80px;
    }
    
    .hero {
        flex-direction: column !important;
        text-align: center !important;
        padding: 70px 20px 60px !important;
        gap: 40px !important;
    }
    
    .hero-content {
        max-width: 100% !important;
        padding-right: 0 !important;
        text-align: center !important;
    }
    
    .auto-scroll-gallery {
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        flex: none !important;
    }
    
    .hero-title {
        font-size: 3.5rem;
        margin-top: 130px !important;
    }
    
    .photography-text {
        color: var(--kunkuma-primary);
    }
    
    /* Mobile Auto Scroll Gallery Adjustments */
    .auto-scroll-gallery {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
    }
    
    .gallery-container {
        width: 100%;
        height: 400px;
        overflow: hidden;
        position: relative;
        border: 2px solid var(--turmeric-primary);
        border-radius: 15px;
        background: #f8f8f8;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
    
    .image-stack {
        width: 100%;
        height: 100%;
        animation-play-state: running;
        will-change: transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .contact-info {
        padding-right: 0;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        margin: 3px;
    }
    
    .gallery-filters {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .gallery-section {
        margin-bottom: 40px;
    }
    
    .gallery-section h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .gallery-item {
        border-radius: 15px;
        border-width: 2px;
    }
    
    .gallery-item img {
        height: auto;
        min-height: 150px;
        max-height: 300px;
    }
    
    .gallery-overlay i {
        font-size: 2rem;
    }
    
    .gallery {
        padding: 25px 20px;
    }
    
    .reviews {
        margin-top: -100px;
    }
    
    .contact {
        margin-top: -100px;
    }
    
    .gallery h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .review-form-container {
        padding: 30px 20px;
    }
    
    .rating-input {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .rating-input label {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
        margin-top: 117px !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Extra Small Screen Auto Scroll Gallery Adjustments */
    .auto-scroll-gallery {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
    }
    
    .gallery-container {
        width: 100%;
        height: 350px;
        overflow: hidden;
        position: relative;
        border: 2px solid var(--turmeric-primary);
        border-radius: 15px;
        background: #f8f8f8;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
    
    .image-stack {
        width: 100%;
        height: 100%;
        animation-play-state: running;
        will-change: transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin: 5px;
    }
    
    .gallery-filters {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gallery-section {
        margin-bottom: 30px;
    }
    
    .gallery-section h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .gallery-item {
        border-radius: 12px;
        border-width: 1px;
    }
    
    .gallery-item img {
        height: auto;
        min-height: 120px;
        max-height: 250px;
    }
    
    .gallery-overlay i {
        font-size: 1.8rem;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:active {
        transform: translateY(-4px) scale(0.98);
    }
    
    .gallery {
        padding: 20px 15px;
    }
    
    .reviews {
        margin-top: -120px;
    }
    
    .contact {
        margin-top: -120px;
    }
    
    .gallery h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
}

/* Mobile Touch and Interaction Fixes */
@media (max-width: 768px) {
    /* Fix touch interactions */
    .gallery-item {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .gallery-item:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Fix navigation touch */
    .nav-link {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Fix button touch */
    .filter-btn, .submit-btn, button {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Prevent zoom on input focus */
    input, textarea, select {
        font-size: 16px;
        -webkit-appearance: none;
        border-radius: 0;
    }
    
    /* Fix modal touch */
    .modal {
        touch-action: manipulation;
    }
    
    .close {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Fix auto-scroll gallery touch */
    .auto-scroll-gallery {
        touch-action: none;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .gallery-container {
        touch-action: none;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .image-stack {
        touch-action: none;
        pointer-events: none;
        will-change: transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .image-item {
        position: absolute;
        width: 100%;
        height: 100%;
        touch-action: none;
        pointer-events: none;
    }
    
    .image-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    /* Fix floating elements on mobile */
    .floating-elements {
        display: none;
    }
    
    /* Hide all decorative elements that might cause horizontal scroll */
    .mandala-element,
    .lotus,
    .bell,
    .traditional-border,
    .kolam-pattern {
        display: none;
    }
    
    /* Ensure no horizontal overflow */
    .hero {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .full-width-decor {
        width: 100%;
        max-width: 100vw;
        margin-left: 0;
        margin-right: 0;
        left: 0;
        right: 0;
    }
    
    
    /* Fix hero section on mobile */
    .hero {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0 20px 20px 20px;
    }
    
    .hero-content {
        z-index: 2;
        position: relative;
    }
    
    .full-width-decor {
        margin: -60px -20px 15px -40px;
        height: 350px;
        width: calc(100% + 60px);
        max-width: 100vw;
        position: relative;
        overflow: visible;
        display: block;
    }
    
    .full-width-decor img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: left top;
        display: block;
        opacity: 1;
        visibility: visible;
    }
    
    /* Fix gallery grid on mobile */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        padding: 0 10px;
    }
    
    .gallery-item {
        overflow: hidden;
        min-height: 150px;
    }
    
    .gallery-item img {
        width: 100%;
        height: auto;
        min-height: 150px;
        max-height: 300px;
        object-fit: cover;
    }
    
    /* Fix contact form on mobile */
    .contact-form {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    input, textarea, select {
        width: 100%;
        padding: 15px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 16px;
        background: white;
    }
    
    /* Fix reviews section on mobile */
    .reviews-content {
        padding: 20px;
    }
    
    .review-form {
        margin-bottom: 30px;
    }
    
    /* Fix footer on mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    /* Fix container padding */
    .container {
        padding: 0 20px;
    }
    
    /* Fix section padding */
    section {
        padding: 60px 0;
    }
    
    /* Fix about section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text {
        padding: 0;
    }
    
    .about-image {
        order: -1;
    }
    
    /* Fix stats on mobile */
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-top: 30px;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-top: 130px !important;
    }
    
    .full-width-decor {
        margin: -50px -15px 10px -30px;
        height: 300px;
        width: calc(100% + 45px);
        max-width: 100vw;
        position: relative;
        overflow: visible;
        display: block;
    }
    
    .full-width-decor img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: left top;
        display: block;
        opacity: 1;
        visibility: visible;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .filter-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
        margin: 2px;
    }
    
    .gallery-filters {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

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

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}



/* Smooth page transitions */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Success Popup Notification */
.success-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: all 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.success-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.success-popup.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

.success-popup .icon {
    font-size: 20px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    z-index: 1001;
}

.hamburger:hover {
    background-color: rgba(204, 41, 54, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--kunkuma-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
        position: relative;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 50px;
        flex-direction: column;
        background: rgba(230, 184, 0, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 20px 0;
        border-top: 2px solid var(--kunkuma-primary);
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 15px 0;
        display: block;
        width: 100%;
    }
}
