/* 
 * Diwali Festival Website - Main Stylesheet
 * Author: Omkar R. Ghare
 * Version: 1.0
 */

/* ===== GLOBAL STYLES ===== */
:root {
    /* Color Variables */
    --primary-color: #FFA500; /* Orange */
    --secondary-color: #FF4500; /* Deep Orange */
    --accent-color: #9C27B0; /* Purple */
    --gold-color: #FFD700;
    --light-color: #FFF9E6;
    --dark-color: #333333;
    
    /* Font Variables */
    --heading-font: 'Tangerine', cursive;
    --body-font: 'Poppins', sans-serif;
    
    /* Transition Variables */
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    width: 100%;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

section {
    padding: 5rem 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 3.5rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title h2 span {
    color: var(--primary-color);
}

.title-decoration {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    position: relative;
}

.title-decoration::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--gold-color);
    border-radius: 50%;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 1.2rem 0;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 85px; /* Increased height for better visibility */
}

.header.sticky {
    padding: 0.8rem 0;
    background-color: rgba(0, 0, 0, 0.9);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.logo:hover {
    transform: translateY(-3px);
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    filter: drop-shadow(0 0 5px var(--gold-color));
    animation: pulse 2s infinite;
    object-fit: contain;
}

@keyframes pulse {
    0% { filter: drop-shadow(0 0 5px var(--gold-color)); }
    50% { filter: drop-shadow(0 0 10px var(--gold-color)); }
    100% { filter: drop-shadow(0 0 5px var(--gold-color)); }
}

.logo span {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    color: var(--gold-color);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    background: linear-gradient(to right, var(--gold-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 2.5rem;
    position: relative;
}

.nav-link {
    color: var(--light-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
    color: var(--gold-color);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--gold-color), var(--primary-color));
    transition: width 0.3s ease;
    border-radius: 5px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--gold-color);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    padding-top: 100px; /* Increased padding for better spacing */
    padding-bottom: 50px; /* Added bottom padding */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../images/diwali-hero-bg.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 0;
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
    z-index: 1;
    animation: fadeInUp 1.5s ease;
    transform: translateY(0);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

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

.glowing-text {
    font-size: 5.5rem;
    color: var(--light-color);
    text-shadow: 0 0 10px var(--gold-color), 
                 0 0 20px var(--gold-color), 
                 0 0 30px var(--gold-color);
    margin-bottom: 1.5rem;
    animation: glow 2s infinite alternate;
    letter-spacing: 2px;
    line-height: 1.1;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px var(--gold-color), 
                     0 0 20px var(--gold-color), 
                     0 0 30px var(--gold-color);
    }
    100% {
        text-shadow: 0 0 15px var(--gold-color), 
                     0 0 30px var(--gold-color), 
                     0 0 45px var(--gold-color),
                     0 0 60px var(--gold-color);
    }
}

.year {
    color: var(--gold-color);
    position: relative;
    display: inline-block;
    font-weight: 700;
    background: linear-gradient(to right, var(--gold-color), var(--primary-color), var(--gold-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 10px;
}

.year::before, .year::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-color);
    font-size: 2rem;
    animation: twinkle 1.5s infinite alternate;
}

.year::before {
    left: -30px;
}

.year::after {
    right: -30px;
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hero-content p {
    font-size: 1.6rem;
    color: var(--light-color);
    margin-bottom: 2.5rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    animation: fadeIn 2s ease;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% auto;
    color: var(--light-color);
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.4);
    transition: all 0.5s ease;
    animation: fadeIn 3s ease;
}

.cta-button:hover {
    color: skyblue;
    background-position: right center;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 69, 0, 0.6);
}

.diya-container {
    margin: 3rem 0;
    animation: float 3s ease-in-out infinite;
}

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

