/* 
   ANTIGRAVITY DESIGN SYSTEM 
   Theme: Cosmic, Floating, Innovative
*/

:root {
    /* Color Palette */
    --space-bg: #0B0F1F;
    --primary: #9B5DE5;
    /* Purple */
    --secondary: #00C6FF;
    /* Bright Blue */
    --text-main: #FFFFFF;
    --text-muted: #B0B8D1;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0B0F1F 0%, #1a1f35 100%);
    --gradient-text: linear-gradient(90deg, #9B5DE5, #00C6FF);
    --gradient-glow: radial-gradient(circle, rgba(155, 93, 229, 0.3) 0%, rgba(0, 198, 255, 0.1) 60%, transparent 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-blur: blur(10px);

    /* Spacing */
    --container-padding: 2rem;
    --max-width: 1200px;
}

/* Reset & Base */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--space-bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.logo,
.btn-gravity,
.btn-portal {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Navigation (Glass Header) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    background: rgba(11, 15, 31, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

.btn-nav {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-nav:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(155, 93, 229, 0.5);
}

.mobile-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
}

/* --- Hero Section: The Launchpad --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.stars-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(1px 1px at 10% 10%, white, transparent),
        radial-gradient(1px 1px at 20% 40%, white, transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 80% 80%, white, transparent);
    background-size: 500px 500px;
    opacity: 0.5;
    z-index: -1;
    animation: starsMove 100s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-gravity {
    margin-top: 15px;
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--gradient-text);
    color: white;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(155, 93, 229, 0.4);
    animation: float 3s ease-in-out infinite;
    position: relative;
    top: 50px;
    /* Push button down slightly for spacing */
}

/* Core Animation */
.hero-core-animation {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--gradient-glow);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.6;
    animation: pulse 5s ease-in-out infinite;
}

/* --- Services: The Constellation --- */
.constellation-section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-main);
}

.section-title p {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.constellation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.star-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.star-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.star-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: 0.4s;
}

.star-card:hover::before {
    opacity: 1;
}

.star-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    transition: 0.3s;
}

.star-card:hover .star-icon {
    color: var(--text-main);
    text-shadow: 0 0 20px var(--secondary);
    transform: scale(1.1);
}

/* SMM & GBP Highlight */
.highlight-smm {
    grid-column: span 1;
    /* On desktop could span 2 if grid allows */
    border: 1px solid rgba(155, 93, 229, 0.3);
    box-shadow: 0 0 30px rgba(155, 93, 229, 0.1);
}

.highlight-smm .star-icon {
    color: var(--primary);
}

.highlight-smm:hover {
    box-shadow: 0 0 50px rgba(155, 93, 229, 0.3);
}

.highlight-gbp {
    border: 1px solid rgba(0, 198, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 198, 255, 0.1);
}

.highlight-gbp .star-icon {
    color: var(--secondary);
}

.highlight-gbp:hover {
    box-shadow: 0 0 50px rgba(0, 198, 255, 0.3);
}

.star-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.star-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Zero-Gravity CTA --- */
.zero-gravity-section {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(11, 15, 31, 0) 0%, #0B0F1F 100%);
}

.zero-gravity-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent, var(--secondary), transparent);
    border-radius: 50%;
    opacity: 0.1;
    animation: rotate 20s linear infinite;
    z-index: 0;
}

.z-content {
    position: relative;
    z-index: 2;
}

.z-content h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.z-content h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 300;
}

.z-content p {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

.btn-portal {
    padding: 1rem 3rem;
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-portal:hover {
    background: var(--secondary);
    color: var(--space-bg);
    box-shadow: 0 0 30px var(--secondary);
}

/* --- Success Stories --- */
.stories-section {
    padding: 100px 0;
}

.stories-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.stories-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 40px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.stories-track::-webkit-scrollbar {
    display: none;
}

/* Hide Chrome */

.planet-card {
    min-width: 350px;
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: 0.3s;
}

.planet-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
}

.planet-icon {
    font-size: 2rem;
    color: var(--primary);
}

.planet-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(155, 93, 229, 0.2);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

.planet-metric {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.planet-content p {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Contact & Footer --- */
.contact-section {
    background: transparent !important;
    color: white !important;
}

.contact-wrapper {
    background: var(--glass-bg) !important;
    border: var(--glass-border) !important;
    color: white !important;
}

.contact-wrapper input,
.contact-wrapper textarea {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.contact-wrapper button {
    background: var(--gradient-text);
    color: white;
}

.footer {
    background: #05070f;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 0 20px;
}

.footer h4 {
    color: white;
}

.footer ul li a {
    color: var(--text-muted);
}

.footer ul li a:hover {
    color: var(--secondary);
}

/* --- Animations --- */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes starsMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 1000px 1000px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 15, 31, 0.95);
        backdrop-filter: blur(20px);
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    /* Add JS toggle later */
    .mobile-toggle {
        display: block;
        cursor: pointer;
    }

    .constellation-grid {
        grid-template-columns: 1fr;
    }

    .hero-core-animation {
        width: 300px;
        height: 300px;
    }
}