:root {
    --bg-color: #050505;
    --surface-color: #0e0e11;
    --surface-hover: #16161c;
    --primary-color: #00f0ff;
    --primary-dim: rgba(0, 240, 255, 0.1);
    --secondary-accent: #0077ff;
    --text-main: #ffffff;
    --text-muted: #9494a8;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
    --max-width: 1200px;
    --nav-height: 80px;
    --animation-speed: 0.4s;
    --marquee-width: 300px;
    --marquee-gap: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--animation-speed);
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--secondary-accent) 0%, var(--primary-color) 100%);
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-dim);
}

.btn-primary.small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-text:hover {
    gap: 0.8rem;
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    mix-blend-mode: screen;
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 5, 5, 0.95);
    /* Increased opacity for better readability on mobile */
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.dot {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--surface-color);
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu a {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Hero Section */
/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: flex-end;
    /* Align to bottom */
    justify-content: flex-end;
    /* Align to right */
    overflow: hidden;
    padding-bottom: 5rem;
    /* Space from bottom */
    padding-right: 5%;
    /* Space from right */
}

.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    object-position: top center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(5, 5, 5, 0) 0%, var(--bg-color) 90%);
    /* Reduced overlay intensity if needed, or keep same */
}

.hero-content {
    text-align: right;
    /* Right align text */
    z-index: 1;
    max-width: 600px;
    /* Reduced width to fit on the side */
    margin-left: auto;
    /* Push to right */
    margin-right: 0;
}

.sub-headline {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 100%;
    margin-left: auto;
    /* Push to right */
    margin-right: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Services */
/* Services Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Force 4 columns on desktop */
    }
}

/* Services Section */
.services-section {
    padding: 8rem 0;
    background: linear-gradient(rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.9)), url('images/services-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.service-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.icon-box {
    display: none;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* About */
.about-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, var(--bg-color), var(--surface-color));
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.visual-card {
    width: 100%;
    aspect-ratio: 1;
    /* Square */
    background: var(--surface-hover);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-icon {
    font-size: 5rem;
    color: var(--primary-color);
    z-index: 2;
    position: relative;
}

.about-img-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    mix-blend-mode: overlay;
}

.glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--primary-dim) 0%, transparent 70%);
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

/* Contact */
.contact-section {
    padding: 8rem 0;
    background: var(--bg-color);
}

.info-items {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-form-wrapper {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand p {
    margin: 0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
}

.social-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}



/* About */
.about-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, var(--bg-color), var(--surface-color));
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.visual-card {
    width: 100%;
    aspect-ratio: 1;
    /* Square */
    background: var(--surface-hover);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-icon {
    font-size: 5rem;
    color: var(--primary-color);
    z-index: 2;
    position: relative;
}

.about-img-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    mix-blend-mode: overlay;
}

.glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--primary-dim) 0%, transparent 70%);
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

/* Contact */
.contact-section {
    padding: 8rem 0;
    background: var(--bg-color);
}

.info-items {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-form-wrapper {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand p {
    margin: 0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
}

.social-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-200 {
    transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    /* Hero Fixes for Mobile */
    .hero-bg {
        position: absolute;
        /* Disables fixed parallax which breaks on some mobile browsers */
        height: 100%;
    }

    .hero-img {
        /* Adjust position to ensure astronaut body is visible, not just feet */
        object-position: center;
    }

    .hero-section {
        justify-content: center;
        /* Center horizontally */
        align-items: center;
        /* Center vertically or keep bottom? Let's Center for safety on mobile */
        padding-right: 1rem;
        padding-left: 1rem;
        padding-bottom: 4rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }

    .sub-headline {
        margin: 0 auto 2rem auto;
    }

    /* Global Section Padding Reduction for Mobile */
    .services-section,
    .about-section,
    .contact-section,
    .showcase-section {
        padding: 4rem 0;
    }

    /* Services & Marquee Mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Variable update for mobile marquee */
    :root {
        --marquee-width: 220px;
    }

    /* Center alignments for mobile consistency */
    .about-content,
    .contact-info {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .cta-group {
        justify-content: center;
    }

    .info-items {
        align-items: center;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: 500px;
        padding-bottom: 2rem;
    }

    .services-section,
    .about-section,
    .contact-section,
    .showcase-section {
        padding: 3rem 0;
    }
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }
}


/* Showcase Section */
.showcase-section {
    padding: 8rem 0;
    background: var(--surface-color);
    overflow: hidden;
}

.carousel-container {
    perspective: 1000px;
    width: 100%;
    margin-top: 3rem;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 1rem;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* Hide scrollbar IE */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.showcase-card {
    min-width: 300px;
    height: 400px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    background: #000;
}

.showcase-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.2);
    z-index: 10;
}

.card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.showcase-card:hover .card-bg {
    opacity: 0.8;
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0));
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.showcase-card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card-overlay p {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .carousel-track {
        justify-content: center;
        /* Center items on desktop if few */
        overflow-x: visible;
        /* Show all if they fit */
    }
}


/* Marquee Showcase */
.container-fluid {
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    /* Mask effects for fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: var(--marquee-gap);
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-item {
    width: var(--marquee-width);
    height: var(--marquee-width);
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.marquee-item:hover {
    transform: scale(1.05);
    z-index: 10;
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-1 * (var(--marquee-width) * 5 + var(--marquee-gap) * 5)));
        /* Move by 5 items + gaps */
    }
}

/* Pause on hover */
.marquee-track:hover {
    animation-play-state: paused;
}

.about-portrait {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 1;
    z-index: 1;
}

/* Call to Action Buttons */
.cta-container {
    text-align: center;
    margin-top: 3rem;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}