/* Color Variables and Design System - Light Theme */
:root {
    --bg-light: #f6f8fb;
    --bg-light-secondary: #ffffff;
    --navy-blue: #0b2240;
    --saffron: #ff9933;
    --green: #128807;
    --gold: #f5a623;
    --red: #e01e26;
    
    --text-dark: #0f172a;
    --text-medium: #334155;
    --text-muted: #64748b;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light);
    color: var(--text-medium);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Canvas & Ambient Orbs */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.12;
    z-index: 2;
    pointer-events: none;
    animation: pulse 12s infinite alternate;
}

.orange-glow {
    width: 45vw;
    height: 45vw;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--saffron) 0%, transparent 70%);
}

.green-glow {
    width: 40vw;
    height: 40vw;
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--green) 0%, transparent 70%);
    animation-delay: -3s;
}

.blue-glow {
    width: 35vw;
    height: 35vw;
    top: 40%;
    left: 45%;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    animation-delay: -6s;
    opacity: 0.07;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(30px, 20px); }
}

/* Main Container Layout */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* Header & Brand Logo */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    perspective: 1000px;
}

.brand-logo {
    max-width: 160px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(11, 34, 64, 0.08), 
                0 0 0 1px rgba(11, 34, 64, 0.03),
                0 0 25px rgba(245, 166, 35, 0.1);
    background: #ffffff;
    padding: 6px;
    transition: var(--transition-bounce);
    animation: float 6s ease-in-out infinite;
}

.brand-logo:hover {
    transform: translateY(-6px) rotateY(8deg) scale(1.03);
    box-shadow: 0 20px 45px rgba(11, 34, 64, 0.12), 
                0 0 0 2px rgba(255, 153, 51, 0.15),
                0 0 30px rgba(245, 166, 35, 0.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.5deg); }
}

/* Central Content Card */
.content-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 50px 60px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(11, 34, 64, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--saffron), #ffffff, var(--green));
}

/* Badge Element */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 34, 64, 0.04);
    border: 1px solid rgba(11, 34, 64, 0.06);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--saffron);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--saffron);
    animation: blink 1.5s infinite;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--navy-blue);
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Typography & Headings */
.main-heading {
    font-family: var(--font-heading);
    font-size: 2.65rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: var(--navy-blue);
    margin-bottom: 20px;
}

.gradient-text-ap {
    background: linear-gradient(135deg, var(--navy-blue) 40%, var(--red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.description {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto 36px;
}

/* Email Signup Form */
.form-wrapper {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    width: 100%;
}

.input-group {
    position: relative;
    flex-grow: 1;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.subscribe-form input {
    width: 100%;
    padding: 16px 20px 16px 54px;
    background: #ffffff;
    border: 1px solid rgba(11, 34, 64, 0.12);
    border-radius: 16px;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--saffron);
    box-shadow: 0 0 15px rgba(255, 153, 51, 0.12);
}

.subscribe-form input:focus + .input-icon {
    color: var(--saffron);
}

.submit-btn {
    position: relative;
    padding: 0 28px;
    background: var(--navy-blue);
    border: none;
    border-radius: 16px;
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    background: #143560;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(11, 34, 64, 0.2);
}

.submit-btn:active {
    transform: scale(0.98);
}

.btn-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

.feedback-msg {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 20px;
    transition: var(--transition-smooth);
}

.feedback-msg.error {
    color: var(--red);
}

.feedback-msg.success {
    color: var(--green);
}

/* Footer */
.footer-area {
    text-align: center;
    width: 100%;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Success Toast Notification - Light theme */
.toast {
    position: fixed;
    bottom: 30px;
    right: -400px;
    background: #ffffff;
    border: 1px solid rgba(18, 136, 7, 0.3);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 15px 35px rgba(11, 34, 64, 0.08), 
                0 0 20px rgba(18, 136, 7, 0.05);
    z-index: 1000;
    transition: cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s all;
    max-width: 350px;
    backdrop-filter: blur(10px);
}

.toast.show {
    right: 30px;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 1.5rem;
    color: var(--green);
}

.toast-message h4 {
    font-family: var(--font-heading);
    color: var(--navy-blue);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.toast-message p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.3;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.toast-close:hover {
    color: var(--text-dark);
}

/* Keyframe Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

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

/* Apply animation delays */
.logo-container {
    animation: fadeIn 1s ease forwards;
}
.content-card {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
}
.badge { animation-delay: 0.3s; }
.main-heading { animation-delay: 0.4s; }
.description { animation-delay: 0.5s; }
.form-wrapper { animation-delay: 0.6s; }
.footer-area { animation-delay: 0.7s; }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .content-card {
        padding: 36px 24px;
        border-radius: 24px;
    }

    .main-heading {
        font-size: 2rem;
    }

    .subscribe-form {
        flex-direction: column;
        gap: 12px;
    }

    .submit-btn {
        padding: 16px;
        justify-content: center;
    }
    
    .toast {
        left: 20px;
        right: 20px;
        max-width: none;
        bottom: 20px;
    }
    
    .toast.show {
        right: 20px;
    }
}
