/* =========================================
   Komainu One - Premium Cyber Defense Theme
   ========================================= */

:root {
    /* Core Palette */
    --ko-bg-dark: #03030a;
    --ko-bg-panel: #0b0b15;
    --ko-primary: #00f3ff;
    /* Cyan Neon */
    --ko-secondary: #ff0055;
    /* Cyber Red */
    --ko-accent: #7000ff;
    /* Deep Purple */
    --ko-text-main: #ffffff;
    --ko-text-muted: #94a3b8;

    /* Gradients */
    --ko-gradient-primary: linear-gradient(135deg, var(--ko-primary) 0%, var(--ko-accent) 100%);
    --ko-gradient-glow: radial-gradient(circle at center, rgba(0, 243, 255, 0.15) 0%, transparent 70%);

    /* Glassmorphism */
    --glass-bg: rgba(11, 11, 21, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --glass-blur: blur(16px);

    /* Glows */
    --glow-primary: 0 0 20px rgba(0, 243, 255, 0.4);
    --glow-text: 0 0 15px rgba(0, 243, 255, 0.5);
}

/* Global Overrides */
body {
    background-color: var(--ko-bg-dark);
    color: var(--ko-text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--ko-text-main);
    letter-spacing: -0.02em;
    font-weight: 700;
}

.text-theme {
    color: var(--ko-primary) !important;
    text-shadow: var(--glow-text);
}

.text-muted {
    color: var(--ko-text-muted) !important;
}

/* Navbar */
.navbar {
    background: rgba(3, 3, 10, 0.8) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar-brand .brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--ko-text-muted) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ko-primary) !important;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--ko-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--ko-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
#home {
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.1) 0%, rgba(3, 3, 10, 0.9) 90%);
    z-index: 1;
    pointer-events: none;
}

.home-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
}

.home-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff 20%, var(--ko-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.2));
    animation: fadeInUp 0.8s ease-out forwards;
}

.home-content h3 {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.home-content p {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.home-content .btn-container {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* Buttons */
.btn-theme {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--ko-primary);
    color: var(--ko-primary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
}

.btn-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--ko-primary);
    z-index: -1;
    transition: all 0.3s ease;
}

.btn-theme:hover {
    color: #000;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
    transform: translateY(-2px);
}

.btn-theme:hover::before {
    width: 100%;
}

.btn-outline-white {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Stats Section */
#threat-stats {
    background: rgba(11, 11, 21, 0.5) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to bottom, var(--ko-primary), #0088ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.3));
}

/* Scanner Widget */
.scanner-widget {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 2.5rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.scanner-widget:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 243, 255, 0.3);
}

.scanner-widget pre {
    background: #050505 !important;
    border: 1px solid #222;
    color: #0f0;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    font-family: 'Fira Code', monospace;
    border-radius: 12px;
    padding: 1.5rem;
}

/* Feature Cards */
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 243, 255, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 243, 255, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon i {
    color: var(--ko-primary);
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.4));
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1) rotate(5deg);
}

.feature-highlight {
    background: rgba(0, 243, 255, 0.05) !important;
    border: 1px solid rgba(0, 243, 255, 0.15);
    color: var(--ko-primary);
    border-radius: 8px;
}

/* Comparison Table */
.comparison-table {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    overflow: hidden;
}

.comparison-table table th {
    color: var(--ko-text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

.comparison-table table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    vertical-align: middle;
}

.fa-check-circle {
    color: var(--ko-primary) !important;
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.6));
}

.fa-times-circle {
    color: var(--ko-secondary) !important;
    filter: drop-shadow(0 0 8px rgba(255, 42, 109, 0.6));
}

/* Resources Section */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-header {
    background: rgba(0, 243, 255, 0.05) !important;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    color: var(--ko-primary) !important;
}

.card-img-top {
    background: rgba(255, 255, 255, 0.02) !important;
}

/* Footer/Testimonials */
.testimonials blockquote {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    color: #fff;
    border: none;
    line-height: 1.4;
}

.testimonials .name {
    color: var(--ko-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Utilities */
.bg-light {
    background-color: transparent !important;
}

.bg-white {
    background-color: var(--ko-bg-panel) !important;
}

.text-dark {
    color: #fff !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

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

.delay-300 {
    animation-delay: 0.3s;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--ko-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
    border: 2px solid var(--ko-bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ko-primary);
}