:root {
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #f59e0b;
    /* Amber/Orange for warmth/poultry */
    --accent-glow: rgba(245, 158, 11, 0.3);
    --text-light: #f8fafc;
    --text-dim: #94a3b8;
    --success: #10b981;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

p.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
    background: #d97706;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    height: 60px;
    padding: 0;
    /* Let flex center it */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center vertically */
    height: 100%;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-box {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 8px;
    /* Placeholder styles */
    position: relative;
    overflow: hidden;
}

.logo-box::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-dim);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('hero.jpg');
    /* Need to generate this */
    background-size: cover;
    background-position: center;
    margin-top: -80px;
    /* Offset navbar */
    padding-top: 80px;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    max-width: 600px;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    margin-top: 2rem;
}

/* Overview - Cards */
.section {
    padding: 100px 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Modules Section */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.tag:hover {
    background: var(--accent-color);
    color: #fff;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    color: var(--accent-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.feature-text h4 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feature-image:hover img {
    transform: scale(1.05);
}

/* Vision Section */
.vision {
    position: relative;
    background-image: url('forecasting.jpg');
    /* Use forecasting as generic bg */
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    color: white;
}

.vision-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
}

.vision-content {
    position: relative;
    z-index: 2;
}

.vision h2 {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.usp-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

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

.usp-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    background: var(--secondary-color);
    text-align: center;
}

.contact-form {
    max-width: 500px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.5);
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form button {
    margin-top: 1rem;
}

/* Footer */
footer {
    background: #020617;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-dim);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .usp-grid {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Page Headers */
.page-hero {
    padding: 150px 0 80px;
    text-align: center;
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    margin-top: -80px;
    /* Counteract nav fixed pos */
    position: relative;
    z-index: 1;
}

.vision-hero {
    background-image: url('../images/forecasting.jpg');
    /* Reuse existing image */
    background-size: cover;
    background-position: center;
    position: relative;
}

.vision-hero .hero-bg-overlay {
    background: rgba(15, 23, 42, 0.8);
    /* Darker overlay for text readability */
}

.vision-hero .container {
    position: relative;
    z-index: 2;
}

/* Module Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.module-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.module-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.module-card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.module-card p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Pushes list down */
}

.capabilities h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.capabilities ul {
    list-style: none;
    /* Removed bullet to use custom or none */
    margin-bottom: 2rem;
}

.capabilities ul li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
    color: #cbd5e1;
}

.capabilities ul li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.learn-more {
    color: var(--accent-color);
    font-weight: 600;
    margin-top: auto;
    /* Push to bottom */
    display: inline-block;
    transition: var(--transition);
}

.learn-more:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Vision Text */
.vision-text-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

.callout-box {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 0 12px 12px 0;
}

.callout-box h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* Contact Page specific */
.contact-page {
    /* reuse styling */
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.5);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

/* Feature List specialized styling */
.feature-list {
    margin-top: 1.5rem;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--success);
    /* Green checkmark */
    font-weight: bold;
}

/* Ensure specific sections utilize the full height or padding correctly */
.vision {
    /* override any previous specifics if needed */
    padding: 120px 0;
}

/* Ensure module images fit nicely */
.feature-image {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

/* Overview Section Tweaks */
.overview-section .card {
    text-align: center;
}

.overview-section .icon-box {
    margin: 0 auto 1.5rem auto;
    /* Center icons */
}

/* Section Header centering */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Mobile Nav fix if needed */
@media (max-width: 768px) {
    .feature-list {
        text-align: left;
        /* Keep list aligned left even if parent is center */
        display: inline-block;
    }
}

/* Update Grid to support 5 items for the Overview/Features section */
.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Allow smaller items to fit 5 */
}

/* Vision Story specific styling */
.vision-story {
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Contact Section Redesign */
.contact {
    position: relative;
    background: url('hero.jpg') no-repeat center center/cover;
    padding: 100px 0;
}

.contact-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(5px);
}

.contact-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    color: var(--text-light);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent-color);
}

/* Contact Form Box */
.contact-form-box {
    flex: 1;
    min-width: 350px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.contact-form-box h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Floating Label Inputs */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 15px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-dim);
    transition: var(--transition);
    pointer-events: none;
    font-size: 1rem;
}

/* Float label on focus or if content exists */
.input-group input:focus,
.input-group input:valid,
.input-group textarea:focus,
.input-group textarea:valid {
    border-color: var(--accent-color);
    background: rgba(15, 23, 42, 1);
}

.input-group input:focus+label,
.input-group input:valid+label,
.input-group textarea:focus+label,
.input-group textarea:valid+label {
    top: -10px;
    left: 10px;
    background: var(--primary-color);
    padding: 0 5px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

/* Select specific fix */
.input-group select {
    color: var(--text-dim);
}

.input-group select:focus,
.input-group select:valid {
    color: white;
    border-color: var(--accent-color);
}

.btn-block {
    width: 100%;
}

/* Continuous Carousel Styles */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    /* Fade mask on sides */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-card {
    /* Fixed width to ensure 3 visible approximately */
    /* Container max-width is 1200px. 3 visible means ~400px each including gap. 
       Let's set a fixed width for consistency or use vw/percentage relative to container. */
    flex: 0 0 350px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.carousel-card:hover {
    border-color: var(--accent-color);
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-5px);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move by half the width of the track (since we will double the items) 
           We need to calculate this carefully or use JS. 
           With CSS only, if we have 5 items and duplicate them to 10.
           We move -5 items worth of width.
           5 items * (350px card + 32px gap) = 5 * 382px = 1910px
        */
        transform: translateX(calc(-350px * 5 - 2rem * 5));
    }
}

/* Mobile adjust */
@media (max-width: 768px) {
    .carousel-card {
        flex: 0 0 280px;
    }

    @keyframes scroll {
        100% {
            transform: translateX(calc(-280px * 5 - 2rem * 5));
        }
    }
}