/* Table of Contents
--------------------------------
1.  Root Variables & Global Styles
2.  Utility Classes
3.  Header & Navigation
4.  Hero Section
5.  Partners Section
6.  Services Section
7.  About Section
8.  Stats Section
9.  Industry Section
10. Calculator Section
11. Testimonials Section
12. CTA Section
13. Footer
14. Page-Specific Styles (Contact, Legal)
15. Keyframe Animations
16. Media Queries (Responsiveness)
-------------------------------- */

/* 1. Root Variables & Global Styles
-------------------------------- */
:root {
    --primary-dark: #1A0B2E;
    --secondary-dark: #2C1F47;
    --primary-accent: #FF6EC7;
    --secondary-accent: #7C3AED;
    --text-light: #F3F4F6;
    --text-muted: #A78BFA;
    --border-color: #3A2E5F;
    --font-family: 'Urbanist', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}


*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Utility Classes
-------------------------------- */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: var(--primary-dark);
    border-color: var(--primary-accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-accent);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--primary-accent);
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Scroll animation setup */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Header & Navigation
-------------------------------- */
.site-header {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all var(--transition-speed);
}

.site-header.scrolled {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo img {
    height: 40px;
    filter: invert(1);
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-accent);
    transition: width var(--transition-speed);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    display: block;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
}

/* 4. Hero Section
-------------------------------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: var(--header-height);
    text-align: center;
    overflow: hidden;
}

.hero-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.15), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(244, 114, 182, 0.15), transparent 30%);
    animation: pulse-background 15s infinite ease-in-out;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-title.animate-up {
    animation-delay: 0.2s;
}

.hero-subtitle.animate-up {
    animation-delay: 0.4s;
}

.hero-buttons.animate-up {
    animation-delay: 0.6s;
}


.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight-text {
    color: var(--primary-accent);
}

#typing-effect::after {
    content: '_';
    animation: blink 0.7s infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 5. Partners Section
-------------------------------- */
.partners {
    padding: 40px 0;
    background-color: var(--secondary-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.partners-title {
    text-align: center;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2rem;
}

.partners-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.partner-logos {
    display: flex;
    animation: scroll-partners 30s linear infinite;
}

.partner-logos span {
    flex-shrink: 0;
    width: 180px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.6;
    transition: opacity var(--transition-speed), color var(--transition-speed);
}

.partner-logos:hover {
    animation-play-state: paused;
}

.partner-logos span:hover {
    opacity: 1;
    color: var(--text-light);
}


/* 6. Services Section
-------------------------------- */
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--secondary-dark);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1), transparent 40%);
    transition: opacity 0.5s ease;
    opacity: 0;
    animation: rotate 10s linear infinite;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--primary-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed);
}

.service-link:hover {
    color: var(--text-light);
}

/* 7. About Section
-------------------------------- */
.about-section {
    padding: 100px 0;
    background-color: var(--secondary-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-container {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.about-image-container:hover img {
    transform: scale(1.05);
}

.about-features {
    list-style: none;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.about-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.feature-icon {
    color: var(--primary-accent);
    margin-right: 1rem;
    font-size: 1.2rem;
    line-height: 1.5;
}

/* 8. Stats Section
-------------------------------- */
.stats-section {
    padding: 80px 0;
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=1200');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-accent);
    margin-bottom: 0.5rem;
}

.stat-number::after {
    content: '%';
}

.stat-item:nth-child(2) .stat-number::after,
.stat-item:nth-child(4) .stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* 9. Industry Section
-------------------------------- */
.industry-section {
    padding: 100px 0;
}

.industry-tabs {
    max-width: 800px;
    margin: 0 auto;
}

.industry-tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-speed);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-accent);
    transform: scaleX(0);
    transition: transform var(--transition-speed);
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--text-light);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.industry-tab-content .tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.industry-tab-content .tab-pane.active {
    display: block;
}

.industry-tab-content p {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 10. Calculator Section
-------------------------------- */
.calculator-section {
    padding: 100px 0;
    background-color: var(--secondary-dark);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    background-color: var(--primary-dark);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.calculator-form h4,
.calculator-results h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-group input {
    margin-right: 0.75rem;
    accent-color: var(--primary-accent);
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-group input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 5px;
    outline: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-accent);
    cursor: pointer;
    border-radius: 50%;
}

.slider-value {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

.calculator-results {
    background-color: var(--secondary-dark);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border-color);
}

.result-label {
    color: var(--text-muted);
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-accent);
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 1rem;
}

.calculator-results .btn {
    width: 100%;
    margin-top: 1rem;
}

/* 11. Testimonials Section
-------------------------------- */
.testimonials-section {
    padding: 100px 0;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 250px;
    /* Adjust as needed */
}

.testimonial-card {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: scale(0.95);
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
}

.author-name {
    display: block;
    color: var(--text-light);
}

.author-title {
    font-size: 0.9rem;
    color: var(--primary-accent);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.slider-btn:hover {
    background-color: var(--border-color);
}

/* 12. CTA Section
-------------------------------- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
}

.cta-content {
    text-align: center;
    color: var(--primary-dark);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta-btn {
    background-color: var(--primary-dark);
    color: var(--text-light);
    border-color: var(--primary-dark);
}

.cta-btn:hover {
    background-color: transparent;
    color: var(--primary-dark);
}

/* 13. Footer
-------------------------------- */
.site-footer {
    background-color: var(--secondary-dark);
    padding: 80px 0 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 40px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-logo img {
    height: 40px;
    filter: invert(1);
    margin-bottom: 1.5rem;
}

.footer-column.about p {
    color: var(--text-muted);
    max-width: 350px;
}

.footer-column.links ul {
    list-style: none;
}

.footer-column.links li {
    margin-bottom: 0.75rem;
}

.footer-column.links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-column.links a:hover {
    color: var(--primary-accent);
}

.footer-column.contact p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-column.contact svg {
    margin-right: 10px;
    color: var(--primary-accent);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color var(--transition-speed);
}

.footer-legal-links a:hover {
    color: var(--primary-accent);
}

/* 14. Page-Specific Styles
-------------------------------- */
/* Page Header for subpages */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background: var(--secondary-dark);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Contact Page */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info h3,
.contact-form-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-icon {
    flex-shrink: 0;
    margin-right: 1.5rem;
    color: var(--primary-accent);
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.info-text p {
    color: var(--text-muted);
}

.contact-form-wrapper {
    background-color: var(--secondary-dark);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-family: var(--font-family);
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-accent);
}

.contact-form button {
    width: 100%;
}

/* Legal Pages */
.legal-content {
    padding: 100px 0;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-accent);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.legal-content li {
    margin-left: 1rem;
}

/* 15. Keyframe Animations
-------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes pulse-background {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scroll-partners {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 16. Media Queries
-------------------------------- */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-grid {
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--secondary-dark);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: block;
        padding: 1.5rem 0;
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn {
        width: 80%;
        max-width: 300px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image-container {
        order: -1;
    }

    .stats-section {
        background-attachment: scroll;
    }

    .industry-tab-buttons {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex-grow: 1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal-links {
        margin-top: 1rem;
    }

    .footer-legal-links a {
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }
}