:root {
    --primary-color: #3F51B5; /* Indigo */
    --primary-dark: #303F9F;
    --primary-light: #C5CAE9;
    --accent-color: #FF4081; /* Pink Accent */
    --text-color: #fff;
    --light-grey: rgba(162, 89, 255, 0.15);
    --white: rgba(0, 240, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --background: #0A0F1C;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

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

/* Header */
.site-header {
    background-color: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-weight: bold;
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 50px; /* Adjust height as needed for the logo */
    width: auto; /* Maintain aspect ratio */
}

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

.site-nav li {
    margin-left: 20px;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    transition: color var(--transition-speed) ease, border-bottom var(--transition-speed) ease;
    position: relative; /* For hover underline */
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    transition: width var(--transition-speed) ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}

.site-nav a:hover {
    color: rgba(0, 240, 255, 0.8);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 4px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 350px;
    display: flex;
    align-items: center;
    color: #fff;
    /* Add a dark overlay using a pseudo-element */
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55); /* semi-transparent black overlay */
    z-index: 1;
}
.hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
    /* Remove flex centering so only the button is centered, not all content */
    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: center; */
    /* justify-content: center; */
    /* height: 100%; */
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0; /* Initially hidden for scroll animation */
    transform: translateY(-20px); /* Initial transform for slide effect */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Combine transitions */
}

.hero-section.is-visible h1 {
     opacity: 1;
     transform: translateY(0);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0; /* Initially hidden for scroll animation */
    transform: translateY(20px); /* Initial transform for slide effect */
    transition: opacity 1s 0.2s ease-out, transform 1s 0.2s ease-out; /* Add delay */
}

.hero-section.is-visible p {
     opacity: 1;
     transform: translateY(0);
}

.cta-button {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    margin-top: 18px;
    text-decoration: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.cta-button:hover, .cta-button:focus {
    background: #217dbb;
    color: #fff;
    transform: translateY(-3px);
}

/* Implementation Guide Section */
.implementation-section {
    padding: 60px 0;
    background-color: var(--light-grey); /* Use alternate background */
}

.implementation-section h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 30px;
}

