/* ==============================================
   COMPONENTS CSS - Combined Component Styles
   ============================================== */

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(2, 2, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px var(--accent-neon));
}

.navbar-logo .cyber-text {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.navbar-links.desktop-only {
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: var(--accent-neon);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #0a0a14;
    background: linear-gradient(180deg, #0a0a14 0%, #05050a 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-top: 2px solid var(--accent-neon);
    border-radius: 8px;
    min-width: 220px;
    padding: 12px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 243, 255, 0.1);
    display: none;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-item:hover .dropdown-menu {
    display: block;
    pointer-events: auto;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.dropdown-link:hover {
    background: rgba(0, 243, 255, 0.15);
    color: var(--accent-neon);
    padding-left: 30px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--accent-neon);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(5, 5, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1001;
    padding: 20px;
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.mobile-link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-dropdown-toggle {
    background: transparent;
    border: none;
    color: var(--accent-neon);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    cursor: pointer;
    padding: 10px;
}

.mobile-dropdown-toggle.active {
    transform: rotate(180deg);
}

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    margin-top: 10px;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 1px solid var(--accent-neon);
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active {
    max-height: 500px;
}

.mobile-dropdown-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 5px 0;
}

.mobile-cta {
    margin-top: 20px;
    text-align: center;
    width: 100%;
    display: block;
}

/* Footer Styles */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.footer-top {
    padding: 80px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-col h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 25px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: var(--accent-neon);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--accent-neon);
    padding-left: 8px;
}

.footer-newsletter {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.footer-newsletter input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--accent-neon);
}

.footer-newsletter button {
    background: var(--accent-neon);
    border: none;
    border-radius: 4px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bg-primary);
    transition: all 0.3s ease;
}

.footer-newsletter button:hover {
    background: var(--accent-green);
}

.contact-mini p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--accent-neon);
}

/* Service Card */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    border-color: var(--accent-neon);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-neon);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.service-desc,
.service-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 15px;
    position: relative;
    line-height: 1.4;
}

.service-list li strong {
    color: var(--accent-neon);
    font-family: var(--font-mono);
    font-weight: normal;
}

.service-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Stats Counter */
.stats-section {
    background: linear-gradient(135deg, rgba(2, 2, 10, 0.95) 0%, rgba(8, 8, 20, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    position: relative;
    text-align: center;
    padding: 40px 30px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-mono);
    line-height: 1;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Attack Chain */
.attack-chain-wrapper {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.chain-step {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.step-number {
    font-size: 2rem;
    font-weight: bold;
    color: rgba(0, 243, 255, 0.3);
    font-family: var(--font-mono);
    margin-bottom: 10px;
}

.step-content h3 {
    color: var(--accent-neon);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.chain-arrow {
    color: var(--accent-neon);
    font-size: 1.5rem;
    opacity: 0.5;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 9999;
    display: none;
}

.cookie-consent.active {
    display: block;
}

.cookie-content {
    padding: 20px;
}

.cookie-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 5px 0;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-neon);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.3);
    transition: all 0.3s ease;
}

.chat-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.5);
}

.chat-icon {
    font-size: 1.5rem;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 300px;
    display: none;
}

.chat-window.active {
    display: block;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chat-header h3 {
    font-size: 1rem;
    margin: 0;
}

.chat-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 10px 0;
}

.chat-footer {
    margin-top: 15px;
}

/* Animated Background */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Tools Teaser */
.tools-teaser-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 40px;
}

.tools-text {
    flex: 1;
}

.tools-visual {
    flex: 0 0 150px;
    height: 150px;
    position: relative;
}

.tool-icon-float {
    position: absolute;
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .desktop-only {
        display: none !important;
    }

    .navbar-toggle {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .attack-chain-wrapper {
        flex-direction: column;
    }

    .chain-arrow {
        transform: rotate(90deg);
    }

    .tools-teaser-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}