.diya {
    width: 100px;
    height: 50px;
    background: linear-gradient(to bottom, #CD853F, #8B4513);
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.diya::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 20px;
    background-color: rgba(139, 69, 19, 0.7);
    border-radius: 50%;
    bottom: -10px;
    left: 5%;
    filter: blur(5px);
}

.flame {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 60px;
    background: linear-gradient(to top, #FF4500, #FFA500, #FFFF00);
    border-radius: 50% 50% 20% 20%;
    animation: flicker 1.5s infinite alternate;
    box-shadow: 0 0 30px #FFA500, 0 0 50px #FF4500;
    transform-origin: center bottom;
}

@keyframes flicker {
    0%, 100% {
        transform: translateX(-50%) scaleY(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateX(-52%) scaleY(0.9) rotate(-2deg);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-50%) scaleY(1.1) rotate(0deg);
        opacity: 1;
    }
    75% {
        transform: translateX(-48%) scaleY(0.9) rotate(2deg);
        opacity: 0.9;
    }
}

.flame::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    top: 10%;
    left: 20%;
    filter: blur(5px);
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: #FFF9E6;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 165, 0, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 90% 80%, rgba(255, 69, 0, 0.05) 0%, transparent 50%);
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--gold-color));
    background-size: 400% 400%;
    animation: gradientBorder 5s ease infinite;
}

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

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    transform: translateX(0);
    opacity: 1;
    transition: all 0.8s ease;
}

.about-text.fade-in {
    animation: fadeInLeft 1s ease;
}

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

.about-text h3 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.about-text p {
    margin-bottom: 1.8rem;
    color: var(--dark-color);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.about-text ul {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

.about-text ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 2rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.about-text ul li:hover {
    transform: translateX(5px);
}

.about-text ul li::before {
    content: '✦';
    color: var(--primary-color);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

.about-images {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1.5rem;
    transform: translateX(0);
    opacity: 1;
    transition: all 0.8s ease;
}

.about-images.fade-in {
    animation: fadeInRight 1s ease;
}

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

.about-images img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: scale(1);
    filter: brightness(1);
}

.about-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
    z-index: 1;
}

.image-box {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.image-box img {
    transition: var(--transition);
    height: 100%;
    width: 100%;
}

.image-box:hover img {
    transform: scale(1.1);
}

.image-box:nth-child(1) {
    grid-column: 1 / 3;
}

/* ===== GALLERY SECTION ===== */
.gallery {
    padding: 7rem 0;
    background-color: #FFF3E0;
    background-image: 
        linear-gradient(120deg, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        linear-gradient(240deg, rgba(255, 69, 0, 0.03) 0%, transparent 50%);
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f9a825' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    height: 280px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    background: #fff;
}

.gallery-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(1);
}

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

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transition: var(--transition);
    z-index: 2;
    text-align: center;
}

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

.gallery-overlay h3 {
    color: var(--gold-color);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay p {
    color: var(--light-color);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
}

.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
    opacity: 0.8;
}

/* ===== WISHES SECTION ===== */
.wishes {
    padding: 7rem 0;
    background-color: #FFF3E0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 165, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 69, 0, 0.05) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.wishes::before,
.wishes::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath fill='%23f9a825' fill-opacity='0.05' d='M20 0c11.046 0 20 8.954 20 20s-8.954 20-20 20S0 31.046 0 20 8.954 0 20 0zm0 5c-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15zm0 5c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10z'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.wishes::before {
    top: -100px;
    left: -100px;
    transform: rotate(15deg);
}

.wishes::after {
    bottom: -100px;
    right: -100px;
    transform: rotate(-15deg);
}

.wishes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
    height: 300px;
    overflow: hidden;
}

.wishes-slider {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.wish-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.wish-card.active {
    opacity: 1;
    transform: translateY(0);
}

.wish-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(5px);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.wish-content::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: rgba(249, 168, 37, 0.1);
    line-height: 1;
}

.wish-content::after {
    content: '"';
    position: absolute;
    bottom: 0;
    right: 30px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: rgba(249, 168, 37, 0.1);
    line-height: 1;
}

.wish-content i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.wish-content p {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.wish-content h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.wish-content h3::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.prev-btn, .next-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    margin: 0 1rem;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(221, 221, 221, 0.7);
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dot:hover {
    transform: scale(1.2);
}

.dot.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scale(1.3);
}

/* ===== EVENTS SECTION ===== */
.events {
    padding: 7rem 0;
    background-color: #FFF3E0;
    background-image: 
        linear-gradient(120deg, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        linear-gradient(240deg, rgba(255, 69, 0, 0.03) 0%, transparent 50%);
    position: relative;
}

.events-timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.events-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    width: 40%;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-date:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-date::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--gold-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-color);
    transition: all 0.3s ease;
}

.timeline-date:hover::after {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 15px var(--gold-color);
}

