@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    --bg-dark: #0A0A0B;
    --pulse-orange: #f15f29;
    --chat-blue: #0d7de5;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #F8FAFC;
    --text-dim: #94A3B8;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: #FFFFFF;
    /* High contrast text */
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Background Effects */
.pulse-bg-glow {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(241, 95, 41, 0.1) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    animation: drift 20s infinite alternate ease-in-out;
}

@keyframes drift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-10%, 10%);
    }
}

/* Navigation - Intentional Minimalism */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 10, 11, 0.7);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    list-style-type: none !important;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none !important;
    display: block !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    background: linear-gradient(90deg, var(--pulse-orange), var(--chat-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 5%;
    position: relative;
}

.badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pulse-orange);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    max-width: 900px;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 800;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Glass Buttons */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 1.2rem 2.8rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pulse-orange), #fb5b1e);
    color: white;
    box-shadow: 0 10px 40px -10px rgba(241, 95, 41, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px -12px rgba(241, 95, 41, 0.6);
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

/* Admin Dashboard styles */
.admin-container {
    padding: 100px 5%;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    margin-bottom: 2rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-item h4 {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.stat-item .val {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--pulse-orange);
}

/* Footer */
.main-footer {
    padding: 6rem 5% 4rem;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(to bottom, transparent, rgba(241, 95, 41, 0.02));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-icon {
    font-size: 1.8rem;
    color: var(--text-dim);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-icon:hover {
    color: var(--pulse-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.legal {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.legal a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.6;
    transition: 0.3s;
}

.legal a:hover {
    opacity: 1;
}

/* Real-time PulseSecure Verification Overlay */
#pulse-secure-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#pulse-secure-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.secure-loader {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.secure-loader::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(241, 95, 41, 0.2) 0%, transparent 70%);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.secure-status {
    margin-top: 2rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    text-align: center;
}

.secure-status .text {
    font-size: 1.1rem;
    opacity: 0.8;
}

.secure-status .powered {
    font-size: 0.75rem;
    opacity: 0.4;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.check-container {
    display: none;
    color: #10B981;
    font-size: 3rem;
}

.check-container.show {
    display: block;
    animation: zoom-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoom-in {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

html {
    scroll-behavior: smooth;
}

/* Navigation Links */
.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--pulse-orange);
}

/* Feature Card Enhancements */
.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(241, 95, 41, 0.3);
    box-shadow: 0 20px 40px -15px rgba(241, 95, 41, 0.15);
}

/* Support Buttons */
.support-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .nav-links {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        min-height: 80vh;
        padding-top: 8rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating Report Button (Bottom Right) */
#floating-report-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 100px;
    color: var(--text-dim) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    backdrop-filter: blur(15px);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#floating-report-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    color: white !important;
}

#floating-report-btn ion-icon {
    font-size: 1.2rem;
    color: var(--pulse-orange);
}

/* Side Report Drawer - Advanced UI */
#pc-report-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(40px);
    border-left: 1px solid var(--glass-border);
    z-index: 10001;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 3rem 2.5rem;
}

#pc-report-drawer.open {
    transform: translateX(-450px);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.drawer-header h3 {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-drawer {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-drawer:hover {
    color: var(--pulse-orange);
    transform: rotate(90deg);
}

.drawer-body p {
    color: var(--text-dim) !important;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

#report-form .input-group {
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#report-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pulse-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#report-form input,
#report-form textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

#report-form textarea {
    height: 150px;
    resize: none;
}

#report-form input:focus,
#report-form textarea:focus {
    outline: none;
    border-color: var(--pulse-orange);
    background: rgba(255, 255, 255, 0.06);
}

.submit-report {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    border: none;
}

.drawer-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.drawer-footer p {
    font-size: 0.8rem;
    opacity: 0.5;
    text-align: center;
}

/* Drawer Backdrop Overlay */
#drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
}

#drawer-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Spin Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Responsive Drawer */
@media (max-width: 480px) {
    #pc-report-drawer {
        width: 100%;
        right: -100%;
        padding: 2.5rem 1.5rem;
    }

    #pc-report-drawer.open {
        transform: translateX(-100%);
    }
}