/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark blue / Purple theme */
    --primary-color: #0b132b;
    /* Very dark blue */
    --secondary-color: #1c2541;
    /* Dark blue */
    --accent-color: #6a0572;
    /* Purple */
    --accent-light: #ab47bc;
    /* Light purple */
    --gradient-hero: linear-gradient(135deg, #0b132b 0%, #1c2541 50%, #3a0ca3 100%);
    --gradient-cta: linear-gradient(135deg, #3a0ca3 0%, #4361ee 100%);
    --text-dark: #333333;
    --text-light: #f4f4f9;
    --bg-light: #f8fbff;
    --padding-section: 60px 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--padding-section);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Sora', sans-serif;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

/* Typography styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(106, 5, 114, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Header */
.navbar {
    background-color: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Sora', sans-serif;
}

.logo span {
    color: var(--accent-light);
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-light);
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    color: var(--text-light);
    padding: 180px 0 120px 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero h1 {
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Us */
.about {
    background-color: #ffffff;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    color: #444;
}

/* Services */
.services {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.3s;
}

/* Collapsible Wrapper Improvements */
.collapsible-wrapper {
    transition: max-height 0.5s ease-in-out;
    overflow: hidden;
}

.collapsible-wrapper.collapsed {
    max-height: 200px;
    /* Base height to show description and 2 points */
}

.collapsible-wrapper.expanded {
    max-height: 1000px;
    /* Large enough to show all content */
}

/* Ensure all list items are available for scrollHeight calculation */
.collapsible-wrapper.collapsed ul li {
    display: flex;
}

/* Specific rule to hide points beyond 2nd in collapsed state */
.collapsible-wrapper.collapsed ul li:nth-child(n+3) {
    display: none !important;
}

.collapsible-wrapper.expanded ul li {
    display: flex !important;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    margin-bottom: 25px;
}

.service-card ul {
    list-style: none;
}

.service-card ul li {
    margin-bottom: 10px;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.service-card ul li i {
    color: var(--accent-light);
    margin-right: 10px;
    font-size: 0.8rem;
}

/* Why Choose Us */
.choose-us {
    background-color: #ffffff;
}

.choose-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.choose-item {
    flex: 1;
    min-width: 220px;
    text-align: center;
    padding: 30px;
}

.choose-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.choose-item h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Industries */
.industries {
    background-color: var(--bg-light);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.industry-card {
    background-color: #ffffff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.industry-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.industry-card h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
}

.industry-card:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.industry-card:hover h4,
.industry-card:hover i {
    color: #ffffff;
}

/* Approach */
.approach {
    background-color: #ffffff;
}

.process-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding-top: 30px;
}

.process-wrapper::before {
    content: '';
    position: absolute;
    top: 55px;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: #e0e0e0;
    z-index: 1;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.process-step .step-num {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px auto;
    border: 5px solid #ffffff;
    box-shadow: 0 0 0 2px var(--accent-color);
    transition: all 0.3s ease;
}

.process-step:hover .step-num {
    background-color: var(--secondary-color);
    box-shadow: 0 0 0 2px var(--secondary-color);
    transform: scale(1.1);
}

.process-step h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Testimonials */
.testimonials {
    background-color: var(--bg-light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::after {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: rgba(106, 5, 114, 0.1);
}

.testimonial-card p {
    font-style: italic;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.client-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.client-info span {
    font-size: 0.9rem;
    color: #888;
}

/* Call to Action */
.cta {
    background: var(--gradient-cta);
    text-align: center;
    color: #ffffff;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #cfd8dc;
    padding: 70px 0 20px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-light);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #cfd8dc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-light);
}

.footer-col ul li i {
    width: 20px;
    color: var(--accent-light);
    margin-right: 10px;
}

.newsletter {
    display: flex;
    margin-top: 15px;
}

.newsletter input {
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 100%;
}

.newsletter button {
    border-radius: 0 4px 4px 0;
    padding: 10px 20px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .process-wrapper::before {
        display: none;
    }

    .process-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* Logo Slider Animation */
.logo-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 2rem;
    padding: 1rem 0;
    white-space: nowrap;
}

.logo-slider::before,
.logo-slider::after {
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    content: "";
    z-index: 2;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-track {
    display: inline-block;
    animation: scroll-logos 25s linear infinite;
}

/* Pause on hover */
.logo-slider:hover .logo-track {
    animation-play-state: paused;
}

.logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    margin: 0 20px;
    vertical-align: middle;
}

.logo svg {
    max-height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: scale(1.05);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}