/* ===== CSS VARIABLES ===== */
:root {
    --black: #000000;
    --white: #FFFFFF;
    --gray-light: #F5F5F7;
    --gray-medium: #86868B;
    --gray-dark: #1D1D1F;
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;
    --primary-blue: #007AFF;
    --shadow-light: 0 2px 20px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 16px 64px rgba(0, 0, 0, 0.15);
}

/* ===== RESET AND BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0.5; 
    }
}

@keyframes rotate {
    from { 
        transform: rotate(0deg); 
    }
    to { 
        transform: rotate(360deg); 
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 20s linear infinite;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-light);
}

nav .container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 15px;
    cursor: pointer;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--black);
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 120px 5% 80px;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--gray-medium);
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.05;
    letter-spacing: -3px;
    color: var(--black);
}

.hero-description {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--gray-medium);
    margin-bottom: 50px;
    line-height: 1.4;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
    justify-content: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.network-animation {
    position: relative;
    width: 400px;
    height: 400px;
}

.network-node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--black);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.network-node:nth-child(1) {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.network-node:nth-child(2) {
    top: 50px;
    right: 50px;
    animation-delay: 0.5s;
}

.network-node:nth-child(3) {
    bottom: 50px;
    left: 170px;
    animation-delay: 1s;
}

.network-connection {
    position: absolute;
    top: 100px;
    left: 120px;
    width: 160px;
    height: 2px;
    background: var(--gray-medium);
    animation: pulse 2s ease-in-out infinite;
    animation-delay: 0.25s;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 16px 40px;
    border-radius: 100px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-align: center;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: #333;
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
    transform: scale(1.02);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== SECTION STYLES ===== */
section {
    padding: 100px 5%;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -2px;
    color: var(--black);
}

.section-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--gray-medium);
    text-align: center;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== STATS SECTION ===== */
.stats {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 120px 5%;
}

.stats h2 {
    color: var(--white);
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.stat-number {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 18px;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===== VALUE PILLARS ===== */
.pillars {
    background: var(--white);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.pillar-card {
    background: var(--gray-light);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    background: var(--white);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-icon svg {
    width: 100%;
    height: 100%;
    color: var(--black);
}

.pillar-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.5px;
}

.pillar-card p {
    color: var(--gray-medium);
    line-height: 1.6;
    font-size: 16px;
}

/* ===== TECHNOLOGY SECTION ===== */
.technology {
    background: var(--gray-light);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-top: 80px;
}

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

.tech-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-icon svg {
    width: 100%;
    height: 100%;
    color: var(--black);
}

.tech-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.tech-item p {
    color: var(--gray-medium);
    line-height: 1.6;
    font-size: 16px;
}

.tech-badge {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* ===== LOS BUSINESS SECTION ===== */
.los-business {
    background: var(--white);
}

.los-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.los-visual {
    text-align: center;
    background: var(--gray-light);
    padding: 80px 60px;
    border-radius: 20px;
}

.los-visual svg {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    color: var(--black);
}

.los-details h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.los-features {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.feature-bullet {
    width: 8px;
    height: 8px;
    background: var(--black);
    border-radius: 50%;
    margin-top: 8px;
    margin-right: 16px;
    flex-shrink: 0;
}

.feature-content strong {
    font-size: 18px;
    display: block;
    margin-bottom: 4px;
    color: var(--black);
}

.feature-content p {
    color: var(--gray-medium);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.los-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
}

.los-stat {
    text-align: center;
    padding: 40px;
    background: var(--gray-light);
    border-radius: 16px;
}

.los-stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
}

.los-stat-label {
    color: var(--gray-medium);
    font-size: 16px;
}

/* ===== FEATURES SHOWCASE ===== */
.features {
    background: var(--white);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.feature-row:nth-child(even) {
    direction: rtl;
}

.feature-row:nth-child(even) > * {
    direction: ltr;
}

.feature-content h3 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.feature-content p {
    font-size: 20px;
    color: var(--gray-medium);
    line-height: 1.6;
}

.feature-visual {
    background: var(--gray-light);
    border-radius: 20px;
    padding: 80px 60px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-visual svg {
    width: 200px;
    height: 200px;
    color: var(--black);
}

/* ===== PRICING CALCULATOR ===== */
.pricing-section {
    background: var(--gray-light);
}

.pricing-calculator {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.calculator-form {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.calc-group {
    margin-bottom: 40px;
}

.calc-group:last-child {
    margin-bottom: 0;
}

.calc-group label {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    display: block;
    margin-bottom: 16px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--gray-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background: #e8e8e8;
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.calculator-results {
    background: var(--black);
    color: var(--white);
    padding: 50px;
    border-radius: 20px;
    height: fit-content;
}

.calculator-results h3 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 24px;
}

.price-breakdown {
    margin-bottom: 40px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 2px solid var(--white);
    font-size: 24px;
    font-weight: 700;
}

.pricing-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-actions .btn {
    width: 100%;
}

.pricing-actions .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.pricing-actions .btn-secondary:hover {
    background: var(--white);
    color: var(--black);
}

/* ===== CASE STUDIES ===== */
.case-studies {
    background: var(--white);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.case-study-card {
    background: var(--gray-light);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    background: var(--white);
}

.case-study-header {
    margin-bottom: 24px;
}

.case-study-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
}

.industry-badge {
    background: var(--black);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.case-study-content {
    margin-bottom: 30px;
}

.case-study-content p {
    margin-bottom: 16px;
    color: var(--gray-medium);
    line-height: 1.6;
}

.case-study-content p strong {
    color: var(--black);
}

.case-study-content ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.case-study-content li {
    margin-bottom: 8px;
    color: var(--gray-medium);
    line-height: 1.6;
}

.case-study-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: var(--gray-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-light);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.testimonial-content {
    margin-bottom: 30px;
}

.testimonial-content p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-dark);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-medium);
}

.author-name {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
}

.author-title {
    font-size: 14px;
    color: var(--gray-medium);
    margin-bottom: 2px;
}

.company {
    font-size: 12px;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: var(--white);
}

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

.faq-item {
    margin-bottom: 24px;
    background: var(--gray-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #e8e8e8;
}

.faq-question {
    padding: 24px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.05);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    color: var(--black);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 30px 24px;
    color: var(--gray-medium);
    line-height: 1.6;
    margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--gray-light);
    text-align: center;
    padding: 140px 5%;
}

.cta-section h2 {
    font-size: clamp(40px, 6vw, 72px);
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -2px;
}

.cta-section p {
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--gray-medium);
    margin-bottom: 50px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 5% 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 36px;
}

.footer-brand p {
    color: var(--gray-medium);
    font-size: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.footer-section a {
    display: block;
    color: var(--gray-medium);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--gray-medium);
    font-size: 14px;
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 30px 40px 20px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--gray-medium);
    transition: color 0.3s ease;
}

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

.contact-form, .newsletter-form {
    padding: 30px 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--black); /* BLACK borders as required */
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black); /* BLACK outlines as requested */
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error);
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: var(--success);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group button[type="submit"] {
    width: 100%;
    margin-top: 16px;
}

/* Form validation styles */
.form-error {
    color: var(--error);
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.form-group.has-error .form-error {
    display: block;
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.chat-button svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideInFromRight 0.3s ease;
}

.chat-window.show {
    display: flex;
}

.chat-header {
    background: var(--black);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
}

.message-content {
    background: var(--gray-light);
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--gray-dark);
}

.user-message .message-content {
    background: var(--black);
    color: var(--white);
}

.message-time {
    font-size: 12px;
    color: var(--gray-medium);
    margin-top: 4px;
}

.user-message .message-time {
    align-self: flex-end;
}

.chat-input {
    padding: 20px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--black); /* BLACK borders as required */
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--black); /* BLACK outlines */
}

