/* ---
TABLE OF CONTENTS
1.  Global Styles & Variables
2.  Keyframe Animations
3.  Utility & Helper Classes
4.  Header & Navigation
5.  Footer
6.  Hero Section & Trusted By Marquee
7.  Services Section (Accordion)
8.  Process Section (Timeline)
9.  Dashboard Section
10. Industry Section (3D Tilt)
11. CTA Section
12. Contact & Legal Page Styles
13. Custom Cursor
14. Responsive Design
--- */

/* 1. GLOBAL STYLES & VARIABLES
-------------------------------------------------- */
:root {
    --color-bg: #0b0d17;
    --color-bg-light: #161a2b;
    --color-primary: #ff914d;
    --color-secondary: #ffde59;
    --color-text: #e5e7eb;
    --color-text-darker: #9ca3af;
    --color-headings: #ffffff;
    --color-border: rgba(255, 145, 77, 0.25);
    --font-family: 'Poppins', sans-serif;
    --transition-speed: 0.3s ease;
    --container-width: 1180px;
    --border-radius: 10px;
}

*,
*::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(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--color-bg);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 20px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-headings);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 2.75rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-headings);
}

ul {
    list-style: none;
}

section {
    padding: 6rem 0;
    position: relative;
}

/* 2. KEYFRAME ANIMATIONS
-------------------------------------------------- */
@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes grow-bar {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

/* 3. UTILITY & HELPER CLASSES
-------------------------------------------------- */
.cta-button {
    display: inline-block;
    position: relative;
    padding: 1rem 2.5rem;
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    font-weight: 500;
    color: var(--color-headings);
    background: transparent;
    overflow: hidden;
    transition: color 0.5s ease;
}

.cta-button span {
    position: relative;
    z-index: 2;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--color-primary);
    transition: width 0.5s ease;
    z-index: 1;
}

.cta-button:hover {
    color: var(--color-bg);
}

.cta-button:hover::before {
    width: 100%;
}

.cta-button.secondary {
    border-color: var(--color-text-darker);
}

.cta-button.secondary:hover::before {
    background: var(--color-text-darker);
}

.cta-button.large {
    font-size: 1.1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-intro {
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-animation 4s ease infinite;
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}

.fade-in-up {
    transform: translateY(30px);
}

.slide-in-left {
    transform: translateX(-40px);
}

.slide-in-right {
    transform: translateX(40px);
}

.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* 4. HEADER & NAVIGATION
-------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-speed) ease;
}

.main-header.scrolled {
    background-color: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-headings);
}

.header-logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-headings);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu i {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-headings);
    margin: 6px 0;
    transition: all var(--transition-speed) ease;
}

/* 5. FOOTER
-------------------------------------------------- */
.main-footer {
    padding: 5rem 0 2rem;
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--color-headings);
    font-weight: 700;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-about-text,
.footer-column p,
.footer-column a {
    font-size: 0.95rem;
    color: var(--color-text-darker);
}

.footer-heading {
    color: var(--color-headings);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-darker);
    font-size: 0.9rem;
}

/* 6. HERO SECTION & TRUSTED BY MARQUEE
-------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, #10182c, var(--color-bg)), radial-gradient(ellipse at bottom, var(--color-bg-light), transparent);
    z-index: -1;
}

.hero-bg-animation::before,
.hero-bg-animation::after {
    content: '';
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
}

.hero-bg-animation::before {
    background: rgba(0, 246, 255, 0.1);
    top: -20%;
    right: -20%;
    animation: float 10s ease-in-out infinite;
}

.hero-bg-animation::after {
    background: rgba(212, 0, 255, 0.1);
    bottom: -20%;
    left: -20%;
    animation: float 12s ease-in-out infinite reverse;
}

.hero-content {
    padding-top: 100px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.trusted-by-section {
    padding: 2rem 0;
    width: 100%;
    margin-top: auto;
}

.trusted-by-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-darker);
}

.logo-marquee {
    width: 100%;
    overflow: hidden;
}

.logo-track {
    display: flex;
    width: calc(150px * 12);
    animation: marquee 30s linear infinite;
}

.logo-track img {
    width: 120px;
    height: 30px;
    margin: 0 40px;
    object-fit: contain;
    filter: grayscale(1) brightness(2);
    opacity: 0.6;
}

/* 7. SERVICES SECTION (ACCORDION)
-------------------------------------------------- */
.services-section {
    background-color: var(--color-bg-light);
}

