:root {
    --primary: #FF4081;
    /* Pink */
    --secondary: #FFD740;
    /* Yellow */
    --accent: #7C4DFF;
    /* Purple */
    --bg-gradient: linear-gradient(135deg, #FFF3E0 0%, #FCE4EC 50%, #E1F5FE 100%);
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.background-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 64, 129, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(124, 77, 255, 0.1) 0%, transparent 20%);
    animation: pulseBg 10s infinite alternate;
}

/* Login Screen */
/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.4);
    /* Light overlay */
    backdrop-filter: blur(8px);
    /* Blur the background content */
    -webkit-backdrop-filter: blur(8px);
}

.login-card {
    background: white;
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 450px;
    width: 90%;
    border: 4px solid white;
    /* Thick white border */
    animation: bounce 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #FF4081, #FFD740, #7C4DFF);
}

.login-card h2 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 2rem;
}

.login-card p {
    margin-bottom: 30px;
    color: #888;
    font-size: 1.1rem;
}

.login-card input {
    width: 100%;
    padding: 18px 25px;
    margin-bottom: 25px;
    border: 3px solid #f0f0f0;
    border-radius: 50px;
    /* Fully rounded */
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.3s;
    text-align: center;
    background: #f9f9f9;
}

.login-card input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 5px 20px rgba(255, 64, 129, 0.2);
}

.login-card button {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    /* Pink to Yellow */
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    font-weight: 800;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(255, 64, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 64, 129, 0.3);
}

.error-msg {
    color: #f44336;
    font-size: 0.9rem;
    margin-top: 10px;
    min-height: 20px;
}

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

.shape {
    position: absolute;
    opacity: 0.6;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 64, 129, 0.2);
    top: 10%;
    left: 10%;
    animation-duration: 25s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: rgba(124, 77, 255, 0.2);
    top: 20%;
    right: 20%;
    transform: rotate(45deg);
    animation-duration: 30s;
    animation-direction: reverse;
}

.shape-3 {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid rgba(255, 215, 64, 0.3);
    bottom: 20%;
    left: 15%;
    animation-duration: 20s;
}

.shape-4 {
    width: 40px;
    height: 40px;
    border: 5px solid rgba(0, 230, 118, 0.2);
    border-radius: 10px;
    bottom: 10%;
    right: 10%;
    animation-duration: 15s;
    animation-delay: -5s;
}

.shape-5 {
    width: 20px;
    height: 20px;
    background: #FF6E40;
    opacity: 0.3;
    top: 50%;
    left: 50%;
    animation: float 25s infinite linear reverse;
}

.shape-6 {
    width: 100px;
    height: 10px;
    background: rgba(44, 62, 80, 0.1);
    transform: rotate(-45deg);
    top: 15%;
    left: 40%;
    border-radius: 5px;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

/* Header */
.hero {
    margin-bottom: 60px;
    padding-top: 40px;
}

h1 {
    font-family: 'Pacifico', cursive;
    font-size: 4rem;
    color: var(--primary);
    text-shadow: 2px 2px 0px #fff, 4px 4px 0px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 500;
}

/* Video Section */
.video-section {
    margin-bottom: 60px;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 4px solid #fff;
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.video-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #FF4081, #7C4DFF), url('img/poster.png');
    background-image: url('img/poster.png');
    background-size: cover;
    background-position: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Readable text over image */
}

.video-placeholder:active {
    transform: scale(0.98);
}

.progress-bar {
    width: 60%;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.progress {
    width: 0%;
    height: 100%;
    background: #00E676;
    animation: progressFill 3s linear forwards;
}

@keyframes progressFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.play-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.play-icon:hover {
    transform: scale(1.1);
}

.video-caption {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

/* Section Titles */
.section-title {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin: 40px 0 30px;
    text-shadow: 2px 2px white;
}

/* Personal Message */
.personal-section {
    margin-bottom: 60px;
}

.personal-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 2px solid white;
    text-align: left;
    transform: rotate(1deg);
    transition: transform 0.3s;
}

.personal-card:hover {
    transform: rotate(0deg) scale(1.01);
}

.personal-card h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 2rem;
}

.personal-card p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #4a4a4a;
}

/* Reasons Grid */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.reason-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
    border: 3px solid transparent;
}

.reason-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.reason-card .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.reason-card h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 900;
}

.reason-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Colorful borders for reasons */
/* Colorful borders for reasons */
.reason-card.c1 {
    border-color: #FF4081 !important;
}

.reason-card.c2 {
    border-color: #FFD740 !important;
}

.reason-card.c3 {
    border-color: #7C4DFF !important;
}

.reason-card.c4 {
    border-color: #00E676 !important;
}

.reason-card.c5 {
    border-color: #FF6E40 !important;
}

.reason-card.c6 {
    border-color: #00B0FF !important;
}

.reason-card.c7 {
    border-color: #D500F9 !important;
}

.reason-card.c8 {
    border-color: #1DE9B6 !important;
}

/* Gallery Placeholder */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 60px;
    background: white;
    padding: 15px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transform: rotate(-1deg);
}

.gallery-hint {
    color: #888;
    margin-top: -20px;
    margin-bottom: 30px;
    font-style: italic;
    font-size: 1.1rem;
}

.gallery-item {
    aspect-ratio: 1;
    background: #eee;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: bold;
    border: 2px dashed #ccc;
    transition: all 0.3s;
}

.gallery-item:hover {
    background: #f8f8f8;
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(0.98);
}

/* Wishes Section Update */
.wishes-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.wish-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wish-card:hover {
    transform: translateY(-10px);
    background: white;
}

.wish-card h3 {
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Button */
.celebrate-btn {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(255, 64, 129, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.celebrate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(255, 64, 129, 0.4);
}

.celebrate-btn:active {
    transform: translateY(1px);
}

/* Animations */
@keyframes pulseBg {
    0% {
        transform: scale(1);
    }

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

.bounce-in {
    animation: bounce 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

.fade-in {
    animation: fadeIn 1.5s ease both;
    animation-delay: 0.5s;
}

.fade-in-up {
    animation: fadeInUp 1s ease both;
    animation-delay: 1s;
}

@keyframes bounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

/* Post-fix adjustments */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Gallery Images */
.gallery-item {
    overflow: hidden;
    padding: 0;
    /* Remove padding to let image fill */
}

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

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

/* Mobile */
/* Mobile */
@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    .wishes-section {
        flex-direction: column;
    }

    .wish-card {
        width: 100%;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-10px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(10px);
    }
}

/* Custom Play Button */
.custom-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 64, 129, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 64, 129, 0.5);
    z-index: 10;
    transition: all 0.3s ease;
    animation: pulsePlay 2s infinite;
}

.custom-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 64, 129, 1);
}

.play-icon-inner {
    color: white;
    font-size: 2.5rem;
    margin-left: 5px;
    /* Visual correction for play triangle */
}

@keyframes pulsePlay {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 64, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 64, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 64, 129, 0);
    }
}