/* ========================================
   ROOT VARIABLES (Volcanic Amber Glassmorphism)
======================================== */
:root {
    /* Obsidian Palette */
    --obsidian-dark: #080808;
    --obsidian-light: #151515;

    /* Volcanic Amber Palette */
    --amber-primary: #FF4500;
    /* Orange Red */
    --amber-dark: #FF8C00;
    /* Dark Orange */
    --amber-light: #FFDAB9;
    --amber-glow: rgba(255, 69, 0, 0.4);

    /* Glassmorphism */
    --glass-bg: rgba(25, 25, 25, 0.6);
    --glass-border: rgba(255, 69, 0, 0.2);
    --glass-border-hover: rgba(255, 69, 0, 0.5);

    /* Text */
    --text-primary: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);

    /* Alerts */
    --danger: #FF3333;
    --success: #00FF9D;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    /* For premium headers */

    /* Physics */
    --smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--obsidian-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

main {
    flex: 1;
}

/* ========================================
   ANIMATED BACKGROUNDS (Orbs & Particles)
======================================== */
.orb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.amber-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--amber-primary), transparent 70%);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--amber-dark), transparent 70%);
    bottom: -200px;
    right: -200px;
    animation-duration: 25s;
    animation-direction: alternate-reverse;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #FFA500, transparent 70%);
    top: 40%;
    left: 60%;
    animation-duration: 15s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, -50px) scale(1.1);
    }
}

/* Floating Particles */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--amber-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--amber-primary);
    opacity: 0;
    animation: particleFloat 10s infinite linear;
}

.p-1 {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.p-2 {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 15s;
}

.p-3 {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 10s;
}

.p-4 {
    left: 70%;
    animation-delay: 1s;
    animation-duration: 14s;
}

.p-5 {
    left: 90%;
    animation-delay: 3s;
    animation-duration: 11s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

/* ========================================
   GLOBAL ANIMATIONS (Staggered Reveals)
======================================== */
.anim-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s var(--spring) forwards;
}

.anim-slide-down {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeUp 1s var(--spring) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.4s;
}

.delay-4 {
    animation-delay: 0.6s;
}

.delay-5 {
    animation-delay: 0.8s;
}

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

/* Hover Physics */
.hover-lift {
    transition: transform 0.4s var(--spring), box-shadow 0.4s var(--spring);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--amber-glow);
}

.hover-glow {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.hover-glow:hover {
    color: var(--amber-primary) !important;
    text-shadow: 0 0 10px var(--amber-glow);
}

.hover-float {
    transition: transform 0.4s var(--spring);
}

.hover-float:hover {
    transform: translateY(-5px) scale(1.02);
}

/* ========================================
   TYPOGRAPHY
======================================== */
.text-amber {
    color: var(--amber-primary);
}

.amber-glow {
    color: var(--amber-primary);
    text-shadow: 0 0 15px var(--amber-glow);
}

.amber-gradient-text {
    background: linear-gradient(45deg, var(--amber-light), var(--amber-primary), var(--amber-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: amberShineText 3s linear infinite;
}

@keyframes amberShineText {
    to {
        background-position: 200% center;
    }
}

/* ========================================
   GLASS NAVBAR
======================================== */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.nav-logo {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--amber-primary);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--amber-glow);
    background: rgba(255, 69, 0, 0.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--amber-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--amber-primary);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* ========================================
   HERO
======================================== */
.glass-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 20px 80px;
    position: relative;
    z-index: 10;
}

.hero-header {
    text-align: center;
    margin-bottom: 60px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    background: rgba(255, 69, 0, 0.1);
    border: 1px solid var(--amber-glow);
    color: var(--amber-primary);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.float-anim {
    animation: smoothFloat 4s infinite ease-in-out alternate;
}

@keyframes smoothFloat {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   GLASS CARDS
======================================== */
.glass-card,
.result-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
}

.card-header {
    padding: 30px;
    text-align: center;
}

.border-bottom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Tabs */
.glass-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--glass-border);
}

.glass-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 18px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--smooth);
}

.glass-tab:hover {
    color: var(--text-primary);
}

.glass-tab.active {
    color: var(--amber-primary);
    background: rgba(255, 69, 0, 0.05);
    box-shadow: inset 0 -2px 0 var(--amber-primary);
}

.card-body {
    padding: 40px 30px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeUp 0.5s var(--spring) forwards;
}

/* Inputs with glowing borders */
.glow-focus-wrap {
    position: relative;
    border-radius: 12px;
}

.glass-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: var(--smooth);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-main);
}

.glow-border {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    border: 1px solid var(--amber-primary);
    opacity: 0;
    box-shadow: 0 0 20px var(--amber-glow), inset 0 0 20px var(--amber-glow);
    transition: opacity 0.4s ease;
}

.glass-input:focus+.glow-border {
    opacity: 1;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.char-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--smooth);
}

/* Upload Area */
.glass-upload {
    border: 1px dashed rgba(255, 69, 0, 0.3);
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--smooth);
    background: rgba(0, 0, 0, 0.2);
}

