/* =========================================================================
   GoviSaviya - Coming Soon Styles
   Theme: Agriculture / Modern Neon Green / Glassmorphism / Dark Mode
   ========================================================================= */

:root {
    /* Color Palette */
    --clr-bg: #050a06;
    /* Very Deep Forest Green / Black */
    --clr-primary: #10b981;
    /* Emerald Green */
    --clr-primary-bright: #34d399;
    /* Bright Neon Green */
    --clr-secondary: #bef264;
    /* Lime Yellow/Green */
    --clr-text-main: #f8fafc;
    /* Off-White */
    --clr-text-muted: #94a3b8;
    /* Slate Gray/Green tinted */

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(16, 185, 129, 0.15);

    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Animation & Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-out;
}

/* -------------------------------------------------------------------------
   Native Resets & Base Styles
   ------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    /* Hide native cursor to show custom cursor */
    cursor: none;
    position: relative;
}

/* Ensure links and buttons hide native cursor too */
a,
button,
input {
    cursor: none;
}

/* -------------------------------------------------------------------------
   Custom Animated Cursor
   ------------------------------------------------------------------------- */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--clr-primary-bright);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform var(--transition-fast);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(52, 211, 153, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width var(--transition-fast), height var(--transition-fast), background-color var(--transition-fast);
}

/* Hover state for cursor (managed via JS) */
.cursor-outline.hover-state {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.8);
}

/* -------------------------------------------------------------------------
   Background Glowing Orbs / Effects
   ------------------------------------------------------------------------- */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-image: linear-gradient(rgba(5, 10, 6, 0.75), rgba(5, 10, 6, 0.85)), url('background_optimized.webp');
    background-size: cover;
    background-position: 30% center;
    /* Shifted to make face visible */
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Keep it above background but below the glass card */
    pointer-events: none;
    opacity: 1.0;
    /* Increased visibility */
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--clr-primary) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.blob-2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--clr-secondary) 0%, transparent 70%);
    bottom: -20%;
    right: -10%;
    animation-duration: 30s;
    animation-delay: -5s;
    opacity: 0.4;
}

.blob-3 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #059669 0%, transparent 70%);
    top: 40%;
    left: 40%;
    animation-duration: 20s;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(5%, 10%) scale(1.1);
    }

    100% {
        transform: translate(-5%, -5%) scale(0.95);
    }
}

/* Grid Noise Overlay for Texture */
.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* -------------------------------------------------------------------------
   Main Layout & Glassmorphism Card
   ------------------------------------------------------------------------- */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 4rem 3rem;
    max-width: 640px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Inner glow accent for top edge */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-primary-bright), transparent);
    opacity: 0.5;
}

/* -------------------------------------------------------------------------
   Language Switcher
   ------------------------------------------------------------------------- */
.lang-switcher {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 50;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 6px;
    border-radius: 100px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: 100px;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: var(--clr-text-main);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    background: var(--clr-primary);
    color: #000;
}

/* -------------------------------------------------------------------------
   Typography & Content
   ------------------------------------------------------------------------- */
.launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--clr-primary-bright);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--clr-primary-bright);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background-color: var(--clr-primary-bright);
    border-radius: 50%;
    animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--clr-text-main);
}

.text-gradient {
    background: linear-gradient(135deg, var(--clr-primary-bright) 0%, var(--clr-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    margin-bottom: 3rem;
    max-width: 480px;
    margin-inline: auto;
}

/* -------------------------------------------------------------------------
   Form / Input
   ------------------------------------------------------------------------- */
.notify-form {
    margin-bottom: 3rem;
}

.input-wrapper {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 6px;
    transition: var(--transition-smooth);
    position: relative;
}

.input-wrapper:focus-within {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.modern-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 1.5rem;
    color: var(--clr-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

.modern-input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--clr-primary);
    color: #000;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.modern-btn:hover {
    background: var(--clr-primary-bright);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--clr-primary-bright);
}

.modern-btn:hover::before {
    opacity: 1;
}

.btn-icon {
    transition: transform var(--transition-smooth);
}

.modern-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* -------------------------------------------------------------------------
   Social Links
   ------------------------------------------------------------------------- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--clr-text-muted);
    transition: var(--transition-smooth);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.social-btn:hover {
    color: var(--clr-primary-bright);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-4px);
}

/* -------------------------------------------------------------------------
   Inquiries
   ------------------------------------------------------------------------- */
.inquiries {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.inquiries span {
    opacity: 0.8;
}

.inquiries a,
.email-link {
    color: var(--clr-secondary) !important;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    display: inline-block;
}

.inquiries a:hover,
.email-link:hover {
    color: var(--clr-primary-bright) !important;
    text-decoration: underline;
    transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.footer {
    position: absolute;
    bottom: 2rem;
    text-align: center;
    width: 100%;
    font-size: 0.875rem;
    color: rgba(148, 163, 184, 0.5);
}

/* -------------------------------------------------------------------------
   Entrance Animations
   ------------------------------------------------------------------------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------------------
   Responsive Design
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .glass-card {
        padding: 3rem 2rem;
    }
}

@media (max-width: 640px) {
    .lang-switcher {
        top: 1rem;
        right: 1rem;
        padding: 4px;
        gap: 0.25rem;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .main-container {
        padding: 1rem;
    }

    .glass-card {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .input-wrapper {
        flex-direction: column;
        background: transparent;
        border: none;
        gap: 12px;
        padding: 0;
    }

    .input-wrapper:focus-within {
        box-shadow: none;
    }

    .modern-input {
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid var(--glass-border);
        padding: 16px;
        border-radius: 12px;
        width: 100%;
        text-align: center;
    }

    .modern-input:focus {
        border-color: var(--clr-primary);
    }

    .modern-btn {
        width: 100%;
        justify-content: center;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
        /* Hide custom cursor on mobile */
    }

    body {
        cursor: auto;
        /* Restore native cursor on mobile */
    }

    a,
    button,
    input {
        cursor: pointer;
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .glass-card {
        padding: 2rem 1rem;
    }

    .launch-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .social-btn {
        width: 40px;
        height: 40px;
    }
}