/* 
   LEXUSS STUDIO™ - Premium Digital Agency Styles 
   Description: Modern, minimal, bold design system.
*/

:root {
    /* Colors */
    --bg-color: #f6f6f6;
    --bg-card: #ffffff;
    --text-main: #111111;
    --text-muted: #666666;
    --accent-gradient: linear-gradient(135deg, #2563eb, #7c3aed);
    --accent-solid: #4f46e5;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 120px 0;
    --border-radius: 12px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.t-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.02em;
    border: none;
}

.btn-primary {
    background: var(--text-main);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--accent-solid);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    margin-left: 1rem;
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2.5rem 0;
    /* Initial padding */
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    padding: 1.25rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--text-main);
    position: relative;
    z-index: 1001;
}

.tm {
    font-size: 0.8rem;
    vertical-align: super;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--accent-solid);
}

.btn-primary-nav {
    background: var(--text-main);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition-fast);
}

.btn-primary-nav:hover {
    background: var(--accent-solid);
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* Orb Backgrounds */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Increased blur for softer look */
    opacity: 0.25;
    /* Softer opacity */
    z-index: -1;
    animation: floating 10s infinite ease-in-out alternate;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-gradient);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #4cc9f0;
    bottom: -50px;
    left: -100px;
    animation-delay: -5s;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    /* Constrain width for better reading */
}

/* Sections Global */
.section {
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--accent-solid);
    margin-bottom: 1rem;
}

.section-title {
    max-width: 600px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #444;
    /* Slightly darker text for readability */
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
    display: inline-block;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-solid);
    vertical-align: super;
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* Subtle border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    /* Very subtle default shadow */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Stronger lift */
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-solid);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Process Section */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 2rem;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    /* Align with numbers mostly */
    left: 40px;
    right: 40px;
    height: 1px;
    background: #ddd;
    z-index: 0;
    display: none;
    /* Hide on small screens, can enable on large */
}

@media(min-width: 900px) {
    .process-steps::before {
        display: block;
    }
}

.step {
    background: var(--bg-color);
    /* Mask the line */
    position: relative;
    z-index: 1;
    flex: 1;
    padding-right: 1rem;
}

.step-number {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: var(--text-main);
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step h3 {
    margin-bottom: 0.5rem;
}

/* Work / Portfolio Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.work-item {
    cursor: pointer;
    group: hover;
}

.work-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
}

/* Gradient Placeholders for Images */
.placeholder-img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gradient-1 {
    background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
}

.gradient-2 {
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

.gradient-3 {
    background: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
}

.gradient-4 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.work-item:hover .placeholder-img {
    transform: scale(1.05);
    /* Zoom effect */
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.btn-view {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--text-main);
    border-radius: 50px;
    font-weight: 500;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.work-item:hover .btn-view {
    transform: translateY(0);
}

.work-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

.work-cat {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Testimonials */
/* Testimonials Carousel */
.testimonials {
    background: #fff;
    text-align: center;
    overflow: hidden;
    /* Hide overflow for marquee */
    padding: 6rem 0;
}

.container-fluid {
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    background: #f9f9f9;
    padding: 3rem;
    border-radius: var(--border-radius);
    width: 450px;
    flex-shrink: 0;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.quote {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-main);
    margin-bottom: 2rem;
    font-style: italic;
    line-height: 1.5;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

/* Avatar Placeholders with colors */
.av-1 {
    background: #ff9a9e;
}

.av-2 {
    background: #a1c4fd;
}

.av-3 {
    background: #cfd9df;
}

.av-4 {
    background: #667eea;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }

    /* Move by half the width (original set) + gap adjustment roughly */
    /* Exact calculation: 4 cards + 4 gaps per set. Move by one full set width. 
       450px * 4 = 1800px. Gap 2rem * 4 = 8rem (128px). Total ~1928px.
       Since we duplicate exactly, translateX(-50%) of the *track* works if gaps are evenly distributed.
    */
}

/* Portfolio Images */
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-item:hover .project-img {
    transform: scale(1.05);
}

/* CTA Section */
.cta {
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    margin: 4rem 2rem;
    /* inset style cta */
    width: auto;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 2rem;
}

.form-group {
    display: flex;
    gap: 1rem;
}

input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #ddd;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

input[type="email"]:focus {
    border-color: var(--accent-solid);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Footer */
.footer {
    background: #111;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand .logo {
    color: white;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #888;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-column a {
    display: block;
    color: #888;
    margin-bottom: 0.75rem;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #222;
    color: #555;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .about-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
        align-items: flex-start;
    }

    .process-steps::before {
        display: none;
    }

    .step {
        display: flex;
        gap: 1.5rem;
        align-items: flex-start;
        width: 100%;
    }

    .step-number {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .form-group {
        flex-direction: column;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
        display: flex;
        width: 100%;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
}

/* Mobile Menu Button - simple hamburger */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    position: absolute;
    transition: all 0.3s;
}

.mobile-menu-btn span:first-child {
    top: 0;
}

.mobile-menu-btn span:last-child {
    bottom: 0;
}

.mobile-menu-btn.active span:first-child {
    transform: rotate(45deg);
    top: 9px;
}

.mobile-menu-btn.active span:last-child {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Animations */
.reveal,
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active,
.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}