.pulse-hover:hover {
    border-color: var(--amber-primary);
    background: rgba(255, 69, 0, 0.05);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.1) inset;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.upload-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.upload-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Samples */
.sample-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sample-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sample-pill {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--smooth);
}

.danger-glow:hover {
    border-color: var(--danger);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
    color: var(--danger);
}

.safe-glow:hover {
    border-color: var(--success);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
    color: var(--success);
}

/* ========================================
   THE ULTIMATE ANIMATED BUTTON
======================================== */
.amber-trigger-btn {
    width: 100%;
    margin-top: 30px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--amber-primary);
    padding: 20px;
    border-radius: 16px;
    color: var(--amber-primary);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 69, 0, 0.1);
}

.amber-trigger-btn:hover {
    color: var(--obsidian-dark);
    background: linear-gradient(45deg, var(--amber-light), var(--amber-primary), var(--amber-dark));
    text-shadow: none;
    box-shadow: 0 0 40px var(--amber-glow);
}

.amber-trigger-btn:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--amber-light), var(--amber-primary), var(--amber-dark));
    z-index: 0;
}

/* Continuous Shine Effect */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: sweepShine 3s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes sweepShine {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* Pulsing Outer Ring */
.btn-pulse-ring {
    position: absolute;
    inset: -4px;
    border: 2px solid var(--amber-primary);
    border-radius: 20px;
    animation: ringPulse 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

@keyframes ringPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.btn-text,
.btn-loading {
    position: relative;
    z-index: 2;
}

.amber-trigger-btn:hover .btn-text,
.amber-trigger-btn:hover .btn-loading {
    color: var(--obsidian-dark);
}

/* Secondary button */
.glass-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--smooth);
}

.glass-btn-secondary:hover {
    background: rgba(255, 69, 0, 0.1);
    border-color: var(--amber-primary);
    color: var(--amber-primary);
    box-shadow: 0 0 15px var(--amber-glow);
}

/* ========================================
   RESULT DASHBOARD
======================================== */
.result-header {
    padding: 40px;
    text-align: center;
}

.result-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.pulse-alert {
    animation: pulseIcon 2s infinite alternate;
}

@keyframes pulseIcon {
    from {
        transform: scale(1);
        filter: drop-shadow(0 0 10px currentColor);
    }

    to {
        transform: scale(1.1);
        filter: drop-shadow(0 0 30px currentColor);
    }
}

.result-header.phishing .result-icon {
    color: var(--danger);
}

.result-header.phishing .result-verdict {
    color: var(--danger);
}

.result-header.legitimate .result-icon {
    color: var(--success);
}

.result-header.legitimate .result-verdict {
    color: var(--success);
}

.result-verdict {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.result-confidence {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Confidence Bar */
.confidence-section {
    padding: 30px 40px;
}

.confidence-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.glass-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.glass-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--amber-primary), var(--danger));
    transition: width 1.5s var(--spring);
}

.confidence-values {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
}

.text-safe {
    color: var(--success);
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.text-critical {
    color: var(--danger);
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

/* ========================================
   STATS SECTION
======================================== */
.glass-stats {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
}

.stat-item {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-lbl {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   RESTORED: HOW IT WORKS GRID & ARCHITECTURE
======================================== */
.glass-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-section-title {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.glass-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.glass-grid-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: left;
}

.gg-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.gg-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.gg-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.glass-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.glass-tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 69, 0, 0.3);
    color: var(--amber-primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ========================================
   FOOTER
======================================== */
.glass-footer {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
    .glass-stats {
        flex-direction: column;
    }

    .glass-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }
}

/* ========================================
   INTELLIGENCE REPORT (RESULTS DASHBOARD)
======================================== */
.result-glass-card {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    color: var(--text-primary);
    margin-top: 40px;
}

.result-glass-card .card-header {
    text-align: center;
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-glass-card .card-header h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: #f0f0f0;
    letter-spacing: 0.5px;
}

.result-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.result-icon {
    font-size: 3.5rem;
    color: #ff3333;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(255, 51, 51, 0.5);
}

.result-verdict {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 500;
    background: linear-gradient(135deg, #FF4500, #FF3333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.result-confidence {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.confidence-section {
    padding: 20px 60px 50px;
}

.confidence-labels {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 400;
}

.glass-bar-track {
    height: 6px;
    width: 100%;
    background: linear-gradient(to right, #00d68f, #ff4d4d);
    border-radius: 3px;
    margin-bottom: 12px;
}

.confidence-values {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
}

.text-safe {
    color: #00d68f;
}

.text-critical {
    color: #ff4d4d;
}

/* ========================================
   LEGITIMATE — Green Glowing Tick
======================================== */
.result-header.legitimate .result-icon {
    color: #22c55e !important;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.6), 0 0 50px rgba(34, 197, 94, 0.3) !important;
    animation: greenPulse 2s infinite alternate !important;
}

.result-header.legitimate .result-verdict {
    background: linear-gradient(135deg, #22c55e, #10b981) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

@keyframes greenPulse {
    from {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.4));
    }
    to {
        transform: scale(1.15);
        filter: drop-shadow(0 0 40px rgba(34, 197, 94, 0.8));
    }
}