.timeline-item:nth-child(odd) .timeline-date::after {
    right: -30px;
    transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-date::after {
    left: -30px;
    transform: translateY(-50%);
}

.timeline-date h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-date p {
    color: var(--dark-color);
    font-weight: 500;
}

.timeline-content {
    width: 40%;
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.timeline-content h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.timeline-content p {
    margin-bottom: 1rem;
}

.event-time, .event-location {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.event-time i, .event-location i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 7rem 0;
    background-color: #FFF3E0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 165, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 69, 0, 0.05) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--gold-color));
    background-size: 400% 400%;
    animation: gradientBorder 5s ease infinite;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    align-items: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    transform: translateX(0);
    opacity: 1;
    transition: all 0.8s ease;
}

.contact-info.fade-in {
    animation: fadeInLeft 1s ease;
}

.contact-info h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.3rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(249, 168, 37, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.info-item:hover i {
    background-color: var(--primary-color);
    color: #FFF;
    transform: scale(1.1);
}

.social-icons {
    display: flex;
    margin-top: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: aqua;
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: #FFF;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.8s ease;
}

.contact-form.fade-in {
    animation: fadeInRight 1s ease;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #EEE;
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #F9F9F9;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.2);
    background-color: #FFF;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.submit-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(249, 168, 37, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transition: all 0.5s ease;
    z-index: -1;
    border-radius: 50px;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(249, 168, 37, 0.4);
}

.submit-btn:hover::before {
    width: 100%;
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(249, 168, 37, 0.3);
}

/* ===== FOOTER SECTION ===== */
.footer {
    background-color: #222;
    color: var(--light-color);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--gold-color));
    background-size: 300% 300%;
    animation: gradientBorder 5s ease infinite;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
}

.footer-logo img {
    width: 60px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 5px var(--gold-color));
}

.footer-logo h3 {
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--gold-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
}

.footer-links {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
}

