/*
================================================
TABLE OF CONTENTS
================================================
1.  :root Variables
2.  General & Reset Styles
3.  Utility & Typography
4.  Custom Cursor
5.  Header & Navigation
6.  Hero Section & 3D Orb
7.  Angled Section Dividers
8.  Services Section
9.  Our Process Section
10. Why Choose Us Section
11. Industries We Serve Section
12. Testimonials Section
13. Final CTA Section
14. Sub-Page Styles (Contact, Legal)
15. Footer
16. Live Chat Widget
17. Animations & Keyframes
18. Responsive Media Queries
================================================
*/

/* 1. :root Variables */
:root {
    --color-primary: #8A2BE2;
    /* BlueViolet */
    --color-secondary: #FF007F;
    /* Rose */
    --color-background-dark: #0D0D1A;
    --color-background-light: #1A1A2E;
    --color-text-light: #E0E0E0;
    --color-text-dark: #A0A0B2;
    --color-white: #FFFFFF;
    --color-border: rgba(138, 43, 226, 0.2);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --header-height: 80px;
    --border-radius: 12px;
    --transition-speed: 0.4s;
    --section-padding: 120px 0;
}

/* 2. General & Reset Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    font-family: var(--font-secondary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none;
}

a,
button {
    cursor: none;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    color: var(--color-white);
    font-weight: 600;
    line-height: 1.3;
}

/* 3. Utility & Typography */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-padding);
    position: relative;
}

.highlight {
    color: var(--color-primary);
}

.text-center {
    text-align: center;
}

h1 {
    font-size: clamp(3rem, 5vw, 4.8rem);
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 4rem;
    color: var(--color-text-dark);
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 0, 127, 0.3);
}

/* 4. Custom Cursor */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

body.cursor-visible .cursor-dot,
body.cursor-visible .cursor-outline {
    opacity: 1;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    transition: transform 0.1s linear;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-primary);
    transition: width 0.2s, height 0.2s, border-color 0.2s, transform 0.2s ease-out;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    border-color: var(--color-secondary);
}

/* 5. Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s ease;
}

#main-header.scrolled {
    background-color: rgba(13, 13, 26, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-svg {
    transition: transform 0.5s ease;
}

.logo-link:hover .logo-svg {
    transform: rotate(360deg) scale(1.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    font-family: var(--font-primary);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--color-text-light);
    font-weight: 500;
    font-family: var(--font-primary);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 0.4s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-white);
}

#hamburger-btn {
    display: none;
    background: none;
    border: none;
    z-index: 1001;
}

#hamburger-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-white);
    transition: all 0.3s ease-in-out;
}

/* 6. Hero Section & 3D Orb */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-content h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: var(--color-text-light);
}

.hero-3d-object-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    perspective: 1200px;
    pointer-events: none;
}

.hero-3d-object {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, rgba(13, 13, 26, 0) 70%);
    animation: float 6s ease-in-out infinite, rotate3D 50s infinite linear;
}

.hero-3d-object::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    border: 2px solid rgba(138, 43, 226, 0.5);
    transform: scale(1.2);
    opacity: 0.5;
    animation: pulse 3s infinite ease-in-out;
}

/* 7. Angled Section Dividers */
.angled-section {
    clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
}

#process {
    background-color: var(--color-background-light);
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
    padding-top: 180px;
    padding-bottom: 180px;
    margin-top: -120px;
    margin-bottom: -120px;
}

#industries {
    background-color: var(--color-background-light);
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
    padding-top: 180px;
    padding-bottom: 180px;
    margin-top: -120px;
    margin-bottom: -120px;
}


/* 8. Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--color-primary);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, var(--color-primary), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-speed) ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(15deg);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--color-white);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--color-white);
}

/* 9. Our Process Section */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--color-border), var(--color-border) 10px, transparent 10px, transparent 20px);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    background-color: var(--color-background-light);
    transition: all 0.4s ease;
}

.process-step:hover .process-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--color-primary);
}

.process-step h3 {
    margin-bottom: 0.5rem;
}

