/* CSS Reset & Variables */
:root {
    /* Color Palette */
    --bg-blue: hsl(198, 93%, 95%);
    --bg-green: hsl(148, 70%, 94%);
    
    --accent-blue: hsl(200, 75%, 45%);
    --accent-blue-hover: hsl(200, 75%, 38%);
    --accent-green: hsl(150, 50%, 42%);
    --accent-green-hover: hsl(150, 50%, 35%);
    
    --text-main: hsl(212, 45%, 15%);
    --text-muted: hsl(212, 20%, 42%);
    
    --card-bg: rgba(255, 255, 255, 0.45);
    --card-border: rgba(255, 255, 255, 0.6);
    --input-bg: rgba(255, 255, 255, 0.7);
    
    /* Fonts */
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--bg-blue) 0%, var(--bg-green) 100%);
    padding: 20px;
}

/* Background Animated Blobs */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    mix-blend-mode: multiply;
    animation: float-blob 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background-color: hsl(190, 85%, 83%);
    animation-duration: 22s;
}

.blob-2 {
    bottom: -15%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background-color: hsl(145, 75%, 84%);
    animation-duration: 28s;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 35vw;
    height: 35vw;
    background-color: hsl(205, 80%, 86%);
    animation-duration: 20s;
    animation-delay: -5s;
}

@keyframes float-blob {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(8%, 12%) scale(1.1) rotate(120deg);
    }
    66% {
        transform: translate(-10%, -6%) scale(0.9) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}

/* Glass Card Design */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    border-radius: 36px;
    padding: 3.5rem 4rem;
    width: 100%;
    max-width: 820px;
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.05),
        0 8px 32px rgba(135, 206, 235, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Header & Logo styling */
.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-svg {
    width: 48px;
    height: 48px;
    color: var(--accent-blue);
    animation: spin-compass 40s linear infinite;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

@keyframes spin-compass {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-text {
    font-family: var(--font-sans);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.logo-accent {
    font-weight: 400;
}

.badge-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-green);
    border-radius: 50%;
    animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.9;
    }
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

/* Card Body Content */
.card-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.main-heading {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.sub-heading {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Countdown Timer Styling */
.countdown-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 580px;
    margin: 0.5rem auto 0 auto;
    width: 100%;
}

.timer-box {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 1.25rem 0.5rem;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.02),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timer-box:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.timer-value {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.timer-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

/* Subscription Form CSS */
.subscription-wrapper {
    max-width: 520px;
    margin: 0.5rem auto 0 auto;
    width: 100%;
}

.form-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.85rem;
    letter-spacing: 0.2px;
}

.subscribe-form {
    position: relative;
}

.input-group {
    display: flex;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 100px;
    padding: 6px;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.03),
        inset 0 2px 4px rgba(0, 0, 0, 0.01);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.input-group:focus-within {
    border-color: rgba(135, 206, 235, 0.8);
    box-shadow: 0 8px 30px rgba(135, 206, 235, 0.15);
    transform: translateY(-1px);
}

.subscribe-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 1.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    width: 100%;
}

.subscribe-form input::placeholder {
    color: var(--text-muted);
    opacity: 0.75;
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-green) 100%);
    border: none;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 180, 160, 0.25);
}

.btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(100, 180, 160, 0.35);
}

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

.btn-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
    transform: translate(2px, -2px);
}

.form-feedback {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 20px;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.form-feedback.success {
    color: hsl(150, 60%, 30%);
    opacity: 1;
}

.form-feedback.error {
    color: hsl(350, 65%, 45%);
    opacity: 1;
}

/* Card Footer Styling */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: 2rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.contact-details {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
}

.contact-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-blue);
}

.whatsapp-link:hover {
    border-color: rgba(74, 201, 89, 0.4);
}

.whatsapp-link:hover .whatsapp-icon {
    color: hsl(140, 65%, 45%);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.03);
}

.social-icon:hover svg {
    stroke: var(--accent-blue);
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s forwards ease-out;
    opacity: 0;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

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

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

/* Responsiveness Settings */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .glass-card {
        padding: 2.5rem 2rem;
        gap: 2rem;
    }
    
    .main-heading {
        font-size: 2.5rem;
    }
    
    .countdown-wrapper {
        gap: 0.75rem;
    }
    
    .timer-box {
        padding: 1rem 0.25rem;
        border-radius: 16px;
    }
    
    .timer-value {
        font-size: 2.25rem;
    }
    
    .timer-label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 1.5rem;
    }
    
    .contact-details {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 2rem 1.25rem;
    }
    
    .main-heading {
        font-size: 2rem;
    }
    
    .sub-heading {
        font-size: 1rem;
    }
    
    .countdown-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
        gap: 0.75rem;
    }
    
    .input-group:focus-within {
        transform: none;
        box-shadow: none;
    }
    
    .subscribe-form input {
        background: var(--input-bg);
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 100px;
        padding: 14px 1.5rem;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    }
    
    .subscribe-form input:focus {
        border-color: rgba(135, 206, 235, 0.8);
        box-shadow: 0 4px 15px rgba(135, 206, 235, 0.15);
    }
    
    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }
    
    .contact-details {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .contact-link {
        justify-content: center;
    }
}
