/* 
   Nowrin Labs - Redesign
   Theme: Bento / Dark Noise / Neon
*/

:root {
    --bg: #050505;
    --bg-surface: #0f1115;
    --text-main: #ffffff;
    --text-muted: #888888;

    --primary: #5200ff;
    --accent-cyan: #00fff2;
    --accent-pink: #ff00c8;

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;

    --border-light: 1px solid rgba(255, 255, 255, 0.08);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.05;
    background-image: 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)'/%3E%3C/svg%3E");
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-glow {
    background: linear-gradient(45deg, var(--primary), var(--accent-pink));
    color: #fff;
    border: none;
    box-shadow: 0 0 15px rgba(82, 0, 255, 0.5);
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(82, 0, 255, 0.8), 0 0 10px var(--accent-pink);
    transform: scale(1.05);
}

.btn-text {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-text:hover {
    border-color: #fff;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: 0.3s;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    /* Invert colors to make dark logo white for dark theme */
    filter: invert(1) brightness(2);
}

.highlight {
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: #fff;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.line {
    width: 24px;
    height: 2px;
    background: #fff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin: 1.5rem 0;
    letter-spacing: -2px;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    background: rgba(0, 255, 242, 0.05);
}

/* Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    opacity: 0.4;
    animation: floating 10s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -20%;
    left: -10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-pink);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes floating {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, -50px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: #fff;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Trust Marquee */
.trust-marquee {
    border-top: var(--border-light);
    border-bottom: var(--border-light);
    padding: 2rem 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.marquee-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.marquee-wrapper {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
    gap: 3rem;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #555;
    font-weight: 700;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Services - Bento Grid */
.section-dark {
    padding: 6rem 0;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.2rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-surface);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.span-2 {
    grid-column: span 2;
}

.row-span-2 {
    grid-row: span 2;
}

.bento-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.bento-card p {
    color: var(--text-muted);
}

/* Specific Bento Styles */
.bento-web {
    background: linear-gradient(to bottom right, #1a1d24, #0f1115);
}

.tech-stack {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.tech-stack span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

.bento-mobile {
    background: radial-gradient(circle at center, #1a0a2e 0%, #0f1115 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.phone-mockup {
    width: 100%;
    height: 300px;
    background: #000;
    border-radius: 20px;
    margin-top: 2rem;
    border: 4px solid #333;
}

/* Process */
.section-padding {
    padding: 6rem 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-muted);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: var(--radius-md);
    border: var(--border-light);
}

.quote {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.gradient-1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%);
}

.author-info h4 {
    font-size: 1.1rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact CTA */
.cta-title {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.simple-form {
    display: inline-flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 100px;
    border: var(--border-light);
}

.simple-form input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0 1.5rem;
    font-size: 1.1rem;
    width: 300px;
}

.simple-form input:focus {
    outline: none;
}

/* Footer */
.main-footer {
    padding: 4rem 0 2rem;
    border-top: var(--border-light);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: inline-block;
}

.footer-col a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.footer-col svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
}

.footer-bottom {
    text-align: center;
    color: #444;
    font-size: 0.9rem;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    border: var(--border-light);
    border-radius: var(--radius-md);
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* FAQ Section */
.small-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    overflow: hidden;
    transition: 0.3s;
}

.accordion-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 2rem;
    color: var(--text-muted);
}

.accordion-item.active .accordion-content {
    padding-bottom: 1.5rem;
}

.accordion-header .icon {
    font-size: 1.5rem;
    transition: 0.3s;
}

.accordion-item.active .icon {
    transform: rotate(45deg);
    color: var(--primary);
}

/* Design Showcase */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.showcase-item {
    cursor: pointer;
    transition: 0.3s;
}

.showcase-item:hover {
    transform: translateY(-10px);
}

.showcase-thumb {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: var(--border-light);
}

.showcase-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.showcase-item:hover .showcase-thumb::after {
    background: rgba(255, 255, 255, 0.05);
}

.showcase-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.showcase-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Utils */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Design --- */

/* Tablet & Small Laptops (1024px and down) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Re-flow specific bento items for 2-column layout */
    .span-2 {
        grid-column: span 2;
    }

    .row-span-2 {
        grid-row: span 1;
    }

    /* Reset height for mobile flow */
    .bento-card {
        min-height: 250px;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile Devices (768px and down) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-bottom: var(--border-light);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        margin-bottom: 1.5rem;
    }

    .nav-links a {
        font-size: 1.25rem;
        font-weight: 600;
    }

    .btn-glow {
        display: none;
    }

    /* Hide CTA in header, maybe show in menu? */
    .mobile-menu-btn {
        display: flex;
    }

    /* Show Hamburger */

    /* Hero */
    .hero {
        padding-top: 100px;
        justify-content: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-desc {
        font-size: 1.1rem;
    }

    /* Layout Stacking */
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    /* Center align footer items on mobile */
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .simple-form {
        flex-direction: column;
        background: transparent;
        border: none;
        width: 100%;
    }

    .simple-form input {
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        padding: 1rem;
        border-radius: 50px;
        margin-bottom: 1rem;
        text-align: center;
    }

    .simple-form button {
        width: 100%;
    }
}

/* Small Screens (480px and down) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .cta-title {
        font-size: 2.5rem;
    }
}