/* 10. Why Choose Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-us-card {
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
}

.why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--color-secondary);
}

.why-us-icon {
    margin: 0 auto 1.5rem;
}

.why-us-icon svg {
    width: 50px;
    height: 50px;
    color: var(--color-secondary);
}

/* 11. Industries We Serve Section */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.industry-card {
    height: 100px;
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
}

.industry-card:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

/* 12. Testimonials Section */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-slide p.quote {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--color-text-light);
    position: relative;
}

.testimonial-slide p.quote::before {
    content: '“';
    font-family: 'Times New Roman', serif;
    font-size: 6rem;
    color: var(--color-primary);
    position: absolute;
    left: -40px;
    top: -20px;
    opacity: 0.2;
}

.author {
    text-align: right;
}

.author h4 {
    margin-bottom: 0;
    color: var(--color-white);
}

.author span {
    color: var(--color-text-dark);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
}

.slider-controls button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-white);
    font-size: 1.5rem;
    transition: all var(--transition-speed) ease;
}

.slider-controls button:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* 13. Final CTA Section */
#final-cta {
    background: linear-gradient(rgba(13, 13, 26, 0.95), rgba(13, 13, 26, 0.95)), url('https://i.imgur.com/example.jpg') no-repeat center center/cover;
    background-attachment: fixed;
}

#final-cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 14. Sub-Page Styles (Contact, Legal) */
.page-header {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
    background-color: var(--color-background-light);
}

#contact-page .contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.3);
}

.contact-info-wrapper .contact-item {
    margin-bottom: 2rem;
}

.contact-info-wrapper h4 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
}

/* 15. Footer */
#main-footer {
    background-color: var(--color-background-dark);
    padding: 80px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-white);
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: var(--color-text-dark);
    transition: all 0.4s ease;
}

.footer-col ul li a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-dark);
}

/* 16. Live Chat Widget */
#chat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.3);
    transition: transform 0.2s ease;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#chat-icon:hover {
    transform: scale(1.1);
}

#chat-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

#chat-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
}

#chat-box.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.chat-header {
    background-color: #0D0D1A;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
}

.chat-body {
    padding: 1rem;
    height: 180px;
}

.chat-footer {
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--color-border);
}

.chat-footer input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    outline: none;
    padding: 0.5rem 0;
}

/* 17. Animations & Keyframes */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn-up 0.8s ease forwards;
}

.hero-content h1.animate-on-load {
    animation-delay: 0.3s;
}

.hero-content p.animate-on-load {
    animation-delay: 0.5s;
}

.hero-content .hero-cta.animate-on-load {
    animation-delay: 0.7s;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.services-grid .animate-on-scroll:nth-child(1),
.process-step:nth-child(1) {
    transition-delay: 0.1s;
}

.services-grid .animate-on-scroll:nth-child(2),
.process-step:nth-child(2) {
    transition-delay: 0.2s;
}

.services-grid .animate-on-scroll:nth-child(3),
.process-step:nth-child(3) {
    transition-delay: 0.3s;
}

.services-grid .animate-on-scroll:nth-child(4),
.process-step:nth-child(4) {
    transition-delay: 0.4s;
}

.reveal-text {
    opacity: 0;
    animation: fadeIn-up 0.8s ease forwards;
}

.section-title.is-visible .reveal-text:nth-child(1) {
    animation-delay: 0.2s;
}

.section-title.is-visible .reveal-text:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes fadeIn-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate3D {
    from {
        transform: translate(-50%, -50%) rotateY(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotateY(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.2;
    }
}

/* 18. Responsive Media Queries */
@media (max-width: 992px) {
    h2 {
        font-size: 2.4rem;
    }

    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-background-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
    }

    #main-nav.is-active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
    }

    .header-cta {
        display: none;
    }

    #hamburger-btn {
        display: block;
    }

    .process-timeline {
        grid-template-columns: 1fr 1fr;
    }

    .process-timeline::before {
        display: none;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    #contact-page .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 100px 0;
    }

    #process,
    #industries {
        clip-path: none;
        margin: 0;
        padding: var(--section-padding);
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}