/* 
   UPPERING v2.0 - Digital Ecosystem Design
   Theme: Gradient Orbs, Glassmorphism, Noise, Bento Grid
*/

:root {
    --bg-dark: #030305;
    --text-white: #ffffff;
    --text-gray: #9ca3af;

    /* Brand Gradients */
    --gradient-1: linear-gradient(135deg, #00C6FB 0%, #005BEA 100%);
    /* Cyan Blue */
    --gradient-2: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%);
    /* Violet Pink */
    --gradient-3: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    /* Emerald */

    /* Orbs Colors */
    --orb-cyan: rgba(0, 198, 251, 0.4);
    --orb-violet: rgba(127, 0, 255, 0.4);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --section-spacing: 120px;
}

/* RESETS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* UTILITIES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    color: white;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(to right, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00C6FB, #005BEA);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 91, 234, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* --- ORB BACKGROUND ANIMATION --- */
.orb-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: #030305;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: drift 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--orb-cyan);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--orb-violet);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.07;
    z-index: -1;
    pointer-events: none;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 100px) scale(1.1);
    }
}

/* --- HEADER --- */
header {
    padding: 20px 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 120px;
    /* Added spacing for fixed header */
    padding-bottom: 80px;
}

.hero-badge {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 32px;
    backdrop-filter: blur(5px);
    animation: fadeUp 1s ease-out;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -2px;
    animation: fadeUp 1s ease-out 0.2s backwards;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 48px;
    animation: fadeUp 1s ease-out 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    animation: fadeUp 1s ease-out 0.6s backwards;
}

/* --- INFINITE MARQUEE --- */
.marquee-section {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.marquee-item {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    white-space: nowrap;
}

@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

/* --- BENTO GRID SERVICES --- */
.services-section {
    padding: var(--section-spacing) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-gray);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 24px;
}

.bento-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    background: var(--glass-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Specific Bento Placements */
.span-2 {
    grid-column: span 2;
}

.span-1 {
    grid-column: span 1;
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Gradients for Bento Cards */
.card-marketing .bento-icon {
    color: #00C6FB;
}

.card-systems .bento-icon {
    color: #7F00FF;
}

.card-ai .bento-icon {
    color: #38ef7d;
}

.card-seo .bento-icon {
    color: #ffbd2e;
}

/* --- ROCKET CTA SECTION --- */
.rocket-cta {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    margin: 40px 0;
    background: linear-gradient(180deg, rgba(20, 20, 30, 0) 0%, rgba(0, 198, 251, 0.1) 100%);
    border: 1px solid var(--glass-border);
}

.rocket-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    position: relative;
}

.rocket-visual {
    font-size: 8rem;
    margin-bottom: 30px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 50px rgba(0, 198, 251, 0.5));
}

/* --- CONTACT SIMPLE --- */
.contact-section {
    padding: 100px 0;
}

.contact-wrapper {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    color: white;
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00C6FB;
    background: rgba(255, 255, 255, 0.05);
}

.contact-form textarea {
    min-height: 120px;
    resize: none;
}

/* --- FOOTER --- */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-45deg);
    }

    50% {
        transform: translateY(-20px) rotate(-45deg);
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .span-2 {
        grid-column: span 1;
    }

    .bento-card {
        min-height: 250px;
    }
}

/* Mobile Menu Styles */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
}

@media (max-width: 900px) {

    /* Mobile Menu */
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(3, 3, 5, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: 0.4s ease;
        z-index: 100;
    }

    .nav-links.menu-open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* 1. Hero Buttons Stacked */
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        padding: 0 20px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* 2. & 5. Reduced Section Title Margins */
    .section-title {
        margin-bottom: 40px;
        /* Reduced from 80px */
    }

    .contact-section .section-title {
        margin-bottom: 25px;
        /* Even smaller for contact */
    }

    /* 3. Reduced Bento Card Height & Grid Logic */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .span-2 {
        grid-column: span 1;
    }

    .bento-card {
        min-height: 200px;
        /* Reduced from 250px */
        padding: 25px;
    }

    /* 4. Reduced Space Rocket -> Contact */
    .contact-section {
        padding-top: 40px;
        /* Reduced from 100px */
        padding-bottom: 60px;
    }

    .rocket-cta {
        margin-bottom: 20px;
    }

    /* 6. More Form Side Margins */
    .contact-wrapper {
        padding: 0 15px;
        /* Adds extra internal spacing */
    }

    .contact-form {
        margin: 0 10px;
        /* Adds external margin */
    }

    /* Font Adjustments */
    .hero h1 {
        font-size: 3rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }
}