/* CSS Reset & Variables */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --primary-glow: rgba(16, 185, 129, 0.5);

    --bg-dark: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-translucent: rgba(30, 41, 59, 0.7);

    --text-white: #f8fafc;
    --text-gray: #94a3b8;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --container-width: 1200px;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 1rem;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.btn-white {
    background: white;
    color: var(--primary-dark);
}

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.full-width {
    width: 100%;
    justify-content: center;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    color: var(--text-white);
}

section {
    padding: 6rem 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-height);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    color: var(--primary);
}

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

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

.nav-links a:not(.btn):hover,
.nav-links a.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: var(--nav-height);
    background: url('../assets/images/hero_bg.png') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

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

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-gray);
    border-radius: 20px;
    position: relative;
}

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

@keyframes scrollMouse {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

/* Services */
.section-header {
    margin-bottom: 4rem;
}

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

.section-subtitle {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 500;
}

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

.service-card {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-image-container {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(16, 185, 129, 0.2);
    display: inline-block;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image-container img {
    transform: scale(1.1);
}

.service-card:hover .service-image-container {
    border-color: var(--primary);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Products */
.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 8rem;
    align-items: center;
}

.product-showcase.reverse {
    direction: rtl;
}

.product-showcase.reverse .product-content {
    direction: ltr;
}

.product-tag {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.product-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.product-content p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

.feature-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-white);
}

.feature-list li i {
    color: var(--primary);
}

.glass-panel {
    background: var(--bg-surface-translucent);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-preview {
    background: #0d1117;
    padding: 1.5rem;
    border-radius: 10px;
    width: 100%;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.window-controls {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
}

.window-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.window-controls span:nth-child(1) {
    background: #ff5f56;
}

.window-controls span:nth-child(2) {
    background: #ffbd2e;
}

.window-controls span:nth-child(3) {
    background: #27c93f;
}

.abstract-shape {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
}

.shape-1 {
    background: var(--primary);
    top: -50px;
    right: -50px;
    opacity: 0.2;
}

.shape-2 {
    background: #4f46e5;
    bottom: -50px;
    left: -50px;
    opacity: 0.2;
}

.gnss-visual {
    font-size: 6rem;
    color: var(--text-white);
    position: relative;
    z-index: 2;
}

.signal-waves span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

.signal-waves span:nth-child(1) {
    width: 40px;
    height: 40px;
    animation-delay: 0s;
}

.signal-waves span:nth-child(2) {
    width: 80px;
    height: 80px;
    animation-delay: 0.5s;
    opacity: 0;
}

.signal-waves span:nth-child(3) {
    width: 120px;
    height: 120px;
    animation-delay: 1s;
    opacity: 0;
}

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

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Helpers */
.no-padding {
    padding: 0 !important;
}

.rounded-corner {
    border-radius: 20px;
}

/* CTA */
.cta-section {
    padding-bottom: 2rem;
}

.cta-box {
    padding: 5rem 2rem;
    border: 1px solid var(--primary);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.8));
}

.cta-box h2 {
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 2rem;
    color: var(--text-gray);
}


/* Video Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.video-card {
    background: var(--bg-surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.8;
}

.video-card:hover .video-link img {
    transform: scale(1.05);
    opacity: 1;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    transition: all 0.3s ease;
}

.video-link:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
}

.video-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.2rem;
}

.video-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background: var(--bg-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.info-item h4 {
    margin-bottom: 0.3rem;
    color: var(--text-white);
}

.info-item a,
.info-item p {
    color: var(--text-gray);
    text-decoration: none;
}

.info-item a:hover {
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem;
    color: var(--text-white);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Footer */
footer {
    background: #020617;
    padding: 4rem 0 0 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-5px);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 0.9rem;
}

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

.fade-in-up.active,
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        /* Mobile menu styles would go here, simplified for now */
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .product-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-showcase.reverse {
        direction: ltr;
    }

    .product-showcase.reverse .product-content {
        direction: ltr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 500px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }
}


/* Modern 3D Gallery */
.gallery {
    padding: 6rem 0;
    overflow: hidden;
    perspective: 1000px;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 480px;
    margin: 0 auto;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-inner {
    position: relative;
    width: 60%;
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(0) scale(0.8);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* Active center item */
.carousel-item.active {
    opacity: 1;
    transform: translateX(0) scale(1.1) translateZ(50px);
    z-index: 10;
    pointer-events: auto;
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.5);
    border: 2px solid rgba(16, 185, 129, 0.5);
}

/* Previous item - Left side */
.carousel-item.prev-item {
    opacity: 0.5;
    transform: translateX(-85%) scale(0.85) perspective(1000px) rotateY(25deg);
    z-index: 5;
    display: block;
    filter: blur(2px) grayscale(60%);
}

/* Next item - Right side */
.carousel-item.next-item {
    opacity: 0.5;
    transform: translateX(85%) scale(0.85) perspective(1000px) rotateY(-25deg);
    z-index: 5;
    display: block;
    filter: blur(2px) grayscale(60%);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.carousel-item.active .carousel-caption {
    transform: translateY(0);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.carousel-control:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 25px var(--primary-glow);
}

.carousel-control.prev {
    left: -20px;
}

.carousel-control.next {
    right: -20px;
}

.carousel-indicators {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.carousel-indicators button {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.carousel-indicators button.active {
    background: var(--primary);
    width: 60px;
    box-shadow: 0 0 10px var(--primary-glow);
}

@media (max-width: 768px) {
    .carousel-inner {
        width: 85%;
    }

    .carousel-item.prev-item {
        transform: translateX(-100%) scale(0.9);
        opacity: 0;
    }

    .carousel-item.next-item {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-control.prev {
        left: 0;
    }

    .carousel-control.next {
        right: 0;
    }
}