.chat-input button {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 12px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    background: #333;
}

.chat-suggestions {
    padding: 0 20px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chat-suggestions button {
    background: var(--gray-light);
    border: none;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-suggestions button:hover {
    background: var(--black);
    color: var(--white);
}

/* ===== NOTIFICATION TOAST ===== */
.notification-toast {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--black);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification-toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.toast-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

 .nav-no-hide { display: none; }

.notification-toast.success {
    background: var(--success);
}

.notification-toast.error {
    background: var(--error);
}

/* ===== ANIMATION KEYFRAMES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .network-animation {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-no-hide { display: flex;  font-size: 12px }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 5% 60px;
    }
    
    section {
        padding: 60px 5%;
    }
    
    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .feature-row:nth-child(even) {
        direction: ltr;
    }

    .logo {
    font-size: 18px;
    
}
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
    }
    
    .btn {
        width: 100%;
    }
    
    .stats-grid {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .tech-grid {
        gap: 40px;
    }
    
    .pricing-calculator {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .calculator-form {
        padding: 30px;
    }
    
    .calculator-results {
        padding: 30px;
    }
    
    .los-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .los-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .contact-form {
        padding: 20px;
    }
    
    .chat-window {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 90px;
        height: 400px;
    }
    
    .chat-suggestions {
        padding: 0 15px 15px;
    }
    
    .chat-suggestions button {
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(32px, 8vw, 56px);
    }
    
    .hero-description {
        font-size: clamp(16px, 4vw, 20px);
    }
    
    .section-title {
        font-size: clamp(28px, 8vw, 40px);
    }
    
    .section-subtitle {
        font-size: clamp(16px, 3vw, 18px);
    }
    
    .calc-group label {
        font-size: 16px;
    }
    
    .radio-option {
        padding: 12px 16px;
    }
    
    .price-breakdown {
        margin-bottom: 30px;
    }
    
    .breakdown-total {
        font-size: 20px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

.hidden { display: none; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* ===== LOADING STATES ===== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gray-medium);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

.btn.loading::after {
    margin-right: 8px;
}

/* ===== FORM VALIDATION FEEDBACK ===== */
.form-feedback {
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
}

.form-feedback.success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.form-feedback.error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Focus indicators for better accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--black);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--black);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 3000;
}

.skip-to-main:focus {
    top: 6px;
}
