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

html {
	font-size: 16px;
  }

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
   	margin-bottom: 1.5rem;
}

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

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Header */
header {
    padding: 1.7rem 0;
    position: fixed;
    width: 100%;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 0px 32px; */
}

.logo {
    font-size: 1.8rem;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 1.9rem;
}

.nav-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 140px 0 50px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 32px;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-title {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

    /* Enhanced Workflow Section */
.workflow {
    padding: 75px 0 80px;
}

/* Original section title styling */
.section-title {
    text-align: center;
    margin-bottom: 3.2rem;
    font-size: 1.95rem;
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    align-items: normal;
    gap: 2rem;
}

.workflow-step {
    flex: 1;
    text-align: center;
    position: relative;
    border-radius: 12px;
    padding: 20px 0px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.workflow-step:hover {
    transform: translateY(-10px);  /* Increased lift on hover */
}

/* Make sure hover doesn't override active state */
.workflow-step.active:hover {
    transform: translateY(-10px); /* Same as active to prevent "jump" */
}

/* For smooth transitions between states */
.workflow-step {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-bottom 0.3s ease;
}

.workflow-step:not(:first-child) .workflow-icon svg {
    transform: scale(3.8);
}

/* Updated workflow-icon styles to make icons larger */
.workflow-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    padding: 1.8rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--accent-color);  /* Border around icons */
}

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

.workflow-title {
    font-size: 1.3rem;
    margin-bottom: 0;  /* Removed bottom margin */
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 0px;  /* Reduced padding */
}

.workflow-step p {
    margin-top: auto;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;  /* Slightly larger text */
    line-height: 1.6;
}

/* Arrow indicator coming directly out of card */
.workflow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -1.7rem;
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 26px solid var(--accent-color);
    transform: translateY(-50%);
    z-index: 1;
}

/*
.workflow-step.active:not(:last-child)::after {
    border-left: 26px solid var(--primary-color);
}
*/

/* Remove the line, we only want the arrow tip */
.workflow-step:not(:last-child)::before {
    display: none;
}

/* Updated styles for workflow details */
.workflow-details {
    margin-top: 1rem;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-out, padding 0.5s ease, margin 0.5s ease;
    padding: 0;
}

.workflow-details.active {
    max-height: 800px; /* Increased from 300px to accommodate images */
    padding: 2rem 0 1rem;
    margin-bottom: 0rem;
}

.workflow-detail-content {
    display: none;
}

.workflow-detail-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Added styles for workflow detail titles */
.workflow-detail-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center;
}

.workflow-detail-content p {
    margin-bottom: 2rem;
    line-height: 1.4;
    font-size: 1.2rem;
    color: var(--gray);
}

/* New styles for workflow detail images */
.workflow-detail-image {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.workflow-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Make workflow steps clickable while preserving original styling */
.workflow-step {
    cursor: pointer;
    padding-bottom: 22px;  /* Reduced from 50px */
}

/* Keep the hover effect from the original design */
.workflow-step:hover {
    transform: translateY(-10px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .workflow-steps {
        flex-wrap: wrap;
        gap: 2.5rem;
    }

    .workflow-step {
        flex-basis: 45%;
        margin-bottom: 2rem;
    }

    .workflow-step:not(:last-child)::after,
    .workflow-step:not(:last-child)::before {
        display: none;
    }
                    
    .workflow-icon {
        width: 75px;
        height: 75px;
    }
}

@media (max-width: 768px) {
    .workflow-step {
        flex-basis: 100%;
    }
    
    .workflow-details.active {
        padding: 1.5rem;
    }
    
    .workflow-detail-content h3 {
        font-size: 1.4rem;
    }
    
    .workflow-icon {
        width: 75px; /* Even smaller on mobile */
        height: 75px;
    }
}

/* Use Cases Section */
.use-cases {
    padding: 80px 0;
}

.use-case {
    display: flex;
    align-items: center;
    margin-bottom: 5rem;
    padding: 2rem;
    border-radius: 10px;
}

.use-case:nth-child(even) {
    flex-direction: row-reverse;
}

.use-case-content {
    flex: 1;
    padding: 0 2rem;
}

.use-case-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.use-case-image {
    flex: .8;
    text-align: center;
}

.use-case-image img {
    max-width: 100%; /* Reduced from 100% to 70% (30% smaller) */
    height: auto;
    border-radius: 8px;
    margin: 0 auto; /* Center the image */
    display: block; /* Helps with centering */
}

/* CTA Section */
.cta {
    padding: 80px 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-form {
    max-width: 500px;
    margin: 2rem auto 0;
    display: flex;
    gap: 1rem;
}

.cta-input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
}

/* Footer */
footer {
    padding: 3rem 0;
}

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

.footer-links {
    display: flex;
    list-style: none;
}

.footer-item {
    margin-left: 2rem;
}

.footer-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    text-decoration: none;
    font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .workflow-steps {
        flex-wrap: wrap;
    }

    .workflow-step {
        flex-basis: 45%;
        margin-bottom: 2rem;
    }

    .workflow-step:not(:last-child)::after,
    .workflow-step:not(:last-child)::before {
        display: none;
    }

    .use-case,
    .use-case:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .use-case-content {
        padding: 2rem 0;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .workflow-step {
        flex-basis: 100%;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-item {
        margin-left: 0;
    }

    .social-icons {
        justify-content: center;
    }

    .cta-form {
        flex-direction: column;
    }
}