.implementation-section > p { /* Style for the introductory paragraph */
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.implementation-steps {
    list-style: none; /* Remove default list bullets */
    padding: 0;
    display: grid;
    gap: 30px; /* Space between list items */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
}

.implementation-steps li {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px var(--shadow);
    padding: 25px;
    border-left: 5px solid var(--primary-color); /* Accent border */
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.implementation-steps li:hover {
     transform: translateY(-5px);
     box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.implementation-steps li h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.implementation-steps li p {
    font-size: 1rem;
    color: #555;
}

.implementation-cta-link {
    display: block; /* Make it a block element to take full width for centering */
    font-size: 1.2rem;
    color: var(--primary-dark); /* Or choose a contrasting color */
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
    text-decoration: none; /* Remove underline */
    transition: color var(--transition-speed) ease;
    /* Add fade-in-up specific styles if needed, but it's already applied in HTML */
    opacity: 0; /* Initial state for animation */
    transform: translateY(20px); /* Initial state for animation */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, color var(--transition-speed) ease; /* Combine transitions */
}

.implementation-cta-link.is-visible {
     opacity: 1;
     transform: translateY(0);
}

.implementation-cta-link:hover {
    color: var(--accent-color); /* Change color on hover */
    text-decoration: underline; /* Optional: add underline on hover */
}

.implementation-cta {
    font-size: 1.2rem;
    color: var(--primary-dark);
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.cta-container {
    text-align: center;
}

/* New Solution Overview Section */
.solution-overview-section {
    padding: 60px 0;
    /* Inherits alternate-bg or white background */
}

.solution-overview-section h2 {
     font-size: 2.5rem;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 30px;
}

.solution-overview-section > p {
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.solution-overview-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid for blocks */
}

.solution-overview-block {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px var(--shadow);
    padding: 30px;
    text-align: center;
    border-top: 5px solid var(--primary-color); /* Accent border */
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.solution-overview-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.solution-overview-block .solution-icon {
     width: 50px;
     height: 50px;
     fill: var(--accent-color); /* Use accent color for icons here */
     margin-bottom: 15px;
}

.solution-overview-block h3 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.solution-overview-block p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.read-more-link {
    display: inline-block;
    color: rgba(0, 240, 255, 0.8);
    text-decoration: none;
    font-weight: bold;
    transition: color var(--transition-speed) ease, text-shadow var(--transition-speed) ease;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.read-more-link:hover {
    color: rgba(162, 89, 255, 0.8);
    text-shadow: 0 0 12px rgba(162, 89, 255, 0.5);
}

/* Solutions Page Specific Styles */
.solutions-page .page-intro {
    background-color: rgba(0, 240, 255, 0.15);
    border-bottom: 1px solid rgba(162, 89, 255, 0.2);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.solutions-page .page-intro h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
    text-shadow: 0 0 12px rgba(213, 128, 255, 0.6), 0 0 25px rgba(0, 255, 255, 0.5), 0 0 40px rgba(0, 255, 255, 0.3);
}

.solutions-page .page-intro p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

.solution-section {
    padding: 40px 0;
    transition: background-color var(--transition-speed) ease;
}

.solution-section.alternate-bg {
    background-color: var(--light-grey);
}

.solution-card {
    background-color: rgba(162, 89, 255, 0.15);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.solution-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    cursor: pointer; /* Indicate clickable */
}

.solution-card .card-header h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0;
    flex-grow: 1;
    margin-right: 10px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.solution-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    fill: var(--text-color);
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
}

.expand-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform var(--transition-speed) ease;
}

.expand-button svg {
    width: 24px;
    height: 24px;
    fill: var(--text-color);
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.3));
}

.solution-card.expanded .expand-button svg {
    transform: rotate(180deg);
}

.solution-card .card-content {
    padding: 0 20px 20px 20px; /* Initially padded bottom, reduced when collapsed */
    max-height: 500px; /* Arbitrary initial max-height, adjusted by JS */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding-bottom 0.5s ease-in-out;
}

.solution-card:not(.expanded) .card-content {
     max-height: 0; /* Collapse content */
     padding-bottom: 0;
}

.solution-card .card-content p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.solution-card .details {
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 240, 255, 0.2);
    margin-top: 15px;
}

.solution-card .details.hidden {
    display: none;
}

.solution-card.expanded .details.hidden {
    display: block; /* Show when expanded */
    animation: fadeIn 0.5s ease-in-out;
}

.solution-card .details h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.solution-card .details ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.solution-card .details li {
    margin-bottom: 8px;
}

/* Footer */
.site-footer {
    background-color: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 0; /* Remove margin-top as sections provide spacing */
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

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

@keyframes slideInDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Scroll-based fade-in-up animation */
.fade-in,
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .site-nav {
        display: none; /* Hide menu by default on mobile */
        width: 100%;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        background-color: var(--white);
        box-shadow: 0 4px 8px var(--shadow);
        transition: all var(--transition-speed) ease-in-out;
         max-height: 0; /* Collapse mobile menu */
         overflow: hidden;
    }

     .site-nav.active {
        display: block; /* Show menu when active */
        max-height: 300px; /* Adjust based on content */
     }

    .site-nav ul {
        flex-direction: column;
        padding: 20px;
        align-items: center;
    }

    .site-nav li {
        margin: 10px 0;
    }

    .site-nav a::after {
        display: none; /* Hide underline on mobile menu */
    }

    .menu-toggle {
        display: flex; /* Show toggle on mobile */
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

     .solutions-page .page-intro h1 {
        font-size: 2rem;
    }

    .solution-card .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .solution-icon {
        margin-bottom: 10px;
    }

     .solution-card .card-header h2 {
        font-size: 1.5rem;
     }

     .expand-button {
        position: absolute;
        top: 20px;
        right: 20px;
     }

     .implementation-section h2 {
        font-size: 2rem;
     }

     .implementation-steps {
         grid-template-columns: 1fr; /* Stack steps on small screens */
     }

     .implementation-steps li {
        padding: 20px;
     }

     /* Solution Overview Mobile Adjustments */
     .solution-overview-section h2 {
        font-size: 2rem;
     }

     .solution-overview-grid {
         grid-template-columns: 1fr; /* Stack blocks on small screens */
     }

     .solution-overview-block {
         padding: 25px;
     }
}