:root {
    --bg-main: #0F0F0F;
    --bg-card: #1A1A1A;
    --cyber-yellow: #FFD400;
    --white: #FFFFFF;
    --gray-text: #A0A0A0;
    --glass-border: rgba(255, 212, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: var(--cyber-yellow) var(--bg-main);
}

html {
    scroll-behavior: smooth;
    background: var(--bg-main);
    color: var(--white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--cyber-yellow);
    border-radius: 4px;
}

body {
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cyber-yellow);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 212, 0, 0.5);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 212, 0, 0.1);
    border-top: 3px solid var(--cyber-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

.loader-content h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.loader-content h2 span {
    color: var(--cyber-yellow);
}

.loader-content p {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-top: 5px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--cyber-yellow);
    width: 0%;
    z-index: 1001;
    box-shadow: 0 0 10px var(--cyber-yellow);
}

/* Navigation */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo span {
    color: var(--cyber-yellow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cyber-yellow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyber-yellow);
    transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* Main Container & Sections (100vh SPA Layout) */
.container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 40px 40px 40px;
    overflow: hidden;
}

.section-container {
    max-width: 1200px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}

.section-title span {
    color: var(--cyber-yellow);
}

/* Glassmorphism Card Style */
.glass-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card:hover {
    border-color: var(--cyber-yellow);
    box-shadow: 0 0 20px rgba(255, 212, 0, 0.2);
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--cyber-yellow);
    color: var(--bg-main);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(255, 212, 0, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--cyber-yellow);
    color: var(--cyber-yellow);
}

.btn-outline:hover {
    background: rgba(255, 212, 0, 0.1);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 1. Hero Section */
#home {
    background: var(--bg-main);
}

#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.25;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-content h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--cyber-yellow);
    font-weight: 600;
    margin-bottom: 15px;
}

.description {
    color: var(--gray-text);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--cyber-yellow);
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* 2. About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-text p {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mission-vision h4 {
    color: var(--cyber-yellow);
    margin-bottom: 8px;
    font-size: 1rem;
}

.mission-vision p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.counters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.counter-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.counter-card i {
    font-size: 2rem;
    color: var(--cyber-yellow);
    margin-bottom: 10px;
}

.counter-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 5px;
}

.counter-card p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* 3. Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--cyber-yellow);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--gray-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 4. Security Lab Section */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
}

.lab-card {
    position: relative;
    padding: 25px;
}

.lab-card span {
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.05);
    font-weight: 700;
}

.lab-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.lab-card p {
    color: var(--gray-text);
    font-size: 0.85rem;
}

.disclaimer {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    border-color: rgba(255, 212, 0, 0.4);
}

.disclaimer i {
    color: var(--cyber-yellow);
    font-size: 1.5rem;
}

.disclaimer p {
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* 5. Software Store Section */
.store-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
}

.store-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.store-img {
    font-size: 3rem;
    color: var(--cyber-yellow);
    margin-bottom: 15px;
}

.store-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    color: var(--cyber-yellow);
    font-weight: 700;
    margin-bottom: 10px;
}

.features {
    color: var(--gray-text);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.store-card .btn {
    width: 100%;
}

/* 6. Portfolio Section */
.filter-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--gray-text);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--cyber-yellow);
    color: var(--bg-main);
    border-color: var(--cyber-yellow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.portfolio-item {
    text-align: center;
}

.portfolio-item i {
    font-size: 2.5rem;
    color: var(--cyber-yellow);
    margin-bottom: 15px;
}

.portfolio-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.portfolio-item p {
    color: var(--gray-text);
    font-size: 0.85rem;
}

/* 7. FAQ Section */
.faq-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    padding: 20px;
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.05rem;
    font-weight: 500;
}

.faq-question i {
    color: var(--cyber-yellow);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.faq-answer p {
    color: var(--gray-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    max-height: 150px;
    margin-top: 15px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* 8. Contact Section & Footer */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    width: 100%;
    margin-bottom: 20px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--cyber-yellow);
    box-shadow: 0 0 10px rgba(255, 212, 0, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.contact-info strong {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--cyber-yellow);
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--cyber-yellow);
    color: var(--bg-main);
    box-shadow: 0 0 10px var(--cyber-yellow);
}

footer {
    text-align: center;
    color: var(--gray-text);
    font-size: 0.85rem;
    padding-top: 10px;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--cyber-yellow);
    color: var(--bg-main);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(255, 212, 0, 0.4);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 1024px) {

    .services-grid,
    .lab-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .store-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .services-grid,
    .lab-grid,
    .store-grid,
    .portfolio-grid,
    .counters-grid,
    .mission-vision {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 80px 20px 20px 20px;
        height: auto;
        min-height: 100vh;
    }

    .container {
        height: auto;
        overflow-y: auto;
        scroll-snap-type: none;
    }
}