:root {
    --bg-color: #0a0a0f;
    --text-color: #ffffff;
    --accent-color: #6c5ce7;
    --secondary-color: #00cec9;
    --dark-card: #13131f;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

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

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/xray.png') no-repeat center center/cover;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 60px;
    /* Space for fixed navbar */
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    cursor: pointer;
    z-index: 1001;
    z-index: 1001;
}



/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px auto;
    transition: var(--transition);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background: #0a0a0f;
    /* Fallback */
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 0.6;
    /* Slight transparency for text readability */
}

/* Ensure content is above slides */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-overlay {
    /* Optional: extra overlay if needed, or remove if slides handle opacity */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.2) 0%, rgba(10, 10, 15, 0.8) 80%);
    z-index: 2;
    pointer-events: none;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.highlight {
    color: var(--accent-color);
}

.hero-content h1 .highlight {
    color: #ffffff;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Enhancing readability on images */
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

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

.delay-2 {
    animation-delay: 0.4s;
}

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

/* Sections */
.section {
    padding: 5rem 5%;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-desc {
    text-align: center;
    color: #a0a0b0;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    /* For submenu positioning */
    cursor: pointer;
}

.service-card.has-submenu:hover {
    border-color: var(--accent-color);
}

.submenu {
    display: none;
    list-style: none;
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: left;
    animation: fadeIn 0.3s ease;
}

/* Show submenu on hover or when expanded class is added via JS */
.service-card:hover .submenu,
.service-card.expanded .submenu {
    display: block;
}

.submenu li {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ccc;
    font-size: 0.95rem;
    transition: var(--transition);
}

.submenu a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
}

.submenu a:visited,
.submenu a:active {
    color: inherit;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu li:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

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

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

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.icon-img {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

/* Contact */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
textarea {
    padding: 1rem;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

footer {
    padding: 2rem 2rem 10rem;
    /* Increased bottom padding for scroll room */
    text-align: center;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
        display: block;
        padding: 1rem;
    }
}

/* Product Detail Page Styles */

.section-subtitle {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    margin-top: -1rem;
}

.text-left {
    text-align: left;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-grid.reverse-layout {
    direction: rtl;
    /* simple way to swap columns visually */
}

.product-grid.reverse-layout>* {
    direction: ltr;
    /* reset content direction */
}

.product-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    font-size: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #ccc;
}

.feature-list li::before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--dark-card);
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.9rem;
}

.specs-table th,
.specs-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.specs-table th {
    background: rgba(108, 92, 231, 0.2);
    color: white;
    font-weight: 600;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.dark-bg {
    background: #0f0f16;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-grid.reverse-layout {
        direction: ltr;
    }

    .section-title.text-left {
        text-align: center;
    }
}