:root {
    --primary: #00f3ff;
    --primary-dim: rgba(0, 243, 255, 0.2);
    --secondary: #bc13fe;
    --bg-dark: #050510;
    --glass: rgba(10, 10, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: white;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: pulse-bg 10s infinite alternate;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 90%);
}

@keyframes pulse-bg {
    0% {
        transform: scale(1);
        filter: brightness(0.8);
    }

    100% {
        transform: scale(1.05);
        filter: brightness(1);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

h1 {
    font-family: var(--font-head);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--secondary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(14px, 9999px, 127px, 0);
    }

    20% {
        clip: rect(93px, 9999px, 13px, 0);
    }

    40% {
        clip: rect(56px, 9999px, 139px, 0);
    }

    60% {
        clip: rect(10px, 9999px, 2px, 0);
    }

    80% {
        clip: rect(138px, 9999px, 128px, 0);
    }

    100% {
        clip: rect(43px, 9999px, 102px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 119px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 93px, 0);
    }

    40% {
        clip: rect(139px, 9999px, 13px, 0);
    }

    60% {
        clip: rect(89px, 9999px, 140px, 0);
    }

    80% {
        clip: rect(2px, 9999px, 52px, 0);
    }

    100% {
        clip: rect(50px, 9999px, 86px, 0);
    }
}

/* Interface */
.oracle-interface {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.oracle-interface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    color: black;
    box-shadow: 0 0 30px var(--primary);
}

/* Mode Selector */
.mode-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.mode-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.mode-label:hover {
    opacity: 1;
}

.mode-icon {
    font-size: 1.5rem;
}

.mode-text {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 243, 255, 0.3);
    transition: 0.4s;
    border-radius: 30px;
    border: 1px solid var(--primary);
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 3px;
    background-color: var(--primary);
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

input:checked+.slider {
    background-color: rgba(188, 19, 254, 0.3);
    border-color: var(--secondary);
}

input:checked+.slider:before {
    background-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
    transform: translateX(30px);
}

/* Input Group */
.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.input-wrapper {
    display: flex;
    gap: 1rem;
}

input[type="text"] {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-family: var(--font-body);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-dim);
}

.btn-neon {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0 2rem;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.btn-neon:hover {
    background: var(--primary);
    color: black;
    box-shadow: 0 0 30px var(--primary);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-neon:hover .btn-bg {
    left: 100%;
}

/* Output Area */
.output-area {
    min-height: 200px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--glass-border);
}

.placeholder-text {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

/* Loader */
.loader {
    text-align: center;
}

.scanner {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.processing-text {
    font-size: 0.9rem;
    letter-spacing: 2px;
    animation: blink 1s infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

/* Prediction Result */
.prediction-content {
    width: 100%;
    text-align: left;
}

.confidence-meter {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--primary);
}

.meter-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    border-radius: 2px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 1s ease-out;
}

#prediction-text {
    font-size: 1.4rem;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.hidden {
    display: none !important;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Advertisement Styles - Left Sidebar */
.ad-container {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 50;
}

.ad-placeholder {
    width: 100%;
    height: 600px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Donation Wrapper */
.donation-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 100;
}

.donation-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.donation-buttons {
    display: flex;
    gap: 10px;
}

/* Donation Buttons */
.donation-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: bold;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    cursor: pointer;
}

.donation-btn:hover {
    background: var(--primary);
    color: black;
    box-shadow: 0 0 20px var(--primary);
    transform: translateY(-2px);
}

.vipps-btn {
    border-color: #ff5b24;
    color: #ff5b24;
    box-shadow: 0 0 10px rgba(255, 91, 36, 0.2);
}

.vipps-btn:hover {
    background: #ff5b24;
    color: white;
    box-shadow: 0 0 20px #ff5b24;
}

.donation-btn span:first-child {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .ad-container {
        display: none;
    }
}

@media (max-width: 600px) {
    .mode-selector {
        flex-direction: column;
        gap: 1rem;
    }

    .input-wrapper {
        flex-direction: column;
    }

    h1 {
        font-size: 2.5rem;
    }

    .oracle-interface {
        padding: 1.5rem;
    }

    .donation-wrapper {
        bottom: 10px;
        right: 10px;
        align-items: center;
    }

    .donation-text {
        font-size: 0.7rem;
    }

    .donation-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* Blog Styles */
.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    text-shadow: 0 0 10px var(--primary);
    transform: translateX(-5px);
}

.blog-section {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.blog-post h2 {
    color: var(--primary);
    font-family: var(--font-head);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.blog-post h3 {
    color: var(--secondary);
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.post-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.blog-post p {
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.blog-post ul {
    margin: 1rem 0 1rem 2rem;
}

.blog-post li {
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.blog-post strong {
    color: var(--primary);
}

.blog-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--primary);
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(0, 243, 255, 0.1);
}

.blog-link:hover {
    background: var(--primary);
    color: black;
    box-shadow: 0 0 20px var(--primary);
    transform: translateY(-2px);
}
/* Better Text Visibility */
body {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.mode-label {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    opacity: 0.9 !important;
}

.mode-label:hover {
    opacity: 1 !important;
    text-shadow: 0 0 15px var(--primary);
}

.input-group label {
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.8);
}

#prediction-text {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 255, 255, 0.5) !important;
    font-weight: 500;
}

.placeholder-text {
    color: rgba(255, 255, 255, 0.6) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.processing-text {
    text-shadow: 0 0 10px var(--primary);
}
