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

body {
    font-family: Georgia, serif;
    background: #160b04;
    color: #f8dfad;
}

.page {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px 15px;

    background:
        radial-gradient(
            circle at center,
            #75451d 0%,
            #321707 45%,
            #100602 100%
        );
}

.greeting-card {
    width: 100%;
    max-width: 1000px;

    padding: 35px 25px;

    text-align: center;

    border: 2px solid #d5a85f;
    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            rgba(75, 37, 12, 0.95),
            rgba(24, 9, 2, 0.98)
        );

    box-shadow:
        0 0 35px rgba(255, 187, 80, 0.25),
        inset 0 0 40px rgba(255, 190, 90, 0.08);

    overflow: hidden;
}

.top-title {
    display: inline-block;

    padding: 12px 25px;

    border: 1px solid #caa36b;
    border-radius: 8px;

    color: #f5dcae;

    font-size: 15px;
    letter-spacing: 1px;

    margin-bottom: 25px;
}

h2 {
    font-size: 30px;
    letter-spacing: 2px;

    color: #e5b875;
}

.subtitle {
    margin-top: 8px;

    font-size: 15px;
    letter-spacing: 1px;

    color: #b7c6b3;
}

/* LOGOS AND GANESHA STAGE */

.brand-stage {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 30px;

    min-height: 250px;

    margin: 25px 0;

    position: relative;
}

/* Logos */

.brand {
    width: 150px;

    opacity: 1;

    z-index: 3;

    animation-duration: 2s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

.brand img {
    width: 100%;

    display: block;

    filter:
        drop-shadow(0 0 10px rgba(255, 207, 123, 0.4));
}

/* Left logo enters from left */

.left-brand {
    animation-name: slideFromLeft;
}

/* Right logo enters from right */

.right-brand {
    animation-name: slideFromRight;
}

/* Ganesha container */

.ganesha-container {
    width: 180px;
    height: 250px;
    
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 2;
}

/* Realistic Ganesha image */

.ganesha {
    width: 100%;
    max-height: 320px;

    object-fit: contain;

    opacity: 0.5;

    transform: scale(0.1);

    filter:
        drop-shadow(0 0 8px rgba(255, 184, 70, 0.5)) brightness(1.5);

    animation:
        ganeshaForm 4s ease-out 1.2s forwards,
        ganeshaGlow 2s ease-in-out 5.2s infinite alternate;
}

/* Golden rays behind Ganesha */

.light-rays {
    position: absolute;

    width: 240px;
    height: 240px;

    border-radius: 50%;

    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(255, 202, 105, 0.7) 0deg 3deg,
            transparent 3deg 15deg
        );

    opacity: 0;

    animation:
        raysAppear 3s ease-in-out 1.5s forwards,
        rotateRays 20s linear 4.5s infinite;

    filter: blur(1px);

    z-index: -1;
}

/* Individual glowing lights */

.light {
    position: absolute;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #ffe7a3;

    box-shadow:
        0 0 10px #ffd16b,
        0 0 25px #ffad36,
        0 0 40px #ff9e27;

    opacity: 0;

    animation:
        lightAppear 1s ease-in-out 2s forwards,
        lightPulse 1.8s ease-in-out 3s infinite alternate;
}

.light-one {
    top: 30px;
    left: 120px;
}

.light-two {
    top: 90px;
    left: 15px;
}

.light-three {
    top: 180px;
    left: 5px;
}

.light-four {
    top: 270px;
    left: 80px;
}

.light-five {
    top: 180px;
    right: 5px;
}

.light-six {
    top: 90px;
    right: 15px;
}

.flower-decoration {
    position: absolute;

    bottom: -8px;

    font-size: 22px;

    opacity: 0;

    animation: flowerAppear 2s ease-in-out 4s forwards;
}

/* Wishes */

.wish-line {
    font-size: 21px;

    color: #f0d09b;

    margin-top: 20px;
}

h1 {
    font-size: 45px;

    color: #e8b66e;

    letter-spacing: 2px;

    margin: 12px 0;

    text-shadow:
        2px 2px 5px #000,
        0 0 15px rgba(238, 177, 84, 0.2);
}

.blessing {
    max-width: 650px;

    margin: auto;

    line-height: 1.8;

    color: #f3dfbd;

    font-size: 16px;
}

.founder {
    margin-top: 25px;

    font-size: 15px;

    color: #d8b17a;

    letter-spacing: 1px;
}

.details {
    margin-top: 22px;

    line-height: 2;

    font-size: 15px;
}

.details a {
    color: #f5cf8b;

    text-decoration: none;

    transition: 0.3s;
}

.details a:hover {
    color: white;

    text-shadow: 0 0 10px #ffc76b;
}

.signature {
    font-size: 24px;

    margin-top: 25px;

    color: #e6c18b;
}

button {
    margin-top: 25px;

    padding: 13px 25px;

    border: none;
    border-radius: 25px;

    background: linear-gradient(
        90deg,
        #c58b38,
        #f6d795
    );

    color: #321604;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

button:hover {
    transform: scale(1.05);

    box-shadow: 0 0 20px #e8b45e;
}

/* ANIMATIONS */

@keyframes slideFromLeft {

    from {
        opacity: 0;
        transform: translateX(-180px);
    }

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

}

@keyframes slideFromRight {

    from {
        opacity: 0;
        transform: translateX(180px);
    }

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

}

@keyframes ganeshaForm {

    0% {
        opacity: 0;
        transform: scale(0.1);
        filter: blur(18px) brightness(0.4);
    }

    40% {
        opacity: 0.35;
        transform: scale(0.55);
        filter: blur(8px) brightness(0.8);
    }

    75% {
        opacity: 0.8;
        transform: scale(0.9);
        filter: blur(2px) brightness(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0) brightness(1);
    }

}

@keyframes ganeshaGlow {

    from {
        filter:
            drop-shadow(0 0 8px rgba(255, 184, 70, 0.5));
    }

    to {
        filter:
            drop-shadow(0 0 25px rgba(255, 198, 91, 0.95));
    }

}

@keyframes raysAppear {

    from {
        opacity: 0;
        transform: scale(0.2);
    }

    to {
        opacity: 0.8;
        transform: scale(1);
    }

}

@keyframes rotateRays {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

@keyframes lightAppear {

    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}

@keyframes lightPulse {

    from {
        box-shadow:
            0 0 8px #ffd16b,
            0 0 15px #ffad36;
    }

    to {
        box-shadow:
            0 0 20px #ffe3a1,
            0 0 45px #ff9e27;
    }

}

@keyframes flowerAppear {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

}

/* MOBILE DESIGN */

@media (max-width: 750px) {

    .greeting-card {
        padding: 25px 12px;
    }

    h2 {
        font-size: 22px;
    }

    .subtitle {
        font-size: 11px;
    }

    .brand-stage {
        gap: 5px;
        min-height: 240px;
    }

    .brand {
        width: 105px;
    }

    .ganesha-container {
        width: 145px;
        height: 240px;
    }

    .ganesha {
        max-height: 230px;
    }

    .light-rays {
        width: 150px;
        height: 150px;
    }

    h1 {
        font-size: 28px;
    }

    .wish-line {
        font-size: 14px;
    }

    .blessing {
        font-size: 13px;
    }

    .top-title {
        font-size: 10px;
    }

}