.footer-links h4 {
    font-size: 1.8rem;
    color: var(--light-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.footer-links ul li {
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.footer-links ul li:hover {
    transform: translateX(8px);
}

.footer-links ul li a {
    color: #ccc;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links ul li a::before {
    content: '✦';
    color: var(--primary-color);
    margin-right: 0.8rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-links ul li a:hover::before {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.footer-newsletter {
    flex: 1;
    min-width: 300px;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-newsletter h4 {
    font-size: 1.8rem;
    color: var(--light-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.newsletter-form {
    display: flex;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    height: 55px;
}

.newsletter-form input {
    flex: 1;
    padding: 0 1.5rem;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFF;
    font-size: 1rem;
    border-radius: 50px 0 0 50px;
    font-family: var(--body-font);
    transition: all 0.3s ease;
    min-width: 0;
    width: calc(100% - 65px);
    height: 100%;
}

.newsletter-form input::placeholder {
    color: #AAA;
    opacity: 0.8;
}

.newsletter-form input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    width: 65px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateX(0);
}

.newsletter-form button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.newsletter-form button:hover i {
    transform: translateX(3px);
}

.newsletter-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transition: all 0.5s ease;
    z-index: -1;
}

.newsletter-form button:hover {
    transform: translateX(3px);
}

.newsletter-form button:hover::before {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    color: #AAA;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* ===== ANIMATIONS ===== */
@keyframes glow {
    0% {
        text-shadow: 0 0 10px var(--gold-color), 
                     0 0 20px var(--gold-color), 
                     0 0 30px var(--gold-color);
    }
    100% {
        text-shadow: 0 0 20px var(--gold-color), 
                     0 0 30px var(--gold-color), 
                     0 0 40px var(--gold-color);
    }
}

@keyframes flicker {
    0%, 100% {
        transform: translateX(-50%) scaleY(1) scaleX(1);
        box-shadow: 0 0 20px #FFA500, 0 0 40px #FF4500;
    }
    25% {
        transform: translateX(-50%) scaleY(1.1) scaleX(0.9);
        box-shadow: 0 0 15px #FFA500, 0 0 30px #FF4500;
    }
    50% {
        transform: translateX(-50%) scaleY(0.9) scaleX(1.1);
        box-shadow: 0 0 25px #FFA500, 0 0 50px #FF4500;
    }
    75% {
        transform: translateX(-50%) scaleY(1.05) scaleX(0.95);
        box-shadow: 0 0 18px #FFA500, 0 0 35px #FF4500;
    }
}

/* ===== MEDIA QUERIES ===== */
/* Large Screens */
@media screen and (min-width: 1400px) {
    .container, 
    .contact-container,
    .about-container,
    .footer-content {
        max-width: 1400px;
        margin: 0 auto;
    }

    .hero-content {
        max-width: 1200px;
    }

    .glowing-text {
        font-size: 6.5rem;
    }

    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets & Small Desktops */
@media screen and (max-width: 992px) {
    .section-title h2 {
        font-size: 3rem;
    }
    
    .glowing-text {
        font-size: 4rem;
    }
    
    .events-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column;
        width: 100%;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: column;
    }
    
    .timeline-date, .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        margin-bottom: 1rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-date::after,
    .timeline-item:nth-child(even) .timeline-date::after {
        left: -45px;
        top: 20px;
        transform: none;
    }

    .about-container,
    .contact-container {
        padding: 0 2rem;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2rem;
    }
}

@media screen and (max-width: 768px) {
    .header {
        height: 75px;
        padding: 0.8rem 0;
    }

    .navbar {
        padding: 0 1.5rem;
    }

    .logo img {
        width: 45px;
        height: 45px;
    }

    .logo span {
        font-size: 1.8rem;
    }

    .hero {
        padding-top: 90px;
        padding-bottom: 40px;
        min-height: 100vh;
        height: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 2rem 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: calc(0.1s * var(--i));
    }
    
    .nav-toggle {
        display: block;
        z-index: 1000;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .glowing-text {
        font-size: 3rem;
        padding: 0 1rem;
    }
    
    .hero {
        height: 100vh;
        padding: 0 1rem;
    }
    
    .hero-content {
        width: 100%;
        padding: 0 1rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .about-container {
        padding: 0 1.5rem;
    }
    
    .about-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .image-box:nth-child(1) {
        grid-column: 1;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 1.5rem;
    }

    .contact-container {
        padding: 0 1.5rem;
    }

    .footer-content {
        padding: 0 1.5rem;
        text-align: center;
    }

    .footer-logo, 
    .footer-links, 
    .footer-newsletter {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .glowing-text {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero {
        height: 100vh;
        align-items: center;
    }
    
    .hero-content {
        width: 100%;
        padding: 0 1rem;
        margin-top: -50px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
        width: 80%;
        max-width: 250px;
    }
    
    .wish-content {
        padding: 1.5rem 1rem;
    }
    
    .wish-content p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .about-text h3 {
        font-size: 2.2rem;
    }
    
    .about-text p {
        font-size: 1rem;
        text-align: left;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-logo h3 {
        font-size: 2rem;
    }
}

/* ===== MOBILE IMPROVEMENTS ===== */

/* Fix hero section background and text scaling */
@media screen and (max-width: 768px) {
  .hero {
    background-attachment: scroll; /* fixes mobile background jitter */
    padding: 100px 20px 60px;
    height: auto;
  }

  .hero-content {
    padding: 0 10px;
  }

  .glowing-text {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1rem;
    max-width: 100%;
  }

  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }

  .diya {
    width: 80px;
    height: 40px;
  }

  .flame {
    width: 20px;
    height: 45px;
    top: -30px;
  }
}

/* Navbar adjustments */
@media screen and (max-width: 768px) {
  .nav-menu li {
    margin: 1rem 0;
  }
  .nav-link {
    font-size: 1.2rem;
  }
  .header {
    padding: 0.6rem 0;
  }
}

/* Fix about section grid layout */
@media screen and (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    order: 2;
  }

  .about-images {
    order: 1;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-text h3 {
    font-size: 2rem;
  }
}

/* Footer scaling */
@media screen and (max-width: 992px) {
  .footer-content {
    padding: 0 1.5rem;
    text-align: center;
  }

  .footer-logo, 
  .footer-links, 
  .footer-newsletter {
    width: 100%;
    align-items: center;
  }

  .newsletter-form {
    margin: 1.5rem auto 0;
  }
}

@media screen and (max-width: 576px) {
  .footer-logo h3 {
    font-size: 1.8rem;
  }

  .footer-links h4,
  .footer-newsletter h4 {
    font-size: 1.4rem;
  }

  .footer-newsletter {
    width: 100%;
    padding: 0 1rem;
  }

  .newsletter-form {
    width: 100%;
    max-width: 350px;
    height: 45px;
  }

  .newsletter-form input {
    padding: 0 1rem;
    font-size: 0.9rem;
    width: calc(100% - 55px);
  }

  .newsletter-form button {
    width: 55px;
  }

  .newsletter-form button i {
    font-size: 1rem;
  }
}
