/* Global Styles */
:root {
    --color-bg-primary: #0a192f;
    --color-bg-secondary: #112240;
    --color-text-primary: #e6f1ff;
    --color-text-secondary: #8892b0;
    --color-accent: #64ffda;
    --color-accent-hover: #4db8a0;
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-speed: 0.3s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    background: transparent;
    transition: all var(--transition-speed) ease;
}

.btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg-primary);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    margin: 10px auto 0;
}

/* Header & Navigation */
header {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-accent);
    transition: var(--transition-speed);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-speed) ease;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* Offset for fixed header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #112240 0%, #0a192f 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 10%, transparent 20%);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    opacity: 0.5;
}

@keyframes moveBackground {
    0% {
        transform: translate(-10%, -10%);
    }

    100% {
        transform: translate(-5%, -5%);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero .highlight {
    color: var(--color-accent);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Snippet */
.about-snippet {
    padding: 100px 0;
    background-color: var(--color-bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--color-accent), transparent);
    animation: rotate 10s linear infinite;
    filter: blur(20px);
    opacity: 0.6;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Product Highlights */
.product-highlights {
    padding: 100px 0;
    background-color: var(--color-bg-secondary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--color-bg-primary);
    padding: 2rem;
    border-radius: 8px;
    transition: transform var(--transition-speed);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.btn-text {
    color: var(--color-accent);
    font-weight: 500;
    margin-top: 1rem;
    display: inline-block;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Innovation Section */
.innovation {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('../assets/images/tech-bg.jpg');
    /* Placeholder if no image */
    background-size: cover;
    background-position: center;
    color: white;
}

.innovation-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: #020c1b;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a:hover {
    color: var(--color-accent);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--color-text-secondary);
    font-weight: 700;
}

.social-icons a:hover {
    color: var(--color-accent);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Page Header (Subpages) */
.page-header {
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('../assets/images/header-bg.jpg');
    background-color: #0a192f;
    /* Fallback */
    padding: 150px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Overview Section */
.overview {
    padding: 80px 0;
    text-align: center;
}

.overview-content {
    max-width: 800px;
    margin: 0 auto;
}

.overview h2 {
    color: var(--color-accent);
    margin-bottom: 2rem;
}

/* Team Section */
.team {
    padding: 80px 0;
    background-color: var(--color-bg-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: var(--color-bg-primary);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform var(--transition-speed);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--color-accent);
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.team-member .bio {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* Values Section */
.values {
    padding: 80px 0;
}

.values-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.value-card {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 2rem;
    border: 1px solid rgba(136, 146, 176, 0.2);
    border-radius: 8px;
}

.value-card h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* Products Page */
.products-section {
    padding: 80px 0;
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--color-text-secondary);
    background: transparent;
    color: var(--color-text-secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-accent);
    color: var(--color-bg-primary);
    border-color: var(--color-accent);
}

.products-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.catalog-item {
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-speed), opacity var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.catalog-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.catalog-item.hidden {
    display: none;
}

.item-visual {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    background-color: rgba(0, 0, 0, 0.2);
}

.cloud-visual {
    background: linear-gradient(135deg, #2b32b2, #1488cc);
}

.robot-visual {
    background: linear-gradient(135deg, #43cea2, #185a9d);
}

.home-visual {
    background: linear-gradient(135deg, #ff512f, #dd2476);
}

.item-content {
    padding: 1.5rem;
}

.item-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.item-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Product Detail Page */
.product-details {
    padding: 80px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.detail-visual {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.visual-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: var(--color-bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
    border-radius: 8px;
    border: 1px solid var(--color-accent);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.1);
}

.detail-info h2 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.detail-info ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
}

.detail-info li {
    margin-bottom: 0.5rem;
}

.specs-table {
    background-color: var(--color-bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 700;
    color: var(--color-text-primary);
}

.spec-value {
    color: var(--color-text-secondary);
}

.cta-group {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Technology Page */
.tech-explanation {
    padding: 80px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-visual {
    display: flex;
    justify-content: center;
}

.neural-core {
    position: relative;
    width: 300px;
    height: 300px;
}

.core-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px var(--color-accent);
    animation: pulse 2s infinite;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 100px;
    height: 100px;
    animation: spin 4s linear infinite;
    border-top-color: var(--color-accent);
}

.orbit-2 {
    width: 200px;
    height: 200px;
    animation: spin-rev 8s linear infinite;
    border-bottom-color: var(--color-accent);
}

.orbit-3 {
    width: 280px;
    height: 280px;
    animation: spin 12s linear infinite;
    border-left-color: var(--color-accent);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.8;
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spin-rev {
    0% {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

.architecture {
    padding: 80px 0;
    background-color: var(--color-bg-secondary);
}

.arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.arch-card {
    background: var(--color-bg-primary);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.arch-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.future-dev {
    padding: 80px 0;
    text-align: center;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.contact-form-container h2,
.contact-info h2 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #233554;
    background-color: #112240;
    color: var(--color-text-primary);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    outline: none;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.map-placeholder {
    background-color: #112240;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--color-text-secondary);
    margin-top: 1rem;
}

@media (max-width: 768px) {

    .tech-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}