/* --- CSS Variables for Easy Theming --- */
:root {
    --primary-color: #00aeff; /* A vibrant, electric blue */
    --secondary-color: #9c3cff; /* A complementary purple */
    --dark-bg: #0a0a14; /* A very dark, near-black blue */
    --medium-bg: #1a1a2e; /* A slightly lighter dark blue for cards */
    --light-text: #f0f0f0;
    --medium-text: #a0a0c0;
    --border-color: rgba(0, 174, 255, 0.2);
}

/* --- General Body & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    padding-top: 80px; /* Offset for fixed header */
}
body.no-scroll {
    overflow: hidden;
}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 20px;
}

h1 { font-size: 3.5rem; line-height: 1.2; }
h2 { font-size: 2.5rem; text-align: center; }
p { color: var(--medium-text); margin-bottom: 15px; }

.highlight {
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-subheading-alt {
    font-size: 1.5rem; color: var(--medium-text); font-weight: 400;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

.bg-medium {
    background-color: var(--medium-bg);
}

/* --- Pointer Tracker --- */
.pointer, .pointer-dot {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.pointer {
    width: 40px;
    height: 40px;
    background-color: white;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%) scale(0); /* Initially hidden */
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

.pointer-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    mix-blend-mode: difference;
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

.pointer.hover {
    transform: translate(-50%, -50%) scale(2.2);
}

.pointer-dot.hover {
    transform: translate(-50%, -50%) scale(0); /* Hide the dot on hover */
}


/* --- Dropdown Menu Styles --- */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-bg); /* Match mobile menu for consistency */
    min-width: max-content; /* Automatically adjust width to fit content */
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 1;
    border-radius: 5px;
    padding: 10px 0;
    border: 1px solid var(--border-color);
}

.dropdown-content a {
    padding: 12px 16px;
    white-space: nowrap;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* --- Hero Section --- */
#hero {
    height: calc(100vh - 80px); /* Adjust for header height */
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(-45deg, var(--dark-bg), var(--medium-bg), var(--dark-bg), #140a1f);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
}
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative; /* Ensure content is above the canvas */
    z-index: 1;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto 30px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 174, 255, 0.2);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--medium-bg);
    padding: 40px;
    border-radius: 15px; /* Slightly more rounded */
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.service-card.popular {
    transform: translateY(-20px);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.service-card-icon {
    margin-bottom: 20px;
}

.service-card-icon img {
    max-width: 60px;
    height: auto;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* --- Pricing Card Specifics --- */
.pricing-card {
    text-align: left;
    display: flex;
    flex-direction: column;
}
.pricing-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.plan-name {
    color: var(--light-text);
    margin-bottom: 5px;
    text-align: left;
}
.price-period {
    font-size: 1rem;
    color: var(--medium-text);
}
.feature-heading {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 20px;
}
.pricing-footer {
    text-align: center;
    margin-top: auto; /* Pushes button to the bottom */
    padding-top: 40px;
}
.setup-fee {
    color: var(--medium-text);
    margin-top: 5px;
    margin-bottom: 0;
}
.single-card-layout {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
/* --- Pricing/Feature List Styles --- */
.feature-list {
    list-style: none;
    margin-bottom: 30px;
}
.feature-list li {
    color: var(--medium-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.feature-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 12px;
}
.feature-list li.excluded::before {
    content: '✕';
    color: #ff5555;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}


/* --- About Section --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}
#about .about-content, #about .about-image {
    flex: 1;
}
.about-container h2 { text-align: left; }
.about-container .about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0, 174, 255, 0.2);
}

/* --- Contact Section --- */
#contact {
    background-color: var(--medium-bg);
}
.contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--light-text);
    font-family: 'Poppins', sans-serif;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- Process Steps Section --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
    padding: 20px;
}

.process-step h3 {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

/* --- Clients Section --- */
#clients {
    background-color: var(--medium-bg);
}
.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}
.clients-grid img {
    max-height: 40px;
    max-width: 150px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(100%) brightness(1.5);
}
.clients-grid img:hover {
    opacity: 1;
    filter: none;
}

/* --- Testimonials Section --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background-color: var(--medium-bg);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}
.testimonial-card .quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--light-text);
    flex-grow: 1;
}
.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}
.testimonial-card .author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-card .author strong {
    color: var(--light-text);
}
.testimonial-card .author span {
    color: var(--medium-text);
    font-size: 0.9rem;
}
/* --- Animation Classes --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translateY(0);
    transform: translateX(0);
}

/* Staggered animation for children */
.stagger-children-fade > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-children-fade.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.text-reveal.visible span {
    transform: translateY(0);
}

/* --- About Us Page Specifics --- */
.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--dark-bg);
    z-index: 2;
}

.experience-badge .counter {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge p {
    margin: 0;
    color: white;
    font-weight: 300;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.mission-card, .vision-card {
    background-color: var(--medium-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.vision-card {
    border-left-color: var(--secondary-color);
}

.mission-card h4, .vision-card h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* --- Core Values Section --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}
.value-icon {
    margin-bottom: 20px;
}
.value-icon img {
    height: 50px;
    width: auto;
}
.value-card h3 {
    font-size: 1.4rem;
    color: var(--light-text);
}

/* --- Timeline Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-content {
    padding: 20px 30px;
    background-color: var(--medium-bg);
    position: relative;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* --- Showcase Grid Section --- */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.showcase-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    height: 400px;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.showcase-item:hover img {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 10, 20, 0.95), transparent);
    padding: 40px 20px 20px;
    color: white;
    transform: translateY(30%);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.showcase-item:hover .showcase-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* --- Case Study Page --- */
.case-study-list {
    display: flex;
    flex-direction: column;
    gap: 80px; /* Space between each case study entry */
}

.case-study-entry {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--medium-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

/* Alternate layout for even-numbered items */
.case-study-entry:nth-child(even) {
    flex-direction: row-reverse;
}

.case-study-image {
    flex: 1;
    max-width: 50%;
}

.case-study-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.case-study-details {
    flex: 1;
    max-width: 50%;
}

.case-study-details .category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.case-study-details h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.case-study-details .description {
    color: var(--medium-text);
    margin-bottom: 30px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.result-item {
    text-align: left;
}

.result-item strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.result-item span {
    font-size: 0.9rem;
    color: var(--medium-text);
}

/* --- Responsive Styles for Case Study Page --- */
@media (max-width: 992px) {
    .case-study-entry {
        flex-direction: column !important; /* Use !important to override inline-style-like specificity of :nth-child */
        gap: 30px;
        padding: 30px;
    }

    .case-study-image,
    .case-study-details {
        max-width: 100%;
    }

    .case-study-details h3 {
        font-size: 1.6rem;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 25px;
    }

    .result-item strong {
        font-size: 1.8rem;
    }
}
