:root {
    --bg-color: #0b1120;
    --surface-color: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --accent: #ef4444;
    --accent-glow: rgba(239, 68, 68, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(239, 68, 68, 0.1), transparent 25%);
}

/* Glassmorphism Utilities */
.glass {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Header & Nav */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 20px 0;
}

header.scrolled {
    background: rgba(11, 17, 32, 0.9);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 2px;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-acronym {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-contact-wrapper {
    margin-left: 800px;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 25px var(--primary-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Floating Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 20%;
    left: 10%;
    opacity: 0.15;
    animation: float 10s infinite alternate;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: 10%;
    right: 5%;
    opacity: 0.1;
    animation: float 12s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-50px) scale(1.1);
    }
}

/* Services Grid */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
}

.grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    position: relative;
    z-index: 10;
    padding-bottom: 20px;
    /* Space for scrollbar */
}

/* Hide scrollbar for grid but keep functionality */
.grid::-webkit-scrollbar {
    height: 8px;
}

.grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.grid::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 10px;
}

.grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.card {
    flex: 0 0 85%;
    max-width: 400px;
    scroll-snap-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 450px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark overlay to make text readable over the image */
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    z-index: 1;
    transition: all 0.5s ease;
}

.card-content {
    position: relative;
    z-index: 2;
    /* Sit above the overlay */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover::before {
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    transition: transform 0.5s ease;
}

.card:hover .card-icon {
    transform: rotateY(15deg) rotateX(15deg) scale(1.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card p {
    color: var(--text-secondary);
    flex-grow: 1;
    font-size: 1.05rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.carousel-prev {
    left: 5px;
}

.carousel-next {
    right: 5px;
}

/* Showcase/Hardware Section */
.showcase {
    margin-top: 50px;
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.showcase-item:nth-child(even) {
    flex-direction: row-reverse;
}

.showcase-img {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.showcase-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.showcase-img:hover img {
    transform: scale(1.05);
}

.showcase-text {
    flex: 1;
}

.img-dual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.img-grid-row {
    display: flex;
    gap: 15px;
}

.img-grid-row img {
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

.showcase-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.showcase-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.showcase-list {
    list-style: none;
}

.showcase-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.showcase-list li i {
    color: var(--primary);
}

/* Footer */
footer {
    background: #060a13;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Animations Trigger Utils */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .showcase-item,
    .showcase-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .showcase-list li {
        justify-content: center;
    }
}