/* ==================== VARIABLES & RESET ==================== */
:root {
    --primary-neon: #00d9ff;
    --secondary-neon: #00ff88;
    --bg-dark: #0a0e27;
    --bg-darker: #050712;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
    --danger: #ff006e;
    --border-neon: rgba(0, 217, 255, 0.3);
    --glow-neon: rgba(0, 217, 255, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* ==================== NAVBAR ==================== */
.navbar-custom {
    background: rgba(10, 14, 39, 0.85) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-neon);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar-custom:hover {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.2);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    -webkit-text-fill-color: var(--primary-neon);
    filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.5));
}

.nav-link {
    color: var(--text-light) !important;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-neon) !important;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.nav-link.active {
    color: var(--primary-neon) !important;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* ==================== BUTTONS ==================== */
.btn-primary-neon {
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    border: 1px solid var(--primary-neon);
    color: var(--bg-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: none;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.btn-primary-neon:hover {
    background: linear-gradient(135deg, var(--secondary-neon), var(--primary-neon));
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-neon);
    color: var(--primary-neon);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 60px;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(0, 217, 255, 0.05) 0%,
        rgba(10, 14, 39, 0) 50%,
        rgba(0, 255, 136, 0.05) 100%);
    z-index: -1;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, 10px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    animation: fadeInUp 1s ease 0.5s both;
}

.badge.bg-dark-neon {
    background: rgba(0, 217, 255, 0.1) !important;
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: inset 0 0 10px rgba(0, 217, 255, 0.1);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease 0.6s both;
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.7s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-cta {
    animation: fadeInUp 1s ease 0.9s both;
}

/* ==================== SECTION STYLING ==================== */
.section-padding {
    padding: 80px 0;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

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

/* ==================== FEATURES SECTION ==================== */
.features-section {
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
}

.feature-card {
    background: rgba(0, 217, 255, 0.02);
    border: 1px solid var(--border-neon);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1), transparent);
    transition: all 0.3s ease;
    z-index: -1;
}

.feature-card:hover {
    border-color: var(--primary-neon);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    transform: translateY(-5px);
}

.feature-card:hover::before {
    top: 0;
    right: 0;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-neon);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.3));
}

.feature-title {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-text {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==================== ARCHITECTURE SECTION ==================== */
.architecture-section {
    background: linear-gradient(180deg, var(--bg-darker), var(--bg-dark));
}

.architecture-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.5s both;
}

.arch-block {
    width: 150px;
    height: 100px;
    border: 2px solid var(--border-neon);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
}

.arch-block i {
    font-size: 1.8rem;
    color: var(--primary-neon);
}

.arch-input {
    border-color: var(--secondary-neon);
    color: var(--secondary-neon);
}

.arch-process {
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.arch-scan {
    border-color: var(--secondary-neon);
    color: var(--secondary-neon);
}

.arch-analysis {
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.arch-output {
    border-color: var(--secondary-neon);
    color: var(--secondary-neon);
}

.arch-block:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px currentColor;
}

.arch-arrow {
    font-size: 1.5rem;
    color: var(--primary-neon);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.arch-info {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid var(--border-neon);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.arch-info:hover {
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

/* ==================== TECHNOLOGIES SECTION ==================== */
.technologies-section {
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
}

.tech-badge {
    background: rgba(0, 217, 255, 0.03);
    border: 1px solid var(--border-neon);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.tech-badge i {
    font-size: 2.5rem;
    color: var(--primary-neon);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.3));
    display: block;
}

.tech-badge h6 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tech-badge p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.tech-badge:hover {
    border-color: var(--primary-neon);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    transform: translateY(-5px);
}

/* ==================== SCREENSHOTS SECTION ==================== */
.screenshots-section {
    background: linear-gradient(180deg, var(--bg-darker), var(--bg-dark));
}

.screenshot-card {
    background: rgba(0, 217, 255, 0.02);
    border: 1px solid var(--border-neon);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.screenshot-placeholder {
    background: linear-gradient(135deg,
        rgba(0, 217, 255, 0.1) 0%,
        rgba(0, 255, 136, 0.05) 100%);
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-neon);
    transition: all 0.3s ease;
}

.screenshot-placeholder i {
    font-size: 3rem;
    color: var(--primary-neon);
    filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.3));
}

.screenshot-placeholder p {
    font-weight: 600;
    color: var(--text-light);
}

.screenshot-card:hover {
    border-color: var(--primary-neon);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    transform: translateY(-5px);
}

.screenshot-card:hover .screenshot-placeholder {
    background: linear-gradient(135deg,
        rgba(0, 217, 255, 0.2) 0%,
        rgba(0, 255, 136, 0.1) 100%);
}

.screenshot-text {
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==================== INSTALLATION SECTION ==================== */
.installation-section {
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
}

.installation-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: slideIn 0.6s ease both;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-number {
    min-width: 60px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    flex-shrink: 0;
}

.step-content h5 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-neon);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-block code {
    color: var(--primary-neon);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.step-content a {
    color: var(--primary-neon);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-content a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* ==================== ROADMAP SECTION ==================== */
.roadmap-section {
    background: linear-gradient(180deg, var(--bg-darker), var(--bg-dark));
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-neon), var(--secondary-neon), transparent);
}

.timeline-item {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease both;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 3px solid var(--primary-neon);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
}

.timeline-content {
    width: calc(50% - 60px);
    margin-left: auto;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    width: calc(50% - 60px);
    padding-right: 0;
    padding-left: 2rem;
}

.roadmap-card {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid var(--border-neon);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.roadmap-card:hover {
    border-color: var(--primary-neon);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    transform: translateY(-3px);
}

.roadmap-card h5 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.roadmap-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.roadmap-badge {
    display: inline-block;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--secondary-neon);
    color: var(--secondary-neon);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Mobile: Timeline adjustment */
@media (max-width: 768px) {
    .timeline::before {
        left: 10px;
    }

    .timeline-dot {
        left: 10px;
    }

    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 50px);
        margin-left: 0;
        margin-right: 0;
        padding-left: 2rem;
        padding-right: 0;
    }
}

/* ==================== FOOTER ==================== */
.footer-section {
    background: linear-gradient(180deg, var(--bg-darker), #000);
    border-top: 1px solid var(--border-neon);
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-title {
    color: var(--primary-neon);
    font-weight: 700;
    font-size: 1.2rem;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-neon);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
    transform: translateY(-3px);
}

.footer-links h6 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-neon);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.footer-divider {
    border-color: var(--border-neon);
    margin: 1.5rem 0;
}

.footer-copyright,
.footer-legal {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-link {
    color: var(--primary-neon);
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-link:hover {
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* ==================== MODAL ==================== */
.bg-dark-modal {
    background: rgba(10, 14, 39, 0.95) !important;
    border: 1px solid var(--border-neon);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.2);
}

.border-bottom-neon {
    border-bottom: 1px solid var(--border-neon) !important;
}

.border-top-neon {
    border-top: 1px solid var(--border-neon) !important;
}

.modal-title {
    color: var(--text-light);
    font-weight: 700;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding-top: 80px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        margin-left: 0 !important;
    }

    .section-padding {
        padding: 50px 0;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .installation-step {
        flex-direction: column;
        gap: 1rem;
    }

    .step-number {
        min-width: 50px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .arch-block {
        width: 130px;
        height: 90px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.25rem 1rem;
    }

    .tech-badge {
        padding: 1.5rem 1rem;
    }

    .footer-section {
        padding: 2rem 0 1rem;
    }

    .section-padding {
        padding: 40px 0;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-neon);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-neon);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}
