
:root {
    --gradient-bg: linear-gradient(135deg, #4158D0 0%, #08D9D6 100%);
    --text-ocean: #08D9D6;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-gray: #475569;
    --border-light: #e2e8f0;
    --btn-hover: #f8fafc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Overlay */
.somnath-pop-home-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999999999;
    animation: fadeInOverlay 0.5s ease;
    padding: 15px;
}

/* Popup Box - Minimized vertical padding for an ultra-compact height */
.somnath-pop-home-box {
    width: 100%;
    max-width: 630px;
    background: var(--white);
    border-radius: 14px;
    padding: 18px 24px 22px 24px; /* Noticeably reduced top and bottom padding */
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
    animation: popOpen 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Close Button */
.somnath-pop-home-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.somnath-pop-home-close:hover {
    background: #e2e8f0;
    color: var(--text-dark);
    transform: rotate(90deg);
}

/* Initial state for cascading text */
.animate-text {
    opacity: 0;
    transform: translateY(15px); /* Reduced slide distance for faster alignment */
}

.delay-1 {
    animation: slideUpFade 0.5s ease forwards 0.12s;
}

.delay-3 {
    animation: slideUpFade 0.5s ease forwards 0.25s;
}

.delay-4 {
    animation: slideUpFade 0.5s ease forwards 0.35s;
}

/* Badge */
.somnath-pop-home-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f0fdfa;
    color: #0d9488;
    border-radius: 50px;
    margin-bottom: 8px; /* Tighter margins */
    font-size: clamp(11px, 2.2vw, 12px);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Title */
.somnath-pop-home-title {
    font-size: clamp(19px, 5vw, 23px);
    font-weight: 800;
    margin-bottom: 8px; /* Tighter margins */
    line-height: 1.25;

    background: linear-gradient(270deg, #4158D0, #C850C0, #FFCC70, #08D9D6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: slideUpFade 0.5s ease forwards 0.2s, textGradientFlow 5s ease infinite 0.8s;
    opacity: 0;
}

/* Text */
.somnath-pop-home-text {
    color: var(--text-gray);
    font-size: clamp(13px, 3.2vw, 14.5px);
    line-height: 1.45;
    margin-bottom: 16px; /* Reduced layout spacing gap */
    padding: 0 10px;
}

/* Buttons Container */
.somnath-pop-home-btns {
    display: flex;
    justify-content: center;
}

/* Decreased Size Primary Button */
.somnath-pop-home-btn-primary {
    text-decoration: none;
    padding: 8px 28px; /* Noticeably decreased size */
    border-radius: 50px;
    font-weight: 600;
    font-size: 13.5px; /* Slightly scaled down text size */
    transition: all 0.3s ease;
    display: inline-block;
    background: var(--gradient-bg);
    color: var(--white);
    box-shadow: 0 6px 12px rgba(65, 88, 208, 0.15);
}

.somnath-pop-home-btn-primary:hover {
    box-shadow: 0 10px 16px rgba(65, 88, 208, 0.25);
}

/* --- Original Core Keyframes Unaltered --- */
@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOutOverlay {
    from { opacity: 1; }
    to { opacity: 0; }
}

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

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes closeAnimation {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(15px);
    }
}

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

/* Mobile Clean Up */
@media (max-width: 480px) {
    .somnath-pop-home-btn-primary {
        width: 100%;
        padding: 9px 20px;
    }
}
