/* Modern Space-Themed Styling */
:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --dark: #0f0526;
    --light: #f8f9fa;
    --accent: #ff9e1b;
    /* Make sure this is defined */
    --neon-glow: 0 0 10px rgba(255, 158, 27, 0.8);
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100% !important;
}

/* General Styles */
body {
    line-height: 1.6;
    color: #222;
    background-color: #222;
    overflow-x: hidden;
    font-family: "Orbitron", "Segoe UI", sans-serif !important;
}

/* ////////////////////////////////////////////////////////////// */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s, visibility 1s;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 0 15px rgba(255, 158, 27, 0.7));
}

.loading-text {
    color: #ff9e1b;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(255, 158, 27, 0.8), 0 0 20px rgba(255, 158, 27, 0.6);
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-family: 'Orbitron', 'Segoe UI', sans-serif !important;
    text-align: center;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #ff9e1b, #ff6b1b) !important;
    box-shadow: var(--neon-glow);
    animation: loadProgress 2s forwards;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* ////////////////////////////////////////////////////////////// */

section {
    height: 100vh;
    /* Full viewport height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    color: white;
}
/* ////////////////////////////////////////////////////////////// */

header {
    background-color: rgba(17, 17, 17, 1);
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Orbitron', 'Segoe UI', sans-serif !important;
}
.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
    padding-left: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: baseline;
}
.logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 8px #ff9e1b);
    transition: transform 0.3s;
}
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 0px;
}
.logo-text h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
    text-shadow: var(--text-glow);
}
.logo-text p {
    margin: 3px 0 0;
    font-size: 0.9rem;
    color: #ff9e1b;
    text-shadow: 0 0 10px rgba(255, 158, 27, 0.8);
    letter-spacing: 1px;
}


@media (max-width: 1400px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
}

.menu-toggle,
.menu_toggle_inNav {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 0;
    position: absolute;
    top: 20px;
    right: 20px;
}

.menu_toggle_inNav {
    color: black !important;
}

@media (max-width: 576px) {
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .logo img {
        height: 50px;
    }

    .hero h2 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .feature-card {
        padding: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    padding: 0;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
}

nav ul li a:hover {
    color: var(--accent);
    text-shadow: var(--neon-glow);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    box-shadow: var(--neon-glow);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

@media (max-width: 990px) {

    .menu-toggle,
    .menu_toggle_inNav {
        display: block;
    }

    header {
        position: sticky !important;
    }

    .header-content {
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
    }

    .header-content nav {
        transform: translate(100%, 0%);
        width: 100%;
        height: 100vh;
        max-width: 400px;
        background-color: white;
        color: black !important;
        position: absolute;
        top: 0;
        right: 0px;
        transition: transform 0.3s ease, opacity 0.3s ease 0.1s;
        display: none;
        opacity: 0;
        color: white;
    }
    
    .header-content nav.active {
        opacity: 1;
        display: block;
        transform: translate(0%, 0%);
    }

    nav ul {
        gap: 25px;
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        align-items: center;
        height: 100%;
        width: 100%;
    }

    nav ul li a {
        color: #000;
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
        transition: all 0.3s;
        position: relative;
        padding: 5px 0;
        white-space: nowrap;
    }

}

/* ////////////////////////////////////////////////////////////// */

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5%;
}

.hero video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero_content {
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 600px;
}

.hero_content h1 {
    font-size: 60px;
    color: white;
    text-align: left;
}

.hero_content p {
    margin: 20px 0;
    font-size: 16px;
    color: white;
    text-align: left;
}

.hero_content .mouse {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 12px 7px 6px 7px;
    border-radius: 25px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
}

.hero_content .mouse::after {
    content: '';
    background-color: transparent;
    border-bottom: 1px solid white;
    border-right: 1px solid white;
    padding: 3px;
    position: absolute;
    transform: rotate(45deg);
    bottom: -10px;
}

.hero_content .mouse .scroll {
    padding: 5px 3px;
    background-color: black;
    border-radius: 25px;
    animation: scroll_animation 2s ease-in-out infinite forwards;
}

@keyframes scroll_animation {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0px);
    }
}

.cta {
    padding: 12px 30px;
    background: linear-gradient(45deg, #442b7d, #70005a);
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta:hover {
    background: linear-gradient(45deg, #6631c9, #9e0e6f);
}

/* /////////////////////////////////////////////////////////////// */
/* Our Work Section */

#our_work {
    background-color: #222222;
    padding: 60px 50px;
    position: relative;
}
#our_work .cloudy_effect {
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;
    padding: 50px;
    background-color: #2222221a;
    backdrop-filter: blur(20px);
}
#our_work h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}
/* Service Section Scroll Container */
.service-scroll-container {
    overflow-x: auto;
    display: flex;
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    /* Ensure the container is full width */
    justify-content: flex-start;
    /* Center the content */
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 20px;
    background-color: #4a1268;
    height: 70%;
}
/* Horizontally align cards */
.our_work_cards {
    display: flex;
    gap: 20px;
    width: max-content;
    /* Ensures content can extend horizontally */
    top: 0;
    left: 0;
    padding: 20px;
}
.work_card {
    flex: 0 0 auto;
    width: 280px;
    background: linear-gradient(135deg, #1d1d2c, #2c2c3a);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-height: 350px;
}
.work_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.card_icon {
    font-size: 36px;
    color: #00f0ff;
    margin-bottom: 10px;
    transition: all 0.3s ease-in-out;
}
.work_card:hover .card_icon {
    transform: rotate(-15deg) translateY(-10px);
}
.card_title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}
.card_description {
    font-size: 14px;
    opacity: 0.85;
}

/* /////////////////////////////////////////////////////// */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* /////////////////////////////////////////////////////// */

footer {
    background-color: rgba(10, 31, 68, 1);
    padding: 100px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 30px;
    font-size: 1.6rem;
    font-weight: 600;
    text-shadow: var(--neon-glow);
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(8px);
    text-shadow: var(--neon-glow);
}

.footer-links a i {
    font-size: 0.9rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 1.05rem;
}

.contact-info i {
    color: var(--accent);
    width: 24px;
    text-align: center;
    text-shadow: var(--neon-glow);
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.3rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.copyright p {
    margin: 0;
}