:root {
    --primary-black: #000000;
    --secondary-black: #1a1a1a;
    --primary-white: #ffffff;
    --accent-white: #f8f9fa;
    --space-purple: #8A2BE2;
    --purple-light: #9370DB;
    --purple-dark: #4B0082;
}

/* Base Setup */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-black);
    color: var(--primary-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Space Animation Background */
#space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.shooting-star {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), white, rgba(255, 255, 255, 0));
    animation: shoot linear;
}

@keyframes shoot {
    0% {
        transform: translateX(-100vw) translateY(-20vh) rotate(30deg);
        opacity: 1;
    }

    100% {
        transform: translateX(100vw) translateY(80vh) rotate(30deg);
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Navigation */
.navbar {
    background-color: rgba(0, 0, 0, 0.7) !important;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Simple Underline Navbar Hover */
.nav-link {
    color: var(--primary-white) !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--space-purple);
    transition: width 0.3s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--purple-light) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--purple-light), var(--space-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 2.5rem;
    color: var(--accent-white);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease;
}

/* General Section Styling */
section {
    padding: 100px 0;
    position: relative;
    background-color: rgba(0, 0, 0, 0.6);
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 50px;
    font-weight: 700;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--purple-light), var(--space-purple));
    margin: 20px auto;
    border-radius: 2px;
}

/* Cards (Services & Process) */
.service-card {
    background: linear-gradient(145deg, var(--secondary-black), #252525);
    border-radius: 15px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    border: 1px solid rgba(138, 43, 226, 0.2);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.process-step {
    background: linear-gradient(145deg, var(--secondary-black), #252525);
    border-radius: 15px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    border: 1px solid rgba(138, 43, 226, 0.2);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card p,
.process-step p {
    flex-grow: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, var(--purple-light), var(--space-purple));
    transition: height 0.5s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover,
.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.4);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--purple-light), var(--space-purple));
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
}

#process {
    background: var(--primary-black);
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, var(--purple-light), var(--space-purple));
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
    z-index: 2;
}

.process-step {
    padding-top: 50px;
    text-align: center;
}

.process-step .service-icon {
    margin-top: 15px;
}

/* Slider CSS */
.projects-slider {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-slide {
    display: none;
    animation: fadeEffect 1s;
}

@keyframes fadeEffect {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

.project-slide.active {
    display: block;
}

.project-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    padding: 30px;
    color: white;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--space-purple);
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background: var(--space-purple);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Buttons */
.btn-custom {
    background: linear-gradient(to right, var(--purple-light), var(--space-purple));
    color: var(--primary-white);
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--space-purple), var(--purple-dark));
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-custom:hover::before {
    left: 0;
}

.btn-custom:hover {
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
    transform: scale(1.05);
}

.btn-custom:disabled {
    opacity: 0.7;
    background: var(--space-purple);
}

.btn-custom .spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.5rem;
}

.btn-details {
    background: transparent;
    color: var(--space-purple);
    border: 2px solid var(--space-purple);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-details:hover {
    background: var(--space-purple);
    color: var(--primary-white);
}

/* Contact & CTA */
.contact-form {
    background: linear-gradient(145deg, var(--secondary-black), #252525);
    padding: 50px;
    border-radius: 15px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.2);
    color: var(--primary-white);
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--primary-white);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.3), inset 0 2px 5px rgba(0, 0, 0, 0.2);
    border-color: var(--space-purple);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-select option {
    background: var(--secondary-black);
    color: var(--primary-white);
}

.launch-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    padding: 60px 30px;
    text-align: center;
    background: linear-gradient(45deg, var(--purple-dark), var(--space-purple), var(--purple-light));
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.rocket-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: rocketFloat 3s ease-in-out infinite;
}

@keyframes rocketFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background: linear-gradient(to top, #0a0a0a, var(--secondary-black));
    padding: 80px 0 40px;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    color: #adb5bd;
}

.footer-heading {
    color: var(--primary-white);
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-contact-info a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: var(--space-purple);
}

.social-icon {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--secondary-black), #252525);
    border-radius: 50%;
    margin: 0 7px;
    transition: all 0.3s ease;
    color: var(--primary-white);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
    background: linear-gradient(to right, var(--purple-light), var(--space-purple));
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 40px;
}

/* Modals */
.modal-content {
    background: linear-gradient(145deg, var(--secondary-black), #252525);
    border-radius: 15px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.modal-header {
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

.modal-title {
    color: var(--space-purple);
    font-weight: 700;
}

.service-feature {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.service-feature i {
    color: var(--space-purple);
    margin-right: 15px;
    margin-top: 5px;
    font-size: 1.2rem;
}

.btn-close {
    filter: invert(1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* --- MOBILE RESPONSIVENESS FIXES --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem;
    }

    .navbar-nav {
        align-items: flex-start;
    }

    .nav-link {
        margin: 0.5rem 0;
        padding: 0.5rem 0;
        width: 100%;
    }

    .nav-link::after {
        left: 0;
        transform: none;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 50%;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 1rem;
    }

    .contact-form {
        padding: 30px;
    }

    footer {
        text-align: center;
    }

    .project-image {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 35px;
        /* Adjust logo size */
    }

    section {
        padding: 60px 1rem;
    }

    .service-card,
    .process-step {
        padding: 30px 20px;
    }

    .project-image {
        height: 250px;
    }

    .contact-form {
        padding: 25px 15px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .launch-container h3 {
        font-size: 1.8rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }
}
