/* 
   Theme: Nloop Future
   Style: Dark / High-Tech / Neon
*/

:root {
    --bg-dark: #050a14;
    --bg-card: rgba(13, 22, 35, 0.7);
    --bg-card-hover: rgba(20, 30, 45, 0.9);
    --primary: #00ff88;
    /* Neon Green */
    --primary-glow: rgba(0, 255, 136, 0.5);
    --secondary: #00ccff;
    /* Cyan */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 204, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 40%);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 9999;
    /* Ensure high z-index */
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    background: rgba(5, 10, 20, 0.8);
    /* Added background for visibility */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.header-scrolled {
    padding: 0.7rem 2rem;
    background: rgba(5, 10, 20, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    height: 40px;
    filter: brightness(1.2);
    /* Make logo pop on dark bg */
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Added for vertical/horizontal centering support */
    position: relative;
    padding: 2rem;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(5, 10, 20, 0) 0%, var(--bg-dark) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300ff88' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

.hero-content {
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    /* Ensure full width up to max-width */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.2));
    animation: float 6s ease-in-out infinite;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.floating-image-slow {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 204, 255, 0.2));
    animation: float 8s ease-in-out infinite reverse;
    border-radius: 20px;
    border: 1px solid rgba(0, 204, 255, 0.1);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    background: #33ff9f;
}

/* Services */
.services {
    padding: 8rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.2);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* About Grid */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    /* Ensure full width up to max-width */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Steps */
.step-card {
    position: relative;
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: var(--glass-border);
    text-align: left;
}

.step-number {
    font-size: 5rem;
    font-weight: 800;
    position: absolute;
    top: 10px;
    right: 20px;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

/* Contact */
.contact-section {
    padding: 8rem 2rem;
    background: linear-gradient(to top, #02050a, var(--bg-dark));
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: var(--glass-border);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.input-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

footer a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 10px;
}

/* Mobile */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content,
    .about-content {
        order: 1;
    }

    .hero-visual,
    .about-visual {
        order: 2;
        /* Image below text on mobile? or above? Let's keep distinct */
    }

    /* Override text align for mobile center */
    .hero-content {
        text-align: center;
    }

    .hero p {
        margin: 0 auto 2rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .card {
        padding: 2rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cal.com Button Customization */
#cal-floating-button-root {
    transform: scale(0.85);
    transform-origin: bottom right;
    right: 20px !important;
    bottom: 20px !important;
    z-index: 99999 !important;
}

@media (max-width: 768px) {
    #cal-floating-button-root {
        transform: scale(0.75);
        right: 10px !important;
        bottom: 10px !important;
    }
}