
/* Center the case study slider and its contents */
.case-study-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
    padding: 0;
}

.case-study {
    width: 100%;
    max-width: 100%;
    display: none;
    padding: 1rem;
}

.case-study.active {
    display: flex;
    justify-content: center;
    width: 100%;
    animation: fadeIn 0.5s ease forwards;
}

.demo-showcase {
    width: 100%;
    max-width: 800px; /* Adjust this value based on your preference */
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Container for the entire case studies section */
.case-studies {
    padding: 4rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

/* Base Styles */
:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #f0f4f8;
    --text-color: #1e293b;
    --text-light: #64748b;
    --background-color: #ffffff;
    --card-background: #f8fafc;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    font-size: 1rem;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.btn.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn.full-width {
    width: 100%;
}

.highlight {
    color: var(--primary-color);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 8rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Neural Network Visualization */
.neural-network {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.node.n1 { top: 20%; left: 30%; animation: pulse 3s infinite alternate; }
.node.n2 { top: 30%; left: 70%; animation: pulse 4s infinite alternate-reverse; }
.node.n3 { top: 60%; left: 20%; animation: pulse 5s infinite alternate; }
.node.n4 { top: 70%; left: 60%; animation: pulse 3.5s infinite alternate-reverse; }
.node.n5 { top: 40%; left: 50%; animation: pulse 4.5s infinite alternate; }
.node.n6 { top: 25%; left: 50%; animation: pulse 3.8s infinite alternate-reverse; }
.node.n7 { top: 55%; left: 40%; animation: pulse 4.2s infinite alternate; }

.connection {
    position: absolute;
    background-color: var(--primary-light);
    opacity: 0.2;
    transform-origin: 0 0;
}

.connection.c1 {
    width: 2px;
    height: 150px;
    top: 25%;
    left: 35%;
    transform: rotate(45deg);
    animation: fadeInOut 5s infinite alternate;
}

.connection.c2 {
    width: 2px;
    height: 180px;
    top: 35%;
    left: 72%;
    transform: rotate(125deg);
    animation: fadeInOut 4s infinite alternate-reverse;
}

.connection.c3 {
    width: 2px;
    height: 200px;
    top: 62%;
    left: 25%;
    transform: rotate(30deg);
    animation: fadeInOut 6s infinite alternate;
}

.connection.c4 {
    width: 2px;
    height: 120px;
    top: 42%;
    left: 52%;
    transform: rotate(75deg);
    animation: fadeInOut 4.5s infinite alternate-reverse;
}

.connection.c5 {
    width: 2px;
    height: 160px;
    top: 28%;
    left: 52%;
    transform: rotate(100deg);
    animation: fadeInOut 5.5s infinite alternate;
}

.connection.c6 {
    width: 2px;
    height: 140px;
    top: 58%;
    left: 42%;
    transform: rotate(15deg);
    animation: fadeInOut 3.5s infinite alternate-reverse;
}

.connection.c7 {
    width: 2px;
    height: 170px;
    top: 72%;
    left: 62%;
    transform: rotate(160deg);
    animation: fadeInOut 4.8s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0.3;
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0.1;
    }
    100% {
        opacity: 0.3;
    }
}

/* Services Section */
.services {
    background-color: var(--secondary-color);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* About Section */
.about {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.features {
    display: grid;
    gap: 2rem;
}

.feature {
    display: flex;
    gap: 1.5rem;
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-light);
    opacity: 0.3;
    line-height: 1;
}

.stats-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 500px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Case Studies Section */
.case-studies {
    background-color: var(--secondary-color);
    position: relative;
}

.case-study-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 600px;
}

.case-study {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.case-study.active {
    opacity: 1;
    visibility: visible;
}

.case-study-content {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.industry-tag {
    display: inline-block;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.read-more {
    margin-top: auto;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more::after {
    content: '→';
    transition: var(--transition);
}

.read-more:hover::after {
    transform: translateX(5px);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Contact Section */
.contact {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.info-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-item svg {
    margin-top: 0.3rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #1e293b;
    color: white;
    padding: 5rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-logo span {
    color: var(--primary-light);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-column a {
    display: block;
    color: #94a3b8;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: inherit;
    font-size: 0.9rem;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #94a3b8;
    margin-bottom: 0;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .neural-network {
        width: 300px;
        height: 300px;
        transform: scale(0.7);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    section {
        padding: 4rem 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
   
}

/* Add this to your existing CSS file */
@media (max-width: 1060px) {
    .contact {
        flex-direction: column;
    }
    
    .contact-form-container {
        width: 100%;
        min-width: 100%;
    }
    
    .contact-info {
        width: 100%;
        min-width: 100%;
        margin-top: 3rem;
    }
    
    .info-card {
        max-width: 100%;
    }
}

/* Demo Showcase Styles */
.case-studies {
    padding: 4rem 0; 
}

.demo-showcase {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
}

.demo-showcase:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Screenshot container with fixed dimensions */
.demo-screenshot {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for optimal display */
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Image styling for perfect fit */
.demo-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the entire image is visible */
    padding: 0;
    transition: transform 0.5s ease;
    display: block;
}

.demo-showcase:hover .demo-image {
    transform: scale(1.02); /* Subtle zoom on hover */
}

.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
                rgba(0,0,0,0.2) 0%, 
                rgba(0,0,0,0.05) 30%,
                rgba(0,0,0,0) 60%,
                rgba(0,0,0,0) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.5rem;
    pointer-events: none;
}

.demo-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.demo-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

.demo-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.demo-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Update case study slider for the new design */
.case-study-slider {
    margin: -2rem 0;
    padding: 0 1rem;
}

.case-study {
    display: none;
    padding: 1rem;
}

.case-study.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slider controls styling */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .demo-screenshot {
        height: 550px; /* Slightly smaller on medium screens */
    }
}

@media (max-width: 768px) {
    .demo-screenshot {
        height: 500px; /* Smaller on tablets */
    }
    
    .demo-content {
        padding: 1.5rem;
    }
    
    .demo-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .demo-screenshot {
        height: 450px; /* Even smaller on mobile */
    }
    
    .demo-content {
        padding: 1.25rem;
    }
    
    .demo-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .demo-content p {
        font-size: 0.9rem;
    }
}