@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --accent-primary: #00bcd4;
    --accent-secondary: #9c27b0;
    --gradient-main: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

/* Canvas Container for Background Effect */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s ease, background 0.3s ease;
}

header.scrolled {
    padding: 15px 5%;
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    z-index: 1001;
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--text-main);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.1), transparent 70%);
    filter: blur(100px);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.1), transparent 70%);
    filter: blur(100px);
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    display: block;
    font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.btn {
    padding: 12px 30px;
    background: var(--gradient-main);
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.5);
}

/* Section General */
section {
    padding: 100px 5%;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 60px;
    text-align: center;
}

.section-title span {
    border-bottom: 3px solid var(--accent-primary);
}

/* Services 2-Column Layout */
.services-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.services-menu {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-menu-item {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.service-menu-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    transition: var(--transition);
}

.service-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transform: translateX(5px);
}

.service-menu-item.active {
    background: linear-gradient(90deg, rgba(0, 188, 212, 0.1), transparent);
    border-color: var(--accent-primary);
    color: var(--text-main);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.1);
}

.service-menu-item.active i {
    color: var(--accent-primary);
}

.services-content-area {
    flex: 1;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 400px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.services-content-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 188, 212, 0.05), transparent 50%);
    pointer-events: none;
}

.service-panel {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.service-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.panel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.panel-header i {
    font-size: 3rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.panel-header h3 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
    font-weight: 700;
}

.service-panel p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.service-details {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.service-details li {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Service Content Image */
.service-content-image {
    width: 100%;
    height: auto;
    margin-top: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Scan Preview Viewers */
.scan-viewers-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.scan-viewer-iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Navigation Buttons (Mobile) */
.menu-nav-btn {
    display: none;
    /* Hidden on desktop */
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.menu-nav-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.5);
}

/* Responsive Services */
@media (max-width: 900px) {
    .services-container {
        flex-direction: column;
        gap: 30px;
    }

    .services-menu-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .services-menu {
        flex: 1;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .services-menu::-webkit-scrollbar {
        display: none;
    }

    .service-menu-item {
        flex: 0 0 auto;
        width: auto;
        padding: 12px 20px;
        white-space: nowrap;
    }

    .service-menu-item:hover {
        transform: translateY(-3px);
    }

    .services-content-area {
        width: 100%;
        padding: 30px;
    }

    .panel-header h3 {
        font-size: 1.5rem;
    }

    .menu-nav-btn {
        display: flex;
    }
}

/* Contact Section */
.contact {
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-color), #0a0a0a);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact p {
    margin-bottom: 30px;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .service-menu-item {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .flow-step h3 {
        font-size: 1.1rem;
    }

    .step-number {
        font-size: 2.5rem;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease-in-out;
        z-index: 1000;
        flex-direction: column;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    nav a {
        font-size: 1.5rem;
    }

    .hamburger-menu {
        display: block;
    }
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Flow Section */
.flow-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.flow-step {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex: 1 1 200px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.flow-step:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1;
}

.flow-step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-primary);
}

.flow-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollToTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.5);
}