:root {
    --bg-color: #050507;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --primary-accent: #00f3ff;
    --secondary-accent: #bd00ff;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-main: 'Outfit', sans-serif;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.text-accent {
    color: var(--primary-accent);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(189, 0, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-accent);
    color: var(--primary-accent);
}

.btn-secondary:hover {
    background: rgba(0, 243, 255, 0.1);
}

.btn-full {
    width: 100%;
}

.glass-effect {
    background: rgba(5, 5, 7, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 243, 255, 0.3);
}

/* --- Background Glow --- */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.4;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-accent);
    top: -200px;
    left: -200px;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-accent);
    bottom: -100px;
    right: -100px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo .text-accent {
    margin: 0 -2px;
}

.nav-logo-img {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--primary-accent);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px auto;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    /* height: 100%; Removed height: 100% to let Flexbox handle it */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
    /* Explicit height for the visual area, or could use auto/100% depending on needs */
}

@media (min-width: 992px) {
    .hero-visual {
        height: 100%;
    }
}

/* Orbit Animation */
.orbit-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 100%;
    height: 100%;
    animation: spin 15s linear infinite;
}

.orbit-1::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary-accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-accent);
}

.orbit-2 {
    width: 70%;
    height: 70%;
    animation: spin 10s linear infinite reverse;
}

.orbit-2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    width: 10px;
    height: 10px;
    background: var(--secondary-accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--secondary-accent);
}

.orb-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-accent), transparent);
    opacity: 0.3;
    border-radius: 50%;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* --- Sections Common --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.bg-darker {
    background: rgba(0, 0, 0, 0.2);
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-accent);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Products --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.product-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--primary-accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
    z-index: 2;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e, #162447);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* --- Expertise Slider --- */
.expertise-section {
    overflow: hidden;
}

.expertise-slider-container {
    position: relative;
    max-width: 900px;
    /* Room for 2 large cards */
    margin: 0 auto;
    padding: 20px 0;
}

.expertise-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    gap: 30px;
}

.expertise-card {
    width: 400px;
    min-width: 300px;
    flex-shrink: 0;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.expertise-image {
    width: 100%;
    height: 380px;
    /* Portrait height optimized for 400px width */
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
    border: 1px solid var(--glass-border);
}

.expertise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.8);
}

.expertise-card:hover .expertise-image img {
    transform: scale(1.1);
    filter: brightness(1);
}

.expertise-image .expertise-icon {
    position: absolute;
    bottom: 10px;
    right: 15px;
    margin-bottom: 0;
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.expertise-card:active {
    cursor: grabbing;
}

.expertise-icon {
    font-size: 2.5rem;
    color: var(--primary-accent);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.1) rotate(5deg);
}

.expertise-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.expertise-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.expertise-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.expertise-tags span {
    font-size: 0.75rem;
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary-accent);
    padding: 4px 12px;
    border-radius: 15px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    font-weight: 500;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.slider-btn:hover {
    background: var(--primary-accent);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    border-color: var(--primary-accent);
}

.slider-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-accent);
    width: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-accent);
}

@media (max-width: 480px) {
    .expertise-card {
        min-width: 100%;
    }
}

@media (max-width: 1100px) {
    .expertise-slider-container {
        max-width: 500px;
    }
}

@media (max-width: 992px) {
    .expertise-card {
        min-width: calc(50% - 15px);
    }

    .expertise-slider-container {
        max-width: 450px;
    }

    .expertise-image {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .expertise-card {
        width: 115%;
        min-width: 100%;
        padding: 0;
        /* Remove padding for full-bleed image */
        overflow: hidden;
    }

    .expertise-slider-container {
        max-width: 100%;
        padding: 0 20px;
    }

    .expertise-image {
        height: 280px;
        margin-bottom: 0;
        border-radius: 0;
        /* Flush corners */
        border: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .expertise-card h3,
    .expertise-card p,
    .expertise-tags {
        padding: 0 20px;
    }

    .expertise-card h3 {
        margin-top: 25px;
        font-size: 1.3rem;
    }

    .expertise-card p {
        margin-bottom: 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .expertise-slider-container {
        max-width: 280px;
    }

    .expertise-image {
        height: 300px;
    }
}

.placeholder-glow::after {
    content: 'Product Preview';
    color: rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin-bottom: 10px;
}

.product-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
}

.btn-text {
    color: var(--primary-accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Contact --- */
.contact-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.contact-item i {
    color: var(--secondary-accent);
    font-size: 1.2rem;
}

.contact-form-wrapper {
    flex: 1;
    min-width: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-accent);
}

.form-group select option {
    background-color: #1a1a2e;
    color: #fff;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 15px;
    text-align: center;
}

/* --- Footer --- */
.footer {
    padding: 50px 0 30px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.5);
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.footer-logo-img {
    height: 45px;
    width: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--primary-accent);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-form-wrapper {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background: rgba(5, 5, 7, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        padding-top: 50px;
        transition: 0.3s;
        border-top: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section {
        flex-direction: column;
        justify-content: center;
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
        gap: 0;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .hero-content {
        position: relative;
        /* Sit on top */
        z-index: 2;
    }

    .hero-visual {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        /* Center it */
        z-index: 1;
        /* Behind text */
        opacity: 0.4;
        /* Fade it out so text is readable */
        pointer-events: none;
        /* Allow clicking through it */
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .orbit-container {
        width: 300px;
        height: 300px;
    }

    .contact-title {
        font-size: 2.2rem;
    }

    /* Mobile Improvements */
    .section {
        padding: 60px 0;
    }

    .contact-form-wrapper {
        min-width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
        /* Slightly tighter padding */
    }

    .logo {
        font-size: 1.2rem;
        /* Scaled down */
        gap: 8px;
    }

    .nav-logo-img {
        height: 28px;
    }

    .footer-logo {
        font-size: 1.3rem;
        gap: 10px;
    }

    .footer-logo-img {
        height: 35px;
    }

    .section {
        padding: 40px 0;
        /* Reduced padding */
    }

    .hero-title {
        font-size: 2.2rem;
        /* Slightly smaller */
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .orbit-container {
        width: 250px;
        height: 250px;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
        /* Consistent messaging */
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
}