.services-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.services-header-content {
    max-width: 400px;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
}

.accordion-icon {
    width: 16px;
    height: 16px;
    position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: transform var(--transition-speed) ease;
}

.accordion-icon::before {
    transform: translate(-50%, -50%);
}

.accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-item.active .accordion-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out, padding var(--transition-speed) ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

.accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--color-text-darker);
}

/* 8. PROCESS SECTION (TIMELINE)
-------------------------------------------------- */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: var(--color-border);
    z-index: -1;
}

.process-item {
    position: relative;
    padding: 2rem;
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.process-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 4px solid var(--color-bg);
}

.process-content {
    text-align: center;
}

.process-content h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* 9. DASHBOARD SECTION
-------------------------------------------------- */
.dashboard-section {
    background-color: var(--color-bg-light);
}

.dashboard-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr) 1.5fr;
    grid-template-areas: "kpi1 kpi2 kpi3 chart";
}

.dashboard-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.kpi-card {
    text-align: center;
}

.kpi-card:nth-child(1) {
    grid-area: kpi1;
}

.kpi-card:nth-child(2) {
    grid-area: kpi2;
}

.kpi-card:nth-child(3) {
    grid-area: kpi3;
}

.chart-card {
    grid-area: chart;
}

.kpi-card h5 {
    color: var(--color-text-darker);
    font-weight: 500;
}

.kpi-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0.5rem 0;
}

.kpi-desc {
    color: var(--color-text-darker);
    font-size: 0.9rem;
}

.chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 150px;
}

.chart-bar {
    width: 20%;
    background: linear-gradient(to top, var(--color-secondary), var(--color-primary));
    border-radius: 4px 4px 0 0;
    transform-origin: bottom;
    animation: grow-bar 1.5s ease-out forwards;
    animation-play-state: paused;
    height: calc(var(--val) * 1%);
    position: relative;
}

.is-visible .chart-bar {
    animation-play-state: running;
}

.chart-bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
}

/* 10. INDUSTRY SECTION (3D TILT)
-------------------------------------------------- */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.industry-card {
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    padding: 2px;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
}

.industry-card:hover::before {
    opacity: 1;
}

.industry-card-inner {
    background: var(--color-bg-light);
    border-radius: 6px;
    padding: 2.5rem 2rem;
    height: 100%;
    text-align: center;
}

.industry-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* 11. CTA SECTION
-------------------------------------------------- */
.final-cta-section {
    text-align: center;
}

.final-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.final-cta-section p {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--color-text-darker);
}

/* 12. CONTACT & LEGAL PAGE STYLES
-------------------------------------------------- */
.page-hero {
    min-height: 50vh;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title {
    margin-bottom: 1rem;
}

.contact-section {
    padding-bottom: 6rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: center;
}

.contact-info p {
    color: var(--color-text-darker);
}

.contact-details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.contact-form-wrapper {
    background-color: var(--color-bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-headings);
    font-size: 1rem;
    font-family: var(--font-family);
    position: relative;
    z-index: 1;
}

.form-group select {
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
}

.form-group label {
    position: absolute;
    top: 0.8rem;
    left: 0;
    color: var(--color-text-darker);
    transition: all 0.3s ease;
    z-index: 0;
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label {
    top: -1.2rem;
    font-size: 0.8rem;
    color: var(--color-primary);
}

.legal-content {
    padding-bottom: 6rem;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    margin: 2rem 0 1rem;
    color: var(--color-primary);
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
}

/* 13. CUSTOM CURSOR
-------------------------------------------------- */
.glow-cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    left: 0;
    top: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    z-index: 9999;
}

.glow-cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 246, 255, 0.1);
}

/* 14. RESPONSIVE DESIGN
-------------------------------------------------- */
@media (max-width: 992px) {

    .services-container,
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .services-header-content {
        margin-bottom: 3rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "chart chart" "kpi1 kpi2" "kpi3 .";
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-column.about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .glow-cursor {
        display: none;
    }

    body {
        cursor: auto;
    }

    .header-cta {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 280px;
        height: 100vh;
        background-color: var(--color-bg-light);
        flex-direction: column;
        justify-content: center;
        transition: right var(--transition-speed) ease;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hamburger-menu {
        display: block;
    }

    .hamburger-menu.active i:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }

    .hamburger-menu.active i:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active i:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "chart" "kpi1" "kpi2" "kpi3";
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.client-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 80px;
}