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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #F06292, #FFD54F, #BA68C8, #4FC3F7);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #333;
    overflow-x: hidden;
    position: relative;
}

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

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

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

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

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

.petal {
    position: absolute;
    width: 25px;
    height: 25px;
    background: radial-gradient(ellipse at center, #F06292, #FFD54F);
    border-radius: 50% 50% 50% 0;
    opacity: 0.8;
    animation: float 8s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.petal-1 {
    top: -10%;
    left: 10%;
    animation-delay: 0s;
}

.petal-2 {
    top: -10%;
    left: 30%;
    animation-delay: 1s;
}

.petal-3 {
    top: -10%;
    left: 50%;
    animation-delay: 2s;
}

.petal-4 {
    top: -10%;
    left: 70%;
    animation-delay: 3s;
}

.petal-5 {
    top: -10%;
    left: 90%;
    animation-delay: 4s;
}

@keyframes float {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.diya {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #FFD54F, #FFB74D);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 213, 79, 0.7));
}

.diya-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.diya-2 {
    top: 60%;
    left: 5%;
    animation-delay: 1.5s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(255, 213, 79, 0.8);
    }
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: sparkleAnim 2s linear infinite;
    filter: drop-shadow(0 0 4px white);
}

.sparkle-1 {
    top: 30%;
    left: 20%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 70%;
    right: 20%;
    animation-delay: 0.7s;
}

.sparkle-3 {
    top: 50%;
    left: 50%;
    animation-delay: 1.4s;
}

@keyframes sparkleAnim {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Header Styles */
.header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.2);
}

.rakhi-animation {
    margin-bottom: 40px;
}

.spinning-rakhi {
    animation: spin 8s linear infinite, pulse 2s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.spinning-rakhi:hover {
    animation: spin 4s linear infinite, pulse 1s ease-in-out infinite;
    transform: scale(1.1);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.main-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out;
    background: linear-gradient(to right, #F06292, #FFD54F);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.greeting-message {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 700px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.6s both;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.greeting-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(240, 98, 146, 0.1),
            rgba(255, 213, 79, 0.1),
            rgba(186, 104, 200, 0.1),
            rgba(79, 195, 247, 0.1));
    transform: rotate(30deg);
    z-index: -1;
}

.greeting-message p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

.greeting-message p:first-child {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: #F06292;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.97);
    position: relative;
    z-index: 2;
    clip-path: none !important; /* Force remove clip-path */
    margin-top: 0 !important; /* Reset margins */
    margin-bottom: 0 !important;
}

.section-title {
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #F06292;
    margin-bottom: 60px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #F06292, #FFD54F);
    border-radius: 3px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.photo-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4/3;
}

.photo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(240, 98, 146, 0.3), rgba(255, 213, 79, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.photo-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.photo-item:hover::before {
    opacity: 1;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(240, 98, 146, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 2.5rem;
    color: white;
    animation: pulse 1.5s infinite;
    transition: transform 0.3s ease;
}

.photo-item:hover .zoom-icon {
    transform: scale(1.2);
}

/* Message Section */
.message-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    z-index: 2;
    clip-path: none !important; /* Force remove clip-path */
}

.message-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(240, 98, 146, 0.05),
            rgba(255, 213, 79, 0.05),
            rgba(186, 104, 200, 0.05),
            rgba(79, 195, 247, 0.05));
    z-index: -1;
}

.scroll-indicator {
    text-align: center;
    margin-bottom: 60px;
    color: #fff;
}

.scroll-indicator p {
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.scroll-arrow {
    font-size: 2rem;
    animation: bounce 2s infinite;
    color: #FFD54F;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

.heartfelt-message {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 20px;
    margin: 50px auto;
    max-width: 800px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.heartfelt-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(240, 98, 146, 0.03),
            rgba(255, 213, 79, 0.03),
            rgba(186, 104, 200, 0.03),
            rgba(79, 195, 247, 0.03));
    z-index: -1;
}

.heartfelt-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.message-content p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #333;
    font-size: 1.2rem;
}

.signature {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: #F06292;
    text-align: right;
    margin-top: 40px;
}

.typing-text {
    overflow: hidden;
    border-right: 2px solid #F06292;
    margin: 0 auto;
    letter-spacing: 0.5px;
}
/* Music Control */
.music-control {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
}

.music-control button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(45deg, #F06292, #FFD54F);
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-control button:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.music-control button.playing {
    animation: musicPulse 1.5s infinite;
}

@keyframes musicPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.4s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    text-align: center;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.close {
    position: absolute;
    top: -15px;
    right: 15px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.close:hover {
    color: #FFD54F;
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Footer */
.footer {
    background: linear-gradient(to right, #F06292, #FFD54F);
    color: white;
    text-align: center;
    padding: 40px 0;
    position: relative;
    z-index: 2;
    clip-path: none;
    margin-top: 0;
}
.footer p {
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.rakhi-decoration {
    font-size: 2rem;
}

.rakhi-decoration span {
    margin: 0 15px;
    animation: bounce 2s infinite;
    display: inline-block;
}

.rakhi-decoration span:nth-child(2) {
    animation-delay: 0.3s;
    color: #FFD54F;
}

.rakhi-decoration span:nth-child(3) {
    animation-delay: 0.6s;
}

/* Floating Hearts */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .main-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

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

@media (max-width: 768px) {
    .main-title {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .greeting-message {
        padding: 25px;
        margin: 25px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .heartfelt-message {
        padding: 30px;
        margin: 30px;
    }

    .music-control {
        bottom: 25px;
        right: 25px;
    }

    .music-control button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .gallery-section,
    .message-section {
        clip-path: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 80px 0; /* Adjust padding if needed */
    }

    .footer {
        clip-path: none;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .greeting-message {
        padding: 20px;
        margin: 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .heartfelt-message {
        padding: 20px;
    }

    .message-content p {
        font-size: 1rem;
    }

    .signature {
        font-size: 1.4rem;
    }

    .container {
        padding: 0 15px;
    }
}