:root {
    --primary-dark: #0f0c29;
    --secondary-dark: #302b63;
    --accent-purple: #24243e;
    --gold: #FFD700;
    --gold-glow: #ffdb4d;
    --text-light: #ffffff;
    --text-dim: #e0e0e0;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark), var(--accent-purple));
    min-height: 100vh;
    color: var(--text-light);
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.magical-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(48, 43, 99, 0.4) 0%, rgba(15, 12, 41, 0.8) 100%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Typography */
@font-face {
    font-family: 'RIT-Ala';
    src: url('RIT-Ala.ttf') format('truetype');
}

.malayalam-text {
    font-family: 'RIT-Ala', 'Baloo Chettan 2', cursive;
    font-size: 1.8rem;
    /* Increased size for better readability of the new font */
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-dim);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.highlight-name {
    color: var(--gold);
    font-weight: 800;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    display: inline-block;
    margin-top: 0.5rem;
}

/* Lamp Animation */
.lamp-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
}

.magic-lamp {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

.lamp-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

/* Button Styling */
.magic-btn {
    background: linear-gradient(45deg, #4b0082, #800080);
    border: 2px solid var(--gold);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 2rem;
    box-shadow: 0 0 20px rgba(75, 0, 130, 0.5);
}

.btn-text {
    font-family: 'Noto Sans Malayalam', sans-serif;
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.btn-icon {
    font-size: 1.5rem;
    margin-left: 10px;
    vertical-align: middle;
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.magic-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    border-color: var(--gold-glow);
}

.magic-btn:hover .btn-glow {
    opacity: 1;
    transform: rotate(45deg) translate(20%, 20%);
}

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

/* Animations */
@keyframes float {

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

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.5s;
}

.delay-2 {
    animation-delay: 1s;
}

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

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 3s linear infinite;
}

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

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .malayalam-text {
        font-size: 1.2rem;
    }

    .highlight-name {
        font-size: 1.5rem;
    }

    .lamp-container {
        width: 120px;
        height: 120px;
    }

    .magic-btn {
        padding: 0.8rem 1.5rem;
    }

    .btn-text {
        font-size: 1rem;
        white-space: nowrap;
    }
}