:root {
    --bg-dark: #0a192f;
    --bg-light: #112240;
    --bg-card: rgba(17, 34, 64, 0.7);
    --text-main: #ccd6f6;
    --text-heading: #e6f1ff;
    --primary: #64ffda;
    --secondary: #233554;
    --accent: #57cbff;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.1;
}

h1 {
    font-size: clamp(40px, 8vw, 80px);
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(26px, 5vw, 42px);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-heading);
}

p {
    margin-bottom: 1.5rem;
    max-width: 600px;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
    transition: var(--transition);
}

.btn:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 600;
}

.btn-primary:hover {
    background: #4cdbb6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    color: var(--text-heading);
    position: relative;
    padding: 10px;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-outline {
    border: 1px solid var(--primary);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(100, 255, 218, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background-color: var(--bg-dark);
    /* Fallback */
}

/* Background Animation simulating Video */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/hero.png') no-repeat center center;
    background-size: cover;
    z-index: 0;
    /* Cinematic Slow Zoom/Pan Effect */
    animation: heroCinematic 30s infinite alternate ease-in-out;
    transform-origin: center center;
    will-change: transform;
}

@keyframes heroCinematic {
    0% {
        transform: scale(1.1) translate(0, 0);
    }

    33% {
        transform: scale(1.15) translate(-1%, 1%);
    }

    66% {
        transform: scale(1.12) translate(1%, -1%);
    }

    100% {
        transform: scale(1.2) translate(0, 0);
    }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 25, 47, 0.92) 0%, rgba(10, 25, 47, 0.7) 60%, rgba(10, 25, 47, 0.4) 100%);
    z-index: 1;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Same level as overlay, but we want particles visible. Maybe z-index 1 is overlay, particles 1. Let's rely on DOM order: particles after overlay */
    pointer-events: none;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-subtitle {
    margin: 20px 0 40px;
    color: var(--text-main);
    font-size: 1.1rem;
    max-width: 540px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-main);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

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

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

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

.section-title {
    color: var(--text-heading);
    white-space: nowrap;
}

.title-line {
    height: 1px;
    background: var(--secondary);
    width: 300px;
    max-width: 100%;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    transition: var(--transition);
}

.img-wrapper img {
    width: 100%;
    display: block;
    transition: var(--transition);
    filter: grayscale(20%) contrast(1.1);
}

.img-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(100, 255, 218, 0.2);
}

.img-wrapper:hover img {
    filter: none;
}

.img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(100, 255, 218, 0.1);
    transition: var(--transition);
}

.img-wrapper:hover::after {
    background: transparent;
}

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

.service-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-7px);
    border-color: var(--primary);
    background: rgba(17, 34, 64, 0.8);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.card-icon {
    font-size: 40px;
    color: var(--primary);
    font-weight: 700;
    opacity: 0.1;
    position: absolute;
    top: 20px;
    right: 20px;
    transition: var(--transition);
}

.service-card:hover .card-icon {
    opacity: 0.2;
    transform: scale(1.1);
}

/* Products */
.products-wrapper {
    margin-top: 40px;
}

.product-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-content {
    flex: 1;
    padding: 60px;
}

.product-visual {
    flex: 1;
    height: 400px;
    background: linear-gradient(135deg, rgba(87, 203, 255, 0.1) 0%, rgba(100, 255, 218, 0.05) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover .product-visual img {
    transform: scale(1.05);
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 12px;
    margin-right: 10px;
}

/* Contact */
.contact {
    text-align: center;
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, rgba(10, 25, 47, 0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.contact-title {
    font-size: clamp(30px, 5vw, 50px);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    color: #8892b0;
    font-size: 14px;
    background: #050a14;
}

/* Animations Trigger Class */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Mobile */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .nav-list {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .product-item {
        flex-direction: column;
    }

    .product-visual {
        height: 250px;
        width: 100%;
    }
}

/* Link wrapper for service cards to keep styling intact */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}