/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #f8fafc 0%, #e0e7ff 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==================== HERO SECTION ==================== */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: var(--gradient);
    border-radius: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease;
}

.emoji {
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.features-quick {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.features-quick span {
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--white);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== FORM SECTION ==================== */
.form-section {
    margin-bottom: 60px;
}

.form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 30px;
    text-align: center;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
}

.step-number {
    background: var(--gradient);
    color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== OCCASIONS GRID ==================== */
.occasions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.occasion-card {
    background: var(--light-gray);
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.occasion-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: #e0e7ff;
}

.occasion-card.selected {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-dark);
    transform: scale(1.05);
}

.occasion-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.occasion-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==================== INPUT FIELDS ==================== */
.input-group {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.name-input {
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
}

.name-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ==================== BUTTONS ==================== */
.action-button-container {
    text-align: center;
    margin-top: 30px;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover:not(:disabled) .btn-arrow {
    transform: translateX(5px);
}

.btn-back {
    background: transparent;
    color: var(--gray);
    border: 2px solid #e2e8f0;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-back:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ==================== PREVIEW & SHARE ==================== */
.preview-box {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wish-preview {
    width: 100%;
}

.share-section {
    margin-top: 30px;
}

.link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.link-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: var(--white);
}

.btn-copy {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-copy:hover {
    background: var(--primary-dark);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.btn-share {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    color: var(--white);
}

.share-icon {
    font-size: 1.3rem;
}

.btn-share.whatsapp {
    background: #25D366;
}

.btn-share.whatsapp:hover {
    background: #1ebe57;
}

.btn-share.twitter {
    background: #1DA1F2;
}

.btn-share.twitter:hover {
    background: #0d8ddc;
}

.btn-share.facebook {
    background: #1877F2;
}

.btn-share.facebook:hover {
    background: #0e6bd7;
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-box {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-box p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ==================== FOOTER ==================== */
.footer {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 15px;
    margin-top: 40px;
    box-shadow: var(--shadow-md);
}

.footer p {
    color: var(--gray);
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-dark);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .form-container {
        padding: 25px;
    }

    .occasions-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .occasion-card {
        padding: 20px 10px;
    }

    .occasion-icon {
        font-size: 2rem;
    }

    .occasion-name {
        font-size: 0.8rem;
    }

    .features-quick {
        gap: 10px;
    }

    .features-quick span {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .link-box {
        flex-direction: column;
    }

    .share-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 15px 30px;
        border-radius: 20px;
    }

    .main-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn-primary {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* ==================== DIWALI BANNER STYLES ==================== */
.diwali-banner {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b6b 20%, #ffa500 40%, #ffd700 60%, #ff6b6b 80%, #ff4757 100%);
    background-size: 300% 300%;
    animation: diwaliGradient 4s ease infinite;
    margin: 25px 0;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(255, 71, 87, 0.4), 0 0 0 1px rgba(255, 215, 0, 0.3);
    border: 2px solid #ffd700;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.diwali-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    animation: diwaliSparkle 6s linear infinite;
    z-index: 1;
}

.diwali-banner::after {
    content: '✨';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    animation: diwaliTwinkle 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes diwaliGradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

@keyframes diwaliSparkle {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes diwaliTwinkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.diwali-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    min-height: 120px;
}

.diwali-icon {
    font-size: 5rem;
    animation: diwaliFloat 2s ease-in-out infinite;
    margin-right: 25px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    z-index: 3;
    position: relative;
}

@keyframes diwaliFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.diwali-text {
    flex: 1;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.diwali-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    background: linear-gradient(45deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.diwali-text p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.diwali-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.diwali-features span {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.25), rgba(255, 215, 0, 0.2));
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.diwali-features span:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.35), rgba(255, 215, 0, 0.3));
}

.diwali-cta {
    margin-left: 20px;
}

.diwali-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 200%;
    animation: diwaliButtonGlow 3s ease infinite;
    color: #b45309;
    border: 3px solid #ffed4e;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

.diwali-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.diwali-btn:hover::before {
    left: 100%;
}

.diwali-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.4);
    background: linear-gradient(45deg, #ffed4e, #ffd700, #ffed4e);
}

@keyframes diwaliButtonGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.diwali-btn:active {
    transform: translateY(-1px);
}

.diwali-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(255, 71, 87, 0.5), 0 0 0 2px rgba(255, 215, 0, 0.4);
}

/* Special Diwali Card Styling */
.diwali-special {
    position: relative;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 50%, #ffd700 100%) !important;
    border: 2px solid #ffd700 !important;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4) !important;
    animation: diwaliPulse 2s ease-in-out infinite;
}

.diwali-special .occasion-icon {
    font-size: 2.5rem;
    animation: diwaliGlow 1.5s ease-in-out infinite;
}

.diwali-special .occasion-name {
    color: white !important;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.diwali-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #ff4757, #ff6b6b);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
    animation: diwaliBadgePulse 1s ease-in-out infinite;
}

@keyframes diwaliPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes diwaliGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

@keyframes diwaliBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.diwali-special:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.6) !important;
}

/* Mobile Responsive Diwali Banner */
@media (max-width: 768px) {
    .diwali-banner {
        padding: 20px;
        margin: 15px 0;
    }
    
    .diwali-content {
        flex-direction: column;
        text-align: center;
    }
    
    .diwali-icon {
        font-size: 3rem;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .diwali-text h2 {
        font-size: 1.8rem;
    }
    
    .diwali-text p {
        font-size: 1rem;
    }
    
    .diwali-features {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .diwali-cta {
        margin-left: 0;
    }
    
    .diwali-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* ==================== ADSENSE STYLES ==================== */
.ad-container {
    margin: 20px 0;
    padding: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ad-container ins {
    display: block;
    margin: 0 auto;
}

/* Mobile responsive ads */
@media (max-width: 768px) {
    .ad-container {
        margin: 15px 0;
        padding: 8px;
    }
}

