@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color System */
    --color-primary: #6B4EFF;
    --color-bg: #F8F8F6;
    --color-text: #111111;
    --color-text-secondary: #666666;
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 8rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-snappy: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: var(--space-md);
}

h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

p {
    color: var(--color-text-secondary);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    max-width: 65ch;
    margin-bottom: var(--space-md);
}

.eyebrow {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: var(--space-2xl) 0;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #553de0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(107, 78, 255, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    border-color: var(--color-text);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: var(--transition-smooth);
    background-color: var(--color-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 1rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-snappy);
}

.nav-links a:hover {
    color: var(--color-white);
}

.navbar .btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.navbar .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar .btn-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.navbar .btn-secondary:hover {
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    padding: 0 5% 0 10%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.trust-item svg {
    color: var(--color-primary);
    width: 16px;
    height: 16px;
}

.hero-image {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Trust Strip Section */
.trust-strip {
    background-color: var(--color-white);
    padding: var(--space-xl) 5%;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.trust-stat {
    text-align: center;
}

.trust-stat-number {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.03em;
    display: block;
}

.trust-stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-content {
        padding: calc(var(--space-2xl) + 80px) 5% var(--space-xl);
    }
    
    .hero-image {
        height: 60vh;
    }
    
    .trust-strip {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }
    
    .trust-stat {
        flex: 1 1 40%;
    }
}

/* Featured Work Section */
.featured-work {
    background-color: var(--color-white);
}

.work-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}

.works-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-row {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    align-items: center;
}

.project-row:nth-child(even) {
    flex-direction: row-reverse;
}

.project-image-container {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.project-row img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-row:hover img {
    transform: scale(1.03);
}

.project-text-container {
    flex: 1;
    padding: var(--space-md) 0;
}

.project-text-container h3 {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
    color: var(--color-black);
}

.project-category {
    color: var(--color-gray);
    font-weight: 500;
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.project-desc {
    color: var(--color-black);
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Solutions Section */
.solutions {
    background-color: var(--color-bg);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.solution-block {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.solution-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.solution-img {
    width: 100%;
    overflow: hidden;
}

.solution-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-block:hover .solution-img img {
    transform: scale(1.05);
}

.solution-content {
    padding: var(--space-lg);
}

.solution-content h3 {
    margin-bottom: var(--space-sm);
}

.solution-content p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Sticky Storytelling Section */
.sticky-story {
    background-color: var(--color-black);
    color: var(--color-white);
}

.sticky-story h2 {
    color: var(--color-white);
}

.sticky-container {
    display: flex;
    gap: var(--space-xl);
    position: relative;
    align-items: flex-start;
}

.sticky-text {
    flex: 1;
}

.story-block {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.3;
    transition: opacity var(--transition-smooth);
}

.story-block p {
    color: rgba(255,255,255,0.7);
}

.story-block[data-id="1"] { opacity: 1; } 

.sticky-visual {
    flex: 1;
    position: sticky;
    top: 20vh;
    height: 60vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

@media (max-width: 992px) {
    .sticky-container {
        flex-direction: column;
    }
    .sticky-visual {
        position: relative;
        top: 0;
        width: 100%;
        height: 40vh;
        margin-bottom: var(--space-xl);
        order: -1;
    }
    .story-block {
        height: auto;
        margin-bottom: var(--space-xl);
        opacity: 1;
    }
}

.story-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.story-img.active {
    opacity: 1;
}

/* Bento Grid Results */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: var(--space-md);
}

.bento-item {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.bento-item.highlight {
    grid-column: span 2;
    grid-row: span 2;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.bento-item.highlight .trust-stat-number,
.bento-item.highlight .bento-label {
    color: var(--color-white);
}

.bento-item.highlight-dark {
    grid-column: span 2;
    background-color: var(--color-text);
    color: var(--color-white);
}

.bento-item.highlight-dark .trust-stat-number,
.bento-item.highlight-dark .bento-label {
    color: var(--color-white);
}

.bento-label {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: var(--space-sm);
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-item.highlight, .bento-item.highlight-dark {
        grid-column: span 1;
        grid-row: span 1;
    }
    .bento-item {
        padding: var(--space-xl);
    }
}

/* Process Timeline */
.process {
    background-color: var(--color-bg);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    position: relative;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 80px;
    bottom: -var(--space-xl);
    width: 2px;
    background-color: rgba(0,0,0,0.1);
}

[dir="rtl"] .timeline-step:not(:last-child)::after {
    left: auto;
    right: 40px;
}

/* Scroll Animations */
.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.step-content {
    padding-top: var(--space-sm);
}

.step-image {
    grid-column: 2;
    margin-top: var(--space-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 300px;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Why Neuralys */
.why-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.why-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 80vh;
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-list {
    list-style: none;
    margin-top: var(--space-lg);
}

.premium-list li {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.premium-list li::before {
    content: '';
    width: 24px;
    height: 24px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 992px) {
    .why-image {
        height: 50vh;
    }
}

/* Testimonials */
.testimonials {
    background-color: var(--color-bg);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.testimonial-card {
    background-color: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info strong {
    display: block;
    color: var(--color-text);
}

.author-info span {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Final CTA */
.final-cta {
    position: relative;
    padding: var(--space-2xl) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.cta-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
}

.cta-background img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    z-index: -1;
}

.cta-content {
    max-width: 800px;
}

.cta-content h2 {
    color: var(--color-white);
}

.cta-content p {
    color: rgba(255,255,255,0.8);
    margin: 0 auto var(--space-xl);
}

/* Footer */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition-snappy);
}

.footer-links a:hover {
    color: var(--color-white);
}

/* Project Form Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--color-white);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

[dir="rtl"] .close-modal {
    right: auto;
    left: 20px;
}

.close-modal:hover {
    color: var(--color-primary);
}

.modal-header {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-snappy);
}

.form-group input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(107, 78, 255, 0.1);
}

/* Mobile Menu for Forced Desktop Viewport */
.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    z-index: 101;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn span {
    width: 40px;
    height: 4px;
    background: var(--color-white);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger-btn.open span:nth-child(1) { transform: rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: rotate(-45deg); }

/* Apply menu on mobile */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-primary);
        z-index: 100;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        gap: 0;
    }
    .nav-links.active {
        transform: translateY(0);
    }
    .nav-links a {
        font-size: 3rem; /* Large enough for zoomed-out view */
        margin-bottom: 2.5rem;
        color: var(--color-white);
    }
}
