/* 
   AI-Initiative Main Stylesheet 
   Theme: minimal, clean, modern, high-tech AI feel
   Colors: black, white, electric blue, deep tech gradients
*/

:root {
    /* Colors (Vibrant Theme) */
    --color-primary: #10b981;
    /* Emerald 500 */
    --color-primary-hover: #059669;
    /* Emerald 600 */
    --color-secondary: #3b82f6;
    /* Blue 500 */
    --color-secondary-hover: #2563eb;
    /* Blue 600 */

    --color-dark: #0f172a;
    /* Slate 900 */
    --color-dark-lighter: #1e293b;
    /* Slate 800 */

    --color-bg-light: #f9fafb;
    /* Gray 50 */
    --color-bg-white: #ffffff;

    --color-text-main: #1e293b;
    /* Slate 800 */
    --color-text-muted: #475569;
    /* Slate 600 - Darker for WCAG AA */
    --color-text-light: #f8fafc;
    /* For dark backgrounds */

    /* Gradients */
    --gradient-hero: linear-gradient(to bottom, rgba(15, 23, 42, 0.5), #0f172a);
    --gradient-primary: linear-gradient(to right, #34d399, #3b82f6);
    /* Emerald to Blue */
    --gradient-glow: radial-gradient(circle at center, rgba(16, 185, 129, 0.15), transparent 70%);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
    margin-bottom: 0.75em;
}

p {
    margin-bottom: 1.5em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Navbar specific text color override */
header a {
    color: var(--color-text-light);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
/* Utilities & Helper Classes (Refactoring) */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.align-items-center {
    align-items: center;
}


.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.gap-5 {
    gap: 20px;
}

.w-full {
    width: 100%;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.overflow-hidden {
    overflow: hidden;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}


.bg-white {
    background-color: var(--color-bg-white);
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark-lighter {
    background-color: var(--color-dark-lighter);
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-secondary {
    background-color: var(--color-secondary);
}


.text-dark {
    color: var(--color-dark);
}

.text-muted {
    color: var(--color-text-muted);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.rounded-sm {
    border-radius: 4px;
}

.rounded-md {
    border-radius: 8px;
}

.rounded-lg {
    border-radius: 12px;
}

.rounded-full {
    border-radius: 9999px;
}


.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

/* Spacing Helpers */
.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-5 {
    margin-bottom: 24px;
}

.mb-6 {
    margin-bottom: 32px;
}

.section-padding {
    padding: 60px 0;
}


/* Standardized Desktop Padding */
.py-4 {
    padding-top: 16px;
    padding-bottom: 16px;
}

.p-4 {
    padding: 16px;
}

.p-5 {
    padding: 20px;
}

.p-6 {
    padding: 40px;
}

.px-2 {
    padding-left: 8px;
    padding-right: 8px;
}

.p-2 {
    padding: 8px;
}

/* Margin Utilities */
.mt-1 {
    margin-top: 4px;
}

.mt-6 {
    margin-top: 32px;
}

/* Width Utilities */
.w-full {
    width: 100%;
}

/* Opacity Utilities */
.opacity-20 {
    opacity: 0.2;
}

.opacity-80 {
    opacity: 0.8;
}

/* Flex Utilities */
.flex-1 {
    flex: 1;
}

.flex-wrap {
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row;
    }
}


/* Component Utilities */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
}

.badge-blue {
    background-color: #eff6ff;
    color: #1e40af;
    /* Blue 800 for contrast */
}

.badge-purple {
    background-color: #faf5ff;
    color: #6b21a8;
    /* Purple 800 */
}

.badge-green {
    background-color: #ecfdf5;
    color: #065f46;
    /* Emerald 800 */
}

.mock-item {
    padding: 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.mock-success {
    background-color: #ecfdf5;
    color: #065f46;
    border-left: 3px solid var(--color-primary);
}

.mock-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left: 3px solid var(--color-secondary);
}

/* Text Colors */
.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.text-success {
    color: #10b981;
}

.text-danger {
    color: #ef4444;
}

.text-warning {
    color: #f59e0b;
}

/* Explicit emerald if needed independent of primary */
.text-purple {
    color: #9333ea;
}

/* Agent Image Placeholder */
.agent-img-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 3rem;
    margin-bottom: 30px;
}

/* For that specific icon */

/* Text Sizes */
.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 3rem;
}


/* Icon Sizes */
.icon-lg {
    font-size: 2.5rem;
}

.icon-md {
    font-size: 1.5rem;
}

/* Layout Helpers */
.grid-cols-2 {
    grid-template-columns: 1fr 1fr;
}

/* Basic override/helper */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
}

.section-padding {
    padding: 60px 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 40px 0;
    }
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    border: none;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Header & Nav */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    /* Dark background with opacity */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #e2e8f0;
    /* Slate 200 */
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Button Overrides for Light Theme */
.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    background: var(--color-primary-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-text-muted);
    color: var(--color-text-main);
}

.btn-outline:hover {
    background: var(--color-text-main);
    color: white !important;
    border-color: var(--color-text-main);
}

.hero-section .btn-outline,
.section-dark .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-section .btn-outline:hover,
.section-dark .btn-outline:hover {
    background: white;
    color: var(--color-dark) !important;
}

/* Utilities */
.bg-light {
    background-color: var(--color-bg-light);
}

.bg-white {
    background-color: var(--color-bg-white);
}

.bg-dark {
    background-color: var(--color-dark);
    color: white;
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: white;
}

.section-dark p {
    color: #cbd5e1;
    /* Slate 300 */
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Card Styling Update */
.card-modern {
    background: var(--color-bg-white);
    border: 1px solid #e2e8f0;
    /* Slate 200 */
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-modern .btn {
    margin-top: auto;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mock UI Responsive Utilities */
.mock-flex-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    /* Allows wrapping on small screens */
}

.mock-col-large {
    flex: 2;
    min-width: 300px;
    /* Forces wrap if container < ~550px */
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.mock-col-small {
    flex: 1;
    min-width: 250px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

/* Footer Styles (Dark Theme from Reference) */
footer {
    background-color: var(--color-dark);
    color: #94a3b8;
    /* Slate 400 - lighter for dark bg */
    padding: 80px 0 30px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

footer h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 600;
}

footer ul li {
    margin-bottom: 12px;
}

footer a {
    color: #94a3b8;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Breadcrumbs (Sticky/Fixed below Header) */
.breadcrumb-wrapper {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    z-index: 990;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
    /* Scrollbar clearance if any */
}

.breadcrumb-item a {
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--color-primary);
}

.breadcrumb-item.active {
    color: var(--color-dark);
    font-weight: 600;
    pointer-events: none;
}

.breadcrumb-separator {
    color: #cbd5e1;
    font-size: 0.8rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    border: 1px solid #cbd5e1;
    /* Slate 300 */
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
    /* Slate 400 */
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-input:disabled,
.form-select:disabled {
    background-color: #f1f5f9;
    /* Slate 100 */
    cursor: not-allowed;
    opacity: 0.6;
}

/* Form validation states */
.form-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    /* Red 500 */
}

.form-input:valid:not(:placeholder-shown) {
    border-color: var(--color-primary);
}

/* Page Top Padding (for fixed header + breadcrumb) */
.pt-header {
    padding-top: 140px;
}

/* Responsive Hero Buttons */
.hero-btn-responsive {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .hero-btn-responsive {
        padding: 12px 20px;
        font-size: 0.95rem;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .hero-btn-responsive {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Chat Bubble Reminder */
.chat-bubble-reminder {
    position: absolute;
    bottom: 20px;
    right: -10px;
    background: var(--color-dark);
    color: white;
    border-radius: 12px 12px 0 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 12px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .chat-bubble-reminder {
        right: 10px;
        bottom: 10px;
        font-size: 0.75rem;
        padding: 8px 10px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .chat-bubble-reminder {
        right: 5px;
        bottom: 5px;
        font-size: 0.7rem;
        padding: 6px 8px;
        max-width: 150px;
    }
}

/* Calendar Card Wrapper */
.calendar-card-wrapper {
    background: var(--color-bg-light);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    aspect-ratio: 2.5/1;
}

@media (max-width: 768px) {
    .calendar-card-wrapper {
        aspect-ratio: auto;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .calendar-card-wrapper {
        padding: 12px;
    }
}

/* Testimonial Avatar */
.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: #0F9D58;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    /* Prevent shrinking on small screens */
}

/* Missing Utility Classes */
.d-flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.25rem;
}

/* Padding Utilities */
.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Margin Utilities */
.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1.25rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

/* Border Radius Utilities */
.rounded-sm {
    border-radius: 0.25rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

/* Background Color Utilities */
.bg-primary {
    background-color: var(--color-primary);
}

.bg-secondary {
    background-color: var(--color-secondary);
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-dark);
    color: white;
}

.bg-dark-lighter {
    background-color: #1e293b;
}

/* Position Utilities */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

/* Overflow Utilities */
.overflow-hidden {
    overflow: hidden;
}

/* Positioning Helpers */
.top-0 {
    top: 0;
}

.right-0 {
    right: 0;
}

.left-0 {
    left: 0;
}

.bottom-0 {
    bottom: 0;
}

/* Text Size Helpers */
.text-xs {
    font-size: 0.75rem;
}

/* Border Radius Helpers */
.rounded-bl-lg {
    border-bottom-left-radius: 12px;
}

/* Device Mockups Responsive Container */
.mockup-devices-container {
    position: relative;
    width: 600px;
    max-width: 100%;
    /* Prevent it from getting too wide/squished */
    height: 300px;
    margin: 0 auto;
    /* Center block */
    transform: scale(0.85);
    transform-origin: center bottom;
    flex-shrink: 0;
    /* Prevent flex container from shrinking this */
}

.mockup-laptop {
    position: absolute;
    z-index: 10;
    width: 360px;
    height: 220px;
    max-width: 90vw;
    left: 50%;
    transform: translateX(-50%);
    bottom: 40px;
}

.mockup-laptop-base {
    position: relative;
    background: #334155;
    height: 12px;
    border-radius: 0 0 10px 10px;
}

.mockup-laptop-opener {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #475569;
    border-radius: 0 0 4px 4px;
}

.mockup-tablet {
    position: absolute;
    z-index: 20;
    width: 140px;
    height: 180px;
    right: 0px;
    bottom: 20px;
    transform: rotate(-5deg);
    box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.3);
}

.mockup-phone {
    position: absolute;
    z-index: 30;
    width: 70px;
    height: 130px;
    left: 10px;
    bottom: 10px;
    transform: rotate(5deg);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
}

.mockup-phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 6px;
    background: #64748b;
    border-radius: 0 0 4px 4px;
}

/* Responsive Adjustments for Device Mockups */
@media (max-width: 480px) {
    .mockup-devices-container {
        transform: scale(0.65);
        /* Scale down further on mobile */
        height: 260px;
    }

    .mockup-laptop {
        width: 280px;
        height: 180px;
    }

    .mockup-tablet {
        width: 100px;
        height: 130px;
        right: -10px;
    }

    .mockup-phone {
        width: 55px;
        height: 100px;
        left: -5px;
    }
}

/* Pricing Banner Responsive Classes */
.banner-col-left {
    flex: 1;
    text-align: left;
}

.banner-col-center {
    flex: 2;
    text-align: center;
}

.banner-col-right {
    flex: 1;
    text-align: right;
}

@media (max-width: 768px) {

    .banner-col-left,
    .banner-col-center,
    .banner-col-right {
        flex: 0 0 100% !important;
        text-align: center !important;
        align-items: center !important;
        margin-bottom: 12px;
    }

    .banner-col-left h3 {
        text-align: center;
    }

    .banner-col-right {
        display: none;
        /* Hide spacer on mobile */
    }
}