:root {
    --bg-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-dark: #111111;
    --text-gray: #4b5563;
    --accent-blue: #5b8bf7; /* Color for the scribble */
    --hero-bg-start: #a3ccff; /* approximate top color */
    --hero-bg-end: #dbeafe; /* approximate bottom color */
    --btn-black: #0f0f0f;
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--hero-bg-end);
    overflow-x: hidden; /* Prevent scrollbar if elements float out */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: #1e1e1e; /* Dark background matching screenshot */
    color: var(--text-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 2px;
    z-index: 1002;
}

.logo i {
    font-size: 20px;
    color: white; /* Gear icon color */
    margin: 0 1px;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #dedede;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
    padding: 5px;
}

.menu-btn:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    /* Gradient background simulation */
    background: linear-gradient(180deg, #cde4ff 0%, #eef6ff 60%, #ffffff 100%);
    min-height: 85vh; /* Fill most of the screen */
    display: flex;
    align-items: center;
    color: var(--text-dark);
    position: relative;
    padding-top: 80px; /* Space from navbar */
    padding-bottom: 80px;
    overflow-x: clip; /* Clip horizontal overflow but allow vertical */
    overflow-y: visible; /* Allow sticker to overlap vertically */
}

.hero-container {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

.hero-subtitle-top {
    font-size: 15px;
    color: #555;
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-title {
    font-size: 72px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 30px;
    color: #111;
    letter-spacing: -1.5px;
}

/* Scribble effect */
.highlight-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.scribble {
    position: absolute;
    top: -15%;
    left: -8%;
    width: 116%;
    height: 130%; /* Taller to encircle properly */
    z-index: -1;
    pointer-events: none;
    transform: rotate(-2deg);
}

.hero-description {
    font-size: 20px;
    line-height: 1.5;
    color: #222;
    margin-bottom: 40px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.btn-book {
    display: inline-block;
    background-color: var(--btn-black);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 18px 45px;
    border-radius: 14px;
    font-size: 18px;
    transition: transform 0.2s, background-color 0.3s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.btn-book:hover {
    transform: translateY(-2px);
    background-color: #000;
}

.hero-footer-text {
    margin-top: 25px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* Placeholders for graphics - positioning based on screenshot */
/* .floating-element { */
/* Floating Elements - Real Assets */
.floating-element {
    position: absolute;
    z-index: 5;
    pointer-events: none; /* Prevent interference with clicks */
}

.floating-element img {
    max-width: 100%;
    height: auto;
    display: block;
}

.left-graphic {
    position: absolute; /* Back to absolute positioning within hero */
    top: 50%;
    left: -100px; /* Extend beyond container to screen edge */
    width: 280px; /* Smaller size */
    transform: translateY(-50%);
    opacity: 0.85; /* Reduced opacity */
}

.right-graphic {
    position: absolute; /* Back to absolute positioning within hero */
    top: 50%;
    right: -100px; /* Extend beyond container to screen edge */
    width: 280px; /* Smaller size */
    transform: translateY(-50%);
    opacity: 0.85; /* Reduced opacity */
}

.bottom-sticker {
    bottom: -220px; /* Much lower position - overlaps next section */
    left: 10%;
    width: 140px;
    z-index: 25;
    transform: rotate(-15deg);
}

.sticker-img {
    width: 100%;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

/* Responsive tweak: keep sticker visible on small screens */
@media (max-width: 768px) {
    .bottom-sticker {
        bottom: -120px;
        left: 50%;
        transform: translateX(-50%) rotate(-15deg);
        width: 120px;
    }
}

/* Work Gallery */
.work-gallery {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding-left: 20px; /* Initial offset */
    /* No CSS animation here, controlled by JS scroll */
    will-change: transform;
}

.gallery-card {
    width: 320px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    background: white;
}

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

/* Partners Strip */
.partners-strip {
    background-color: #000;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow-x: auto; /* Allow scroll on small screens */
}

.partners-container {
    display: flex;
    gap: 60px;
    align-items: center;
    padding: 0 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.partner-item {
    color: #444;
    font-size: 32px;
    transition: color 0.3s;
    cursor: pointer;
}

.partner-item:hover {
    color: #fff;
}

/* --- New Sections Styles --- */

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.section-desc {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
}

.max-w-800 {
    max-width: 800px;
}

/* How It Works */
.how-it-works {
    background: linear-gradient(180deg, #eef6ff 0%, #d4e8ff 100%);
    padding: 100px 0;
}

.keyboard-callout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.key {
    background: linear-gradient(145deg, #e6e6e6, #cccccc);
    border: 2px solid #999;
    border-bottom-width: 6px;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 32px;
    font-weight: 800;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-family: inherit;
}

.plus {
    font-size: 32px;
    font-weight: 800;
    color: #111;
}

.automate-text {
    font-size: 36px;
    font-weight: 800;
    color: #111;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    text-align: center;
}

.feature-card {
    padding: 0 20px;
}

.feature-icon {
    height: 80px;
    width: auto;
    margin-bottom: 25px;
    display: inline-block;
}

.feature-card p {
    font-size: 16px;
    line-height: 1.5;
    color: #222;
}

/* Value Proposition */
.value-prop {
    background: linear-gradient(180deg, #d4e8ff 0%, #cde4ff 100%);
    padding: 100px 0;
    overflow: hidden; /* For robot overlap handling if needed */
}

.value-content-wrapper {
    display: flex;
    align-items: center; /* Center vertically specifically for the robot vs content */
    align-items: flex-start; /* Actually align top looks better for lists usually */
    justify-content: space-between;
    gap: 60px;
    margin-top: 60px;
}

.value-robot {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.value-robot img {
    max-width: 100%;
    width: 400px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

.benefits-list {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.icon-wrap {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.benefit-text h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #111;
    display: inline;
}

.benefit-text p {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    display: inline;
}


/* Testimonial Strip */
.testimonial-strip {
    border-top: 1px solid #333;
}

/* Automation Categories Section */
.automation-categories {
    background-color: #1a237e; /* Dark blue background from screenshot border */
    padding: 60px 20px;
}

.categories-card {
    background-color: #f4f4f0; /* Light beige/off-white card bg */
    border-radius: 30px;
    padding: 80px 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.category-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cat-header {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    color: white;
    font-weight: 700;
    text-align: center;
    font-size: 16px;
    align-self: flex-start; /* Align pill to left as standard */
    width: 100%;
}

/* Category Header Colors */
.pink { background-color: #ff4081; }
.blue { background-color: #2196f3; }
.green { background-color: #4caf50; }
.orange { background-color: #ff9800; }
.teal { background-color: #00bcd4; }
.purple { background-color: #9c27b0; }
.red { background-color: #f44336; }
.dark-blue { background-color: #3f51b5; }

.cat-list {
    list-style: none;
}

.cat-list li {
    font-size: 15px;
    color: #333;
    padding: 6px 0;
    position: relative;
    padding-left: 15px;
}

.cat-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
}

.section-footer-link {
    font-size: 18px;
    color: #444;
}

.section-footer-link a {
    color: #111;
    font-weight: 700;
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background-color: #0f0f0f;
    color: white;
    padding: 80px 0;
    border-top: 1px solid #222;
}

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

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.copyright {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
}

.footer-right {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    text-decoration: none;
    color: #888;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    /* ... existing responsive code ... */
    
    /* Categories responsive */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cols on tablet */
        gap: 30px;
    }
    
    .categories-card {
        padding: 40px 20px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-right {
        width: 100%;
        justify-content: space-between;
        gap: 40px;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background-color: #1e1e1e;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px; /* More spacing between nav items on mobile */
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 18px; /* Larger touch targets */
    }

    .hero-title {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 18px;
        padding: 0 10px;
    }

    .btn-book {
        padding: 16px 40px;
        font-size: 17px;
    }

    .section-title {
        font-size: 36px;
        line-height: 1.1;
    }

    .section-desc {
        font-size: 16px;
        padding: 0 10px;
    }

    .keyboard-callout {
        flex-wrap: wrap;
        gap: 10px;
    }

    .key {
        font-size: 24px;
        padding: 12px 24px;
    }

    .plus {
        font-size: 24px;
    }

    .automate-text {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-top: 40px;
    }

    .feature-icon {
        height: 70px;
    }

    .value-content-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .value-robot {
        order: 1;
    }

    .value-robot img {
        width: 300px;
    }

    .benefits-list {
        gap: 25px;
    }

    .benefit-text h3 {
        font-size: 17px;
    }

    .benefit-text p {
        font-size: 15px;
    }

    /* Adjust floating elements for mobile */
    .left-graphic {
        left: -60px;
        width: 200px;
        opacity: 0.6;
    }

    .right-graphic {
        right: -60px;
        width: 200px;
        opacity: 0.6;
    }

    .bottom-sticker {
        left: 5%;
        bottom: -50px;
        transform: rotate(-12deg) scale(0.75);
    }

    /* Allow scroll on gallery for mobile if needed, but keeping the JS effect is fine too */
    .work-gallery {
        padding: 60px 0;
    }

    .gallery-card {
        width: 280px;
    }

    .how-it-works, .value-prop {
        padding: 60px 0;
    }

    .automation-categories {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: -0.5px;
        margin-bottom: 20px;
    }

    .hero-subtitle-top {
        font-size: 13px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-footer-text {
        font-size: 13px;
    }

    .btn-book {
        padding: 14px 35px;
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
        padding: 0 10px;
    }

    .section-desc {
        font-size: 15px;
    }

    .keyboard-callout {
        transform: scale(0.65);
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .categories-card {
        padding: 40px 20px;
    }

    .cat-header {
        font-size: 15px;
    }

    .cat-list li {
        font-size: 14px;
    }
    
    .partners-container {
        gap: 30px;
        padding: 0 20px;
    }
    
    .partner-item {
        font-size: 24px;
    }

    .footer-right {
        flex-direction: column;
        gap: 30px;
    }

    .benefit-text h3 {
        font-size: 16px;
    }

    .benefit-text p {
        font-size: 14px;
    }

    .icon-wrap {
        width: 40px;
        height: 40px;
    }

    .left-graphic, .right-graphic {
        opacity: 0.4